

To generate a password for root you can run and paste it in the section: mkpasswd -method=SHA-512 Paste in your ssh key in : cat ~/.ssh/id_rsa.pubĬhange the to echo 'ubuntu ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/ubuntu So let's add some host names to our /etc/hosts 192.168.122.191 mycluster-cp1Ĭreate a file called user-data.yml and add the following: #cloud-config

You can see our static address range is 192.168.122.1/24. $ ip link show type bridgeĥ: virbr0: mtu 1500 qdisc noqueue state DOWN group default qlen 1000 In Ubuntu 22.04 you should already have one called virbr0. You should already have QEMU/KVM setup and a ssh key created using ssh-keygen -t rsa.įirst thing you need to do is make sure you have a virtual bridge. If you have a decent multi-core CPU with enough RAM running Ubuntu there's no reason not to use it for this course instead of a cloud service.
