[Fixed] VirtualBox 5.0 RC2 FreeNAS does not boot

Postings relating to old VirtualBox pre-releases
Post Reply
vfr1200f
Posts: 4
Joined: 26. Jun 2015, 13:08

[Fixed] VirtualBox 5.0 RC2 FreeNAS does not boot

Post by vfr1200f »

After installing RC2 of VirtualBox 5.0, my FreeNAS Virtual Machine no longer boots. The VM gets dropped into the Guru Meditation state quite rapidly after the FreeBSD kernel boots. Last lines (from the kernel) that are visible on the console revolve around determining available memory.

VBox.log and config file of the VM have been attached in archive. Log file says:

Code: Select all

00:00:15.666236 emR3Debug: rc=VERR_IEM_INSTR_NOT_IMPLEMENTED
/Joris
Attachments
LogAndConfig.7z
(34.83 KiB) Downloaded 19 times
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Any and all
Contact:

Re: VirtualBox 5.0 RC2 FreeNAS does not boot

Post by michaln »

This is a bug in VirtualBox, though it shows a strange difference between FreeNAS and FreeBSD 9.3 from which is derived. FreeBSD 9.3 does not use the CLFLUSH instruction when it detects that it's being virtualized (it's useless in a VM anyway), but your FreeNAS setup does use it (see CLFLUSH listed among the CPU features), even though it detected that it's virtualized (see HV in Features2). It's not clear to me why.

Did the same problem not exist in RC1 or did you never try?
vfr1200f
Posts: 4
Joined: 26. Jun 2015, 13:08

Re: VirtualBox 5.0 RC2 FreeNAS does not boot

Post by vfr1200f »

The problem did not exist in RC1. Meanwhile, I've reverted back to RC1.
ctheis
Posts: 1
Joined: 26. Jun 2015, 18:06

Re: VirtualBox 5.0 RC2 FreeNAS does not boot

Post by ctheis »

I can confirm this problem for FreeBSD 10.2-PRERELEASE amd64 1001519. Reverting to RC1 fixes it. The crash occurs as soon as X11 is started, the kernel boots fine.
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Any and all
Contact:

Re: VirtualBox 5.0 RC2 FreeNAS does not boot

Post by michaln »

ctheis wrote:I can confirm this problem for FreeBSD 10.2-PRERELEASE amd64 1001519.
Are you saying that that version also enables CLFLUSH use even though it's running in a VM?

FWIW, the problem seems to also somehow depend on the specific CPU used. Some are affected and some are not even when CLFLUSH is used, we're not really sure why.
valcho
Posts: 3
Joined: 26. Jun 2015, 18:29

Re: VirtualBox 5.0 RC2 FreeNAS does not boot

Post by valcho »

Hi,

FYI, PC-BSD 10.1 (FreeBSD 10.1) stopped booting either with RC2, rolled back to RC1 and it's booting again.

Thanks,
Val
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Any and all
Contact:

Re: VirtualBox 5.0 RC2 FreeNAS does not boot

Post by michaln »

I don't suppose any of you could provide a VBox.log so that we can check if it's really the same problem?
valcho
Posts: 3
Joined: 26. Jun 2015, 18:29

Re: VirtualBox 5.0 RC2 FreeNAS does not boot

Post by valcho »

michaln wrote:I don't suppose any of you could provide a VBox.log so that we can check if it's really the same problem?
Hi,
See attached.
Thanks,
Val
Attachments
VB_5_RC2_PCBSD_LOG.zip
(50.41 KiB) Downloaded 22 times
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Any and all
Contact:

Re: VirtualBox 5.0 RC2 FreeNAS does not boot

Post by michaln »

valcho wrote: Hi,
See attached.
Thanks,
Val
Thanks! This is indeed the same comment as the OP's problem (CLFLUSH instruction going wrong). Once again it's unclear why the kernel is using it at all. Turning on the "minimal" paravirtualization option might make a difference.

At any rate, the CLFLUSH guru meditation will be fixed in the next build.
vfr1200f
Posts: 4
Joined: 26. Jun 2015, 13:08

Re: VirtualBox 5.0 RC2 FreeNAS does not boot

Post by vfr1200f »

Could you confirm this issue is fixed in RC3?

Thanks,
Joris
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Any and all
Contact:

Re: VirtualBox 5.0 RC2 FreeNAS does not boot

Post by michaln »

We can't "confirm" anything, you have to!
vfr1200f
Posts: 4
Joined: 26. Jun 2015, 13:08

Re: VirtualBox 5.0 RC2 FreeNAS does not boot

Post by vfr1200f »

Using RC3 I could not start the machine from the GUI. Another thread mentioned to use build 101470 and with that build, I no longer run into the original problem (FreeNAS not wanting to start).

Thanks,
Joris
valcho
Posts: 3
Joined: 26. Jun 2015, 18:29

Re: VirtualBox 5.0 RC2 FreeNAS does not boot

Post by valcho »

michaln wrote:
valcho wrote: Hi,
See attached.
Thanks,
Val
Thanks! This is indeed the same comment as the OP's problem (CLFLUSH instruction going wrong). Once again it's unclear why the kernel is using it at all. Turning on the "minimal" paravirtualization option might make a difference.

At any rate, the CLFLUSH guru meditation will be fixed in the next build.
FYI, PC-BSD 10.1 boots with RC3

Thanks!
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Any and all
Contact:

Re: [Fixed] VirtualBox 5.0 RC2 FreeNAS does not boot

Post by michaln »

Thanks for the confirmation. The problem was elusive enough that only the people who saw in in the first place could verify the fix. It only seemed to happen on certain CPUs.

It would still be interesting to know why the FreeBSD kernel thought it needed to use CLFLUSH at all even when running in a VM... but it's not that important.
Post Reply