Solved No way to boot any OS with Virtualbox-ose on FreeBSD 13R.

Hello to everyone.

This is my second attempt to be able to boot an OS with Virtualbox. I'm trying to boot a Linux and a Windows 11 DVD. I've followed different tutorials,such as :

http://www.allanjude.com/.../virtualization-host...
https://forums.freebsd.org/.../installing-windows-10-in.../
https://forums.virtualbox.org/viewtopic.php?f=40&t=91449
https://ostechnix.com/install-oracle-virtualbox-freebsd/

but I haven't still been able to accomplish this task.

Code:
# pkg install virtualbox-ose

# added the following line to    /boot/loader.conf :

# vboxdrv_load="YES"

# added the following to    /etc/rc.conf :
vboxnet_enable="YES"

# pw groupmod vboxusers -m marietto

# chown root:vboxusers /dev/vboxnetctl

# chmod 0660 /dev/vboxnetctl

To make this permissions change permanent, added these    lines to /etc/devfs.conf :

own     vboxnetctl root:vboxusers
perm    vboxnetctl 0660

# pw groupmod operator -m marietto

Added the following to    /etc/devfs.rules :

[system=10]
add path 'usb/*' mode 0660 group operator

To load these new rules, added the following to    /etc/rc.conf:

devfs_system_ruleset="system"

Restarted devfs:

# service devfs restart

Enabled it in /etc/rc.conf and started it if it is not already running:

hald_enable="YES"

# service hald start

hald does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d), or is not executable

This is how I have configured the various settings on the GUI :


as u you can see it won't boot. I always see a black screen inside the Virtualbox window.
 
By any chance, do you also have bhyve installed? I found that the vmmon module was preventing me from getting more than a black screen. In my case it's from bhyve, but I don't know what else might have it.

Do
Code:
kldstat |grep vmmon
If it shows up then do
Code:
sudo kldunload vmm
Then your vm should show a screen.
 
yes,I have installed also bhyve.

Code:
# kldstat |grep vmmon
nothing

but :

# kldstat | grep vmm
10    1 0xffffffff8288d000   583d30 vmm.ko
 
Senior moment. Sorry.
Unload vmm and it'll work. I mistyped with vmmon, it's just vmm.
When it works, which I am sure it will, you can mark it solved by going to edit the first post, where you can also edit the prefix.
So
Code:
sudo kldunload vmm
Should fix it. I've found though haven't tested more than once, that even if you unload it, if you then start bhyve, (with VirtualBox powered off) it will automatically load the vmm module again.
 
bhyve stopped with these commands :

Code:
bhyvectl --vm=vm0 --force-reset
bhyvectl --vm=vm0 --destroy

and virtualbox started. Your trick worked. Thanks.
 
Sorry, too many senior moments, forgetting to state the obvious and mistyping vmmon instead of vmm. I'm glad you got it solved and apologies for my errors which made it take longer. Oh well, I have senior moments because I'm old. :-(
 
Sorry, too many senior moments, forgetting to state the obvious and mistyping vmmon instead of vmm. I'm glad you got it solved and apologies for my errors which made it take longer. Oh well, I have senior moments because I'm old. :-(

you are nice.
 
Back
Top