Want to install 64 bit OS on VirtualBox?
By default, VirtualBox only allows to install 32 bit OS on it. But sometimes, 64 bit OS is wanted for specific uses such as running platform specific tests. To allow installing 64 bit OS on VirtualBox. Below information is needed.
Here is the official documentation about 64 bit OS:
VirtualBox supports 64-bit guest operating systems, even on 32-bit host operating systems, provided that the following conditions are met:
You need a 64-bit processor with hardware virtualization support (see the section called “Hardware vs. software virtualization”).
You must enable hardware virtualization for the particular VM for which you want 64-bit support; software virtualization is not supported for 64-bit VMs.
If you want to use 64-bit guest support on a 32-bit host operating system, you must also select a 64-bit operating system for the particular VM. Since supporting 64 bits on 32-bit hosts incurs additional overhead, VirtualBox only enables this support upon explicit request.
On 64-bit hosts (which typically come with hardware virtualization support), 64-bit guest operating systems are always supported regardless of settings, so you can simply install a 64-bit operating system in the guest.
On any host, you should enable the I/O APIC for virtual machines that you intend to use in 64-bit mode. This is especially true for 64-bit Windows VMs. See the section called “"Advanced" tab”. In addition, for 64-bit Windows guests, you should make sure that the VM uses the Intel networking device, since there is no 64-bit driver support for the AMD PCNet card; see the section called “Virtual networking hardware”.
If you use the "Create VM" wizard of the VirtualBox graphical user interface (see the section called “Creating your first virtual machine”), VirtualBox will automatically use the correct settings for each selected 64-bit operating system type.
Based on the documentation, VirtualBox allows to install 64 bit OS even if you have a 32 bit host OS installed. But one necessary condition is that you have a 64 bit processor. The next thing you need to do is to enable hardware virtualization.
You can enable this by going to the BIOS settings, usually when you start your computer, press F12 and then it will go into BIOS mode, there you can find the config setting "Virtualization Technology" and vt-d feature. By default they are disabled, you need to update them to Enabled. After this, restart the computer and you will see the 64 bit OS option when you create new virtual machine.
One last thing you need to do is to have an 64 bit OS to install on the created VM.
If you don't know how to install OS on VM, you can go to Guide for installing Ubuntu in VirtualBox on Windows.
To know which CPU you have, on Windows, you can open Control Panel -> System and Security -> System -> Processor.
On Linux, you can use command lscpu.
A meal of a programmer. With this doll, it's not just a cup of instant noodle now.