I have installed a VirtualBox Ubuntu 22.04 in a Windows 10 host which has an Intel i5 processor.
In the Ubuntu VM, I have installed the Vagrant.
My purpose is to launch a virtual machine inside the existing virtual machine.
I have Virtualbox 7.0 installed and also enabled the nested virtualization feature in the relevant setting’s field.
I have given the vagrant init with the Ubuntu official box
vagrant init hashicorp/bionic64
And have modified the created Vagrant file as follows:
Vagrant.configure("2") do |config|
config.vm.box = "hashicorp/bionic64"
# enable nested virtualization
config.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--nested-hw-virt", "on"]
end
end
However when I give vagrant up
I always get the following :
No usable default provider could be found for your system.
What have I done wrong with the above configuration?