If you’re using VMware Workstation or Fusion you MUST specify the –provider argument in vagrant up command when you’re creating the VM (but not on subsequent starts). ![]() provision "shell", privileged : false, inline : <<- SHELL sudo apt - get update sudo apt - get install - y python3 - pip sudo pip3 install - ignore - installed networklab sudo pip3 install - upgrade pyopenssl cryptography netlab install - y ubuntu ansible libvirt containerlab SHELL endĮxecute vagrant up and wait for the installation to complete. box = "generic/ubuntu2004" # config.vm.box = "bento/ubuntu-20.04" config. Change the memory/ memsize or cpus/ numvcpus settings to fit your hardware.Ĭhange the Vagrant box from generic/ubuntu2004 to bento/ubuntu-20.04 if the generic Ubuntu box is not available for your Vagrant provider. Create Vagrantfile with the following content in that directory. Install Vagrant VMware provider if you’re using VMware Workstation/Fusion.Ĭreate an empty directory. ![]() Install VirtualBox or VMware Fusion/Workstation ![]() You can also create the virtual machine yourself (using, for example, VirtualBox or VMware GUI) Creating Ubuntu VM with Vagrant ¶ Provision the software on the virtual machine The easiest way to set up a Ubuntu VM is to use Vagrant. While VMware products perform flawlessly, you might get unacceptable performance with VirtualBox nested virtualization on some Intel CPUs (example: MacBook Pro 2020, Intel Core i5 CPU). Nested virtualization was available in VMware Workstation/Fusion for years and was recently added to VirtualBox. Running libvirt within a Ubuntu VM requires nested virtualization. Virtualbox-Based Lab on Windows or MacOS.Selecting the Platform and Low-Level Tools.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |