Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix complaints about VT-x/AMD-V on CPUs lacking this feature #149

Open
wants to merge 35 commits into
base: master
Choose a base branch
from

Conversation

glenux
Copy link

@glenux glenux commented Apr 20, 2013

Detect CPU features and disable VT-x/AMD-V and related options on VM if needed.

Note: on machines lacking VT instructions, a strange complaint remains "VT-x is not available (VERR_VMX_NO_VMX)" if CPU number is not set to 1, so i forced it. (even on a machines with 4 cpus...)

@pipedreambomb
Copy link

I'm also having that problem; I will try your patch, @glenux.

@glenux
Copy link
Author

glenux commented Apr 22, 2013

It works well with WinXP, but there is still an issue at Windows 8 final boot (after setup).

I'm not sure, but it seems that Microsoft has enabled Hyper-V and make the system still requires VT-x/AMD-V features after installation. i don't know how to test & disable it (if someone can help..).

@pipedreambomb
Copy link

For me, WinXP wasn't booting but Win7 was (haven't tried Win8 as I have an actual installation of that on another partition). I found this suggestion worked, though I had to then tweak a setting like RAM allocation before it would recognize the change.

The main problem is, although they boot now, all the XP VMs are the same, running IE6. I think there's something magic that happens when the ievms script runs that installs the different versions for you... can I trigger that to go again, now the VMs work? I did try running the bash script again, but it didn't do anything new.

Update: heckit, I'm just going to download and run the installers manually in the VMs for IE7 and IE8. Will let you know how that goes.

Update 2: works fine :) Now if it could just fix my IE8 bug in my website for me, that would be lovely.

@neufena
Copy link

neufena commented May 8, 2013

I've not looked at the IE8 issue but the reason you need to set CPUs to 1 is that VirtualBox requires VT-x/AMD-V for a guest to have more than 1 cpu. It would be better to not turn off the feature at all just set the cpus to 1.

@phihag
Copy link

phihag commented May 22, 2013

This patch fixes the issue for me :+1 . Setting CPU count to 1 was necessary, but doesn't hurt for my case (Windows XP anyways).

@xdissent
Copy link
Owner

/proc doesn't exist on OS X machines. Any known probe that would be cross-platform?

@callado4
Copy link

This fix worked for me on an old laptop running Ubuntu. For OS X it seems that you can use sysctl such as described here: http://fortysomethinggeek.blogspot.com/2012/11/getting-cpu-info-from-command-line-in.html

I don't have a Mac at the moment so I can't do it myself for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants