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
init error #199
Comments
hi, any thoughts on this? thanks in advance. |
what's the output if you try to load the vmm module without vm?
|
$ sudo kldload vmm |
If the module is already loaded, kldstat has to return an error, see: util::load_module what's the output of: |
The kldstat does not recognize vmm: $ kldstat -v -m vmm && echo "kldstat returned success" || echo "kldstat returned error" |
But plain kldstat seems to show that vmm is loaded, as follows $ kldstat Id Refs Address Size Name |
sorry, so what's the solution for this? |
then I guess the error occurs when initializing the module. try unload/load the module and search for error in dmesg.
if you see a error like this in dmesg, your CPU is not supported
see: https://www.freebsd.org/doc/handbook/virtualization-host-bhyve.html , https://wiki.freebsd.org/bhyve#Troubleshooting |
Jens,
as yo suggested, I unloaded and reloaded vmm, and that seems to at least
initialize the vm module. I was also able to get the switch to work
However, the vm setup just fails.
$ sudo vm -f install ubuntu ubuntu-16.04.3-server-amd64.iso
Could not create VM ubuntu
Error in initializing VM
…On Wed, Feb 14, 2018 at 4:46 PM, Jens Giessmann ***@***.***> wrote:
then I guess the error occurs when initializing the module. try
unload/load the module and search for error in dmesg.
kldunload vmm
kldload vmm
if you see a error like this in dmesg, your CPU is not supported
vmx_init: processor does not support VMX operation
module_register_init: MOD_LOAD (vmm, 0xffffffff8205f230, 0) error 6
see: https://www.freebsd.org/doc/handbook/virtualization-host-bhyve.html
, https://wiki.freebsd.org/bhyve#Troubleshooting
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#199 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIMgJKiCnRfhqadso-LUXTtkBI8qqmHbks5tU1QygaJpZM4SBp4a>
.
|
here are the logs: |
I recommended that you unload/load the module and look for errors in dmesg or /var/log/messages. Obviously the module is loaded but not initialized correctly. That's why I still guess that your CPU is not supported or EPT is not activated in BIOS and therefore it doesn't make any sense to try to start a VM because this can't work without a correctly initialized vmm module |
Related: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227880 It looks like |
This appears to be due to issues loading the vmm module, most likely due to missing hardware support. Either way this doesn't seem to be an issue with vm-bhyve, and if the module can be loaded, which is obviously required, then both |
when I initialize, using : vm init
I get this:
/usr/local/sbin/vm: ERROR: unable to load vmm.ko!
I tried many things, including rebooting the machine. No luck.
Can you suggest what I can do to resolve?
thank you very much.
The text was updated successfully, but these errors were encountered: