vbox FreeBSD vm too slow at boot

Hi, I am running FreeBSD 13 with Virtualbox , and a couple of VM with FreeBSD 13 inside
the problem is at boot, takes from 1 minute to 5 , after that everything runs normal
 
Hi, I am running FreeBSD 13 with Virtualbox , and a couple of VM with FreeBSD 13 inside
the problem is at boot, takes from 1 minute to 5 , after that everything runs normal
Seems a network issue (cannot find DNS?)
 
sorry, I dont asociate the boot loader with DNS, has something to do?
I have FreeBSD 13 in VirtualBox VM
Even with providing password to decrypt zfs disk, it takes 25sec.

What DNS has to do with boot loader:
em0 waiting for IP address (speed it up by backgrounding DHCP
USB waiting (speed it up by disabling usb wait at boot)
options available in rc.conf and loader.conf
obviously don't wait for time countdown in loader menu..

your client setup in VM Manager may also help.
 
You can win a few seconds by configuring in your guest freebsd-os in
/boot/loader.conf
Code:
beastie_disable="YES"
loader_delay="0"
autoboot_delay="-1"
You can win a few seconds by checking that in you guert freebsd-os in
/etc/rc.conf
you don't have
Code:
ifconfig_xxx="SYNDHCP"
ifconfig_xxx="SYNCDHCP"

How did you configured networking with virtualbox. For me this is still a black art.

Other thing you can do is timestamp logmessages in the guest os. Check what takes long.
Code:
rcorder /etc/rc.d/* /usr/local/etc/rc.d/*
in the guest os will show who waits on who.
Then you can even manipulate the REQUIRE,BEFORE in the rc.scripts although it's adviced not to do.
 
hw.usb.no_boot_wait="1"
background_dhclient="YES"

autoboot_delay="-1"
..just press enter. I would leave autoboot at some sane values in the case one wants to boot alternate kernel or single mode, instead of racing with actual boot proccess.
 
Aeterna Alain De Vos sorry for the delay

in this days I make a video for showing what is the problem,
is not in the post boot stage, is before(from the start)
from the start until finish to load the /boot/loader modules and start loading the userland
for example, the initial caracther animation is really slow and takes up to 2 minutes to finish
 
Back
Top