[en] Run a Virtual Machine with VirtualBox on a Hackintosh

You are running on a OS X à la Hackintosh ? You have a « VT-x is not available. VERR_VMX_NO_VMX » when you start a virtual machine ? Do not panic !

Under the ~/Library/VirtualBox/Machines directory you will find a folder for each virtual machine you have created. Within this directly you will find an XML file with the machine settings.

Update: You can now just type in your terminal: VBoxManage modifyvm <VMname> --hwvirtex off (change <VMname> with your VM name)

Edit XML VBox file

So, in your « user folder » (~/), there will be a Library folder, hidden in OS X Lion, so to see it, open the Finder, in the « Go » menu, hold .

Inside that Library folder, there is a folder called VirtualBox, which contains a Machines folder. In each VM folder, open the *.vbox file using a text-editor. It’s a XML file.

It looks like:

<?xml ...
    <VirtualBox ...
        <Machine ...
            <CPU count="1">
                <HardwareVirtEx enabled="true" ... />
            ...

Exit Virtual Box, change this « true » to « false » and Save. Restart Virtual Box and (or open it if you had it closed) and the hardware virtualization extensions will be disabled.

Seems like a clear bug with VirtualBox, being that the setting is grayed out in the GUI but you can change it in the XML config file and that fixes the problem.

Source: https://forums.virtualbox.org/viewtopic.php?f=2&t=17080

See something wrong here ? Please tell me with an issue on Github, or just some words on twitter at @MoOx.

About the author

Maxime Thirouin, known as MoOx on the web, is a freelance front-end web developer living in Toulouse, France. When he is not behind his screen like a geek, he loves to do the handyman in his wood house or having fun with is awesome wife. You can check what he codes on Github or just take a look at what he shares on Twitter.


Comments