Create Virsh Ubuntu VM
Download qcow image Download qcow image from Ubuntu repo Resize image qemu-img info ubuntu.img qemu-img resize ubuntu.img 20G #or qemu-img resize ubuntu.img +10G Create user-data and meta-date for cloud-init Users are created on the first boot, so it impossible to change password/ssh key after first boot. To create password hash use following command: mkpasswd --method=SHA-512 --rounds=4096 user-data #cloud-config users: - name: ubuntu ssh_authorized_keys: - ssh-rsa AAAAB3...asdf root@localhost sudo: 'ALL=(ALL) NOPASSWD:ALL' groups: sudo shell: /bin/bash - name: ubuntu2 lock_passwd: false passwd: <password-hash> sudo: 'ALL=(ALL) NOPASSWD:ALL' groups: sudo shell: /bin/bash meta-data...