VBoxHeadless 5.1.12 on FreeBSD 10.3 hangs at shutdown

Discussions related to using VirtualBox on other (unsupported) hosts like FreeBSD.
Post Reply
4xn9HgwZ
Posts: 4
Joined: 14. Feb 2017, 14:04

VBoxHeadless 5.1.12 on FreeBSD 10.3 hangs at shutdown

Post by 4xn9HgwZ »

I've done a fresh install of FreeBSD 10.3 as the host and installed VBox-5.1.12 using pkg. I've tried multiple guests but the VBoxHeadless process always hangs when the guest shuts down and I have to manually terminate the process.

The VBox.log shows the guest requesting power off e.g.

Code: Select all

01:55:03.860199 ************** End of Guest state at power off ***************
01:55:05.739398 PDMR3PowerOff: Driver 'VD'/1 on LUN#1 of device 'lsilogicscsi'/0 took 1 040 032 432 ns to power off
01:55:05.795245 PDMR3PowerOff: 1 935 014 100 ns run time
01:55:05.795286 Changing the VM state from 'POWERING_OFF' to 'OFF'
01:55:05.923560 Console: Machine state changed to 'Stopping'
01:55:05.952638 Console::powerDown(): A request to power off the VM has been issued (mMachineState=Stopping, InUninit=0)
But the VBoxHeadless process stays running.

Has anyone else run in to this situation or have any hints as to how to start diagnosing the issue?

Thanks
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBoxHeadless 5.1.12 on FreeBSD 10.3 hangs at shutdown

Post by Perryg »

Post the guests log file ( as an attachment ). Right click on the guest in the Main Manager then click show log. Save and post as an attachment. Compress if it is too large to post.

Also state where you got the actual VirtualBox install from.
4xn9HgwZ
Posts: 4
Joined: 14. Feb 2017, 14:04

Re: VBoxHeadless 5.1.12 on FreeBSD 10.3 hangs at shutdown

Post by 4xn9HgwZ »

I installed VirtualBox using pkg.

Code: Select all

pkg install virtualbox-ose-nox11
I'm using VirtualBox completely headless so I've attached the latest VBox.log from the Logs folder of the vm. This is from an Ubuntu guest but the same happens with fresh guest installs of FreeBSD 10.3 and Centos 7 (all x64).

Thanks

Russell
Attachments
VBox.log.zip
(18.88 KiB) Downloaded 71 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBoxHeadless 5.1.12 on FreeBSD 10.3 hangs at shutdown

Post by Perryg »

I see. You may actually need to ask the freeBSD folks about this since it is their fork. I do see a lot of unusual things in the log but have no idea if this is standard to their build.
4xn9HgwZ
Posts: 4
Joined: 14. Feb 2017, 14:04

Re: VBoxHeadless 5.1.12 on FreeBSD 10.3 hangs at shutdown

Post by 4xn9HgwZ »

OK thanks. I have posted a similar question to their forums so will wait and see if they can help. Can I get another distribution of VirtualBox for FreeBSD other than their package?

Thanks
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBoxHeadless 5.1.12 on FreeBSD 10.3 hangs at shutdown

Post by Perryg »

Yes you can install the generic version but unless you really know the ins-n-outs of the host OS you probably better off with their package.
4xn9HgwZ
Posts: 4
Joined: 14. Feb 2017, 14:04

Re: VBoxHeadless 5.1.12 on FreeBSD 10.3 hangs at shutdown

Post by 4xn9HgwZ »

Thanks for looking in to this. This appears to be the issue I'm seeing: https://bugs.freebsd.org/bugzilla/show_ ... ?id=213019

If I close the VNC window before the guest hits the power off point, then everything is fine. So as you say, it looks like a port issue. I haven't been able to try the 5.1.14 port yet as that isn't available through pkg yet.

Thanks

Russell
Selin
Posts: 60
Joined: 7. Sep 2016, 17:00

Re: VBoxHeadless 5.1.12 on FreeBSD 10.3 hangs at shutdown

Post by Selin »

Looks like the problem with VBox remote display via VNC is persistent...
VBox 5.1.18 + libvnc 0.9.11 still hangs on shutdown if remote display not closed before power off the VM :(
Post Reply