Win10 64位系统Ubuntu虚拟机安装VirtualBox无64位选项及版本需求咨询
Hey Johnny, let's work through this issue step by step — I've run into this exact problem before when setting up nested virtualization, so I know exactly what to check. The core issue here is almost always related to nested virtualization support not being enabled, which prevents your Ubuntu VM from detecting the 64-bit virtualization capabilities needed to install a 64-bit VirtualBox instance inside it.
Here's how to fix it:
1. Verify Hardware Virtualization is Enabled on Your Windows Host
First, make sure your physical CPU's virtualization features are turned on at the BIOS/UEFI level:
- Restart your Windows 10 machine, and enter BIOS/UEFI (usually by pressing F2, Del, or F10 during boot—check your motherboard's manual for the exact key).
- Look for settings like Intel VT-x (for Intel CPUs) or AMD-V (for AMD CPUs), and enable them. These are often under "Security" or "CPU Configuration" menus.
- Boot back into Windows, open Task Manager > Performance tab > CPU, and confirm you see "Virtualization: Enabled" listed.
2. Enable Nested Virtualization in VirtualBox
This is the critical step for letting your Ubuntu VM run its own VMs:
- Shut down your Ubuntu VM completely (don't pause or hibernate it—full shutdown only).
- Open the VirtualBox Manager, select your Ubuntu VM, and click "Settings".
- Go to the System > Processor tab, then check the box for "Enable Nested VT-x/AMD-V".
- Click "OK" to save the changes, then start your Ubuntu VM again.
3. Install 64-bit VirtualBox in Ubuntu Correctly
Now that nested virtualization is enabled, you can install the 64-bit version directly via the official VirtualBox repositories (this ensures you get the correct 64-bit package):
- Open a terminal in Ubuntu and update your package lists:
sudo apt update && sudo apt upgrade -y - Install required build dependencies:
sudo apt install -y dkms build-essential linux-headers-$(uname -r) - Add the VirtualBox GPG key to verify package integrity:
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add - - Add the official 64-bit repository to your sources:
echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list - Install the latest 64-bit VirtualBox version (replace
7.0with the latest stable version if needed):sudo apt update && sudo apt install -y virtualbox-7.0
Once you've completed these steps, you'll have the 64-bit version of VirtualBox installed in your Ubuntu VM, and you should no longer see issues with missing 64-bit options.
内容的提问来源于stack exchange,提问作者Johnny Ragas

