Building an Ubuntu Vagrant box

wget –no-check-certificate \ https://raw.githubusercontent.com/hashicorp/vagrant/main/keys/vagrant.pub \ -O /home/vagrant/.ssh/authorized_keys sudo rm -f /etc/machine-idsudo dbus-uuidgen –ensure=/etc/machine-idsudo rm /var/lib/dbus/machine-idsudo dbus-uuidgen –ensurereboot You can also try this parameter in the Ubuntu netplan configuration file: dhcp4: yesdhcp-identifier: mac sudo qemu-img convert -f qcow2 -O qcow2 /nvmedata2/test1_default.img ~/.vagrant.d/boxes/betterubuntu-VAGRANTSLASH-1804-1/0/libvirt/box.img cory@lab1:/nvmedata/labs/test2$ cat ~/.vagrant.d/boxes/betterubuntu-VAGRANTSLASH-1804-1/0/libvirt/Vagrantfile # The contents below were provided by the Packer Vagrant post-processor […]

Read More »