Step 2: Initialize a Vagrantfile with Ubuntu Image. Step 1: Choose a folder to keep all vagrant-related files and Create a VM project directory. provision "shell", inline: <<-SHELL apt-get update apt-get full-upgrade -y apt-get install tasksel network-manager network-manager-gnome gdm3 open-vm-tools-desktop mate-terminal adwaita-icon-theme-full -y tasksel install ubuntu-desktop-minimal -y systemctl set-default graphical. In this section, you will learn how to create a Virtual machine using vagrant. vmx = '262144' # reserve 256MB for GPU end #config.vm.synced_folder "", "" # enable sycned folder for vm config. vmx = true # select nvme for primary drive v. vmx = true # enable VMWare Hot Add for RAM v. vmx = true # enable VMware Hot Add for CPU #v.vmx = true # enable nested virtulazation on vm v. vmx = '2' # one socket reserved for vm v. VirtualBox: config.vm.provider virtualbox do vb Display the VirtualBox GUI when. ![]() vmx = '2' # two processor cores reserved for vm v. To use Vagrant, we need VirtualBox to be installed first. vmx = 'ubuntu-64' # select 'ubuntu-64' as 'guostOS' in VMware v. vmx = 'hosted' # select 'virtualHW.productCompatibility' as 'hosted' this simply means we work with VMware Fusion, Workstation, Player etc. vmx = true # enable High Precision Event Timer v. No usable default provider could be found for your system. vmx = true # enable Virtual Machine Configuration Interface v. vmx = '16' # choose 16 as 'vmware_desktop' version v. ![]() provider "vmware_desktop" do | v| # select 'vmware_desktop' as provider v. box = "bento/ubuntu-20.04" # select bento/ubuntu-20.04 box config.
0 Comments
Leave a Reply. |