Avoid kernel panic: Detect if other processes are using vmx #9

Closed
tiborvass opened this Issue Jun 10, 2015 · 8 comments

Comments

Projects
None yet
7 participants
@tiborvass

Currently, if you have virtualbox running already, xhyve will kernel panic.

Is there a way we could detect if something is already using vmx and error out cleanly?

@xez

This comment has been minimized.

Show comment
Hide comment
@xez

xez Jun 10, 2015

Collaborator

I can reproduce the panic with VirtualBox + xhyve but not VMware + xhyve. Maybe only an issue with VirtualBox?

Collaborator

xez commented Jun 10, 2015

I can reproduce the panic with VirtualBox + xhyve but not VMware + xhyve. Maybe only an issue with VirtualBox?

@tiborvass

This comment has been minimized.

Show comment
Hide comment
@tiborvass

tiborvass Jun 10, 2015

@xez I am no expert on VMX but I think I read that there are two modes: one that lets other processes use VMX, and one that doesn't and I believe Virtualbox uses the latter. I believe Parallels also does that, however it has some error handling code, and will prompt to close Virtualbox.

I am not sure if folks at Parallels added virtualbox-specific code (i.e. check if Virtualbox is running) or if there is a proper way to check if we can access vmx before actually using it.

@xez I am no expert on VMX but I think I read that there are two modes: one that lets other processes use VMX, and one that doesn't and I believe Virtualbox uses the latter. I believe Parallels also does that, however it has some error handling code, and will prompt to close Virtualbox.

I am not sure if folks at Parallels added virtualbox-specific code (i.e. check if Virtualbox is running) or if there is a proper way to check if we can access vmx before actually using it.

@mist64

This comment has been minimized.

Show comment
Hide comment
@mist64

mist64 Jun 10, 2015

Owner

Duplicate of #9 - there is nothing xhyve can do, we're user mode, and this is a kernel panic. :( VirtualBox has to be fixed to play nicely with Hypervisor.framework.

Owner

mist64 commented Jun 10, 2015

Duplicate of #9 - there is nothing xhyve can do, we're user mode, and this is a kernel panic. :( VirtualBox has to be fixed to play nicely with Hypervisor.framework.

@mist64 mist64 closed this Jun 10, 2015

@mdaniel

This comment has been minimized.

Show comment
Hide comment
@mdaniel

mdaniel Jun 10, 2015

I think you mean dupe of #5 and since you are well versed in Hypervisor.framework, could we implore you to search or file an issue with VirtualBox? Just saying they need to here in a GH comment does not help them achieve that goal.

mdaniel commented Jun 10, 2015

I think you mean dupe of #5 and since you are well versed in Hypervisor.framework, could we implore you to search or file an issue with VirtualBox? Just saying they need to here in a GH comment does not help them achieve that goal.

@tiborvass

This comment has been minimized.

Show comment
Hide comment
@tiborvass

tiborvass Jun 10, 2015

@mist64 FWIW, Parallels can detect that something incompatible is using vmx (here: it's xhyve).
Parallels detecting xhyve

@mist64 FWIW, Parallels can detect that something incompatible is using vmx (here: it's xhyve).
Parallels detecting xhyve

AntonioMeireles added a commit to AntonioMeireles/xhyve that referenced this issue Jun 11, 2015

add a pointer in the README about #5/#9 so that no one gets surprised.
Signed-off-by: António Meireles <antonio.meireles@reformi.st>

AntonioMeireles added a commit to AntonioMeireles/xhyve that referenced this issue Jun 11, 2015

add a pointer in the README about #5/#9 so that no one gets surprised.
Signed-off-by: António Meireles <antonio.meireles@reformi.st>

mist64 added a commit that referenced this issue Jun 11, 2015

Merge pull request #15 from AntonioMeireles/update_docs_crash
add a pointer in the README about #5/#9 so that no one gets surprised.

@jedsmith jedsmith referenced this issue in coreos/coreos-xhyve Jun 17, 2015

Closed

doc: warn if VirtualBox loaded kernel extensions #19

@il-demone-guardiano

This comment has been minimized.

Show comment
Hide comment
@il-demone-guardiano

il-demone-guardiano Jul 11, 2015

Does not happen anymore with VirtualBox 5.0.
You can even run VirtualBox and xhyve side by side.

Does not happen anymore with VirtualBox 5.0.
You can even run VirtualBox and xhyve side by side.

@paulp

This comment has been minimized.

Show comment
Hide comment
@paulp

paulp Jul 11, 2015

Confirming @il-demone-guardiano's experience.

screen shot 2015-07-11 at 08 11 13

paulp commented Jul 11, 2015

Confirming @il-demone-guardiano's experience.

screen shot 2015-07-11 at 08 11 13

@AntonioMeireles

This comment has been minimized.

Show comment
Hide comment
@AntonioMeireles

AntonioMeireles Jul 11, 2015

Contributor

#39 updates docs regarding this 😄

Contributor

AntonioMeireles commented Jul 11, 2015

#39 updates docs regarding this 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment