VBoxHeadless 5.1.12 on FreeBSD 10.3 hangs at shutdown

Discussions related to using VirtualBox on other (unsupported) hosts like FreeBSD.

VBoxHeadless 5.1.12 on FreeBSD 10.3 hangs at shutdown

Postby 4xn9HgwZ » 14. Feb 2017, 14:06

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   Expand viewCollapse view
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
4xn9HgwZ
 
Posts: 4
Joined: 14. Feb 2017, 14:04

Re: VBoxHeadless 5.1.12 on FreeBSD 10.3 hangs at shutdown

Postby Perryg » 14. Feb 2017, 15:10

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.
Perryg
Site Moderator
 
Posts: 34267
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

Postby 4xn9HgwZ » 14. Feb 2017, 15:46

I installed VirtualBox using pkg.

Code: Select all   Expand viewCollapse view
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 19 times
4xn9HgwZ
 
Posts: 4
Joined: 14. Feb 2017, 14:04

Re: VBoxHeadless 5.1.12 on FreeBSD 10.3 hangs at shutdown

Postby Perryg » 14. Feb 2017, 16:07

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.
Perryg
Site Moderator
 
Posts: 34267
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

Postby 4xn9HgwZ » 14. Feb 2017, 16:13

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
4xn9HgwZ
 
Posts: 4
Joined: 14. Feb 2017, 14:04

Re: VBoxHeadless 5.1.12 on FreeBSD 10.3 hangs at shutdown

Postby Perryg » 14. Feb 2017, 16:19

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.
Perryg
Site Moderator
 
Posts: 34267
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

Postby 4xn9HgwZ » 19. Feb 2017, 13:08

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
4xn9HgwZ
 
Posts: 4
Joined: 14. Feb 2017, 14:04

Re: VBoxHeadless 5.1.12 on FreeBSD 10.3 hangs at shutdown

Postby Selin » 26. Mar 2017, 01:14

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 :(
Selin
 
Posts: 23
Joined: 7. Sep 2016, 17:00


Return to VirtualBox on Other Hosts

Who is online

Users browsing this forum: No registered users and 1 guest