New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VM doesn't run automatically on boot on FreeNAS #150
Comments
I think that is going to be the case for I did find this in their handbook. You may want to take a look at it. I'll ping the FreeNAS folks and see if they mention that in their iohyve portion of their handbook. I'm going to leave this issue open to remind me to add this mention to the readme file. |
@jonblack even with the changes to |
Thanks for the tips and your patience. I'm really inexperienced with BSD so this is very new to me. I've tried using the tunables in the web interface but I still see |
When running To see if the actual If you see |
I see. You're right, they are in the |
If you have version Note that it still may be a bit buggy. |
"Tunables" handbook link has been added to the README. Leaving this issue open until we hear back from @jonblack on his debian guest starting at boot time. |
We're almost there. I'm learning a lot about BSD which is a good thing. I've noticed another issue in the meantime (sorry). I've lost network access to the VM. In FreeNAS I can connect with The output of
I understand that a virtual machine connects via a bridge and a tap (not sure how exactly). The Debian virtual machine is using What's really odd is that I'm pretty sure that when I set this up I used I'm tempted to destroy the VM and recreate it because Thanks again for being patient with me and helping through this. |
Everything is hardcoded to a |
You're right, rebooting recreates the bridges and taps, but I'm still without network access, which is odd. |
Is the output of |
|
Your adapter How do you let iohyve set up networking? |
Thanks for the spam, @skarekrow. |
Meh. Email right? You said what I did anyways. |
Yeah, you said the same thing I did, but like 4 seconds before I did. As before, iohyve can do this for you with the FreeNAS "tunables" Otherwise, |
My tunable had the wrong interface.
This is confirmed when I using |
I'll try to reproduce, but I suspect the guest is started before iohyve does the networking stuff. |
Can I get the output of your |
The dmesg output is here: http://pastebin.com/FyTSeckc |
Awesome, I'll do some digging and see what I can come up with. Thanks for all your work, by the way. Some would have given up by now. 😎 |
No worries. If you need anything else, let me know. |
I have been unable to reproduce this issue on "vanilla" FreeBSD, not FreeNAS. I'm unable to ascertain what's going on, but I do find that your |
Set the IP on the bridge0 interface not re0. You should not have addresses on individual interfaces within a bridge. Then ensure your /etc/resolv.conf is setup correctly. Then most likely you will need to fix your routes unless you reboot. Example: (I believe that's the command - not looking at it right this second) |
@jonblack are you still seeing this problem? I still cannot reproduce this issue in the latest version. If you are still seeing an issue I will reopen the issue and see what we can do. |
I tired to route fix above but without success so I deleted the guest and re-created everything and now it's working fine. Perhaps something went wrong when I deleted the tap and bridge interfaces...who knows? In any case, with the tunables shown above and setting boot on the guest, everything starts up as it should and I can ssh into the guest now. |
Glad to hear you got it sorted out. Let us know if you have any further issues. |
This is related to comments I made in #114.
When I reboot my FreeNAS box running version 9.10 the
vmm.ko
andnmnd.ko
modules aren't automatically loaded.I have the following lines at the end of
/boot/loader.conf
:I tried adding the following lines to the end of
/etc/rc.conf
:But whenever I reboot, they are gone.
This means every time I restart (which is daily because it shuts down at night to save electricity), I have to do the following:
The text was updated successfully, but these errors were encountered: