Enable nested VT-x/AMD-V on Virtualbox

If you have VT-x enabled on your BIOS, but this option is grayed out on Virtualbox interface, you can do the following to fix:

You may need to locate to the bin folder of virtualbox, if you’re on Windows, the following command should work.

VBoxManage modifyvm vm-name --nested-hw-virt on

# On windows
VBoxManage.exe modifyvm vm-name --nested-hw-virt on

Please change vm-name to your VirtualBox machine name

Add to my src(0)

No account yet? Register

Install and use Vagrant on Linux for development

sudo apt-get autoremove virtualbox-dkms
sudo apt-get install build-essential linux-headers-`uname -r` dkms virtualbox-dkms
sudo modprobe vboxdrv
sudo modprobe vboxnetflt

Install and use vagrant

sudo apt update
sudo apt install curl
curl -O https://releases.hashicorp.com/vagrant/2.2.10/vagrant_2.2.10_x86_64.deb
sudo apt install ./vagrant_2.2.10_x86_64.deb
## Let's test 
vagrant --version
mkdir vagrant-project
cd vagrant-project
vagrant init centos/8

## If you already have a vagrant image.box
vagrant box add mybox ./image.box
vagrant init mybox
vagrant up
## To ssh into vagrant box
vagrant ssh
## To stop vagrant box
vagrant halt 
## To destroy and clean up everything
vagrant destroy
Add to my src(0)

No account yet? Register