Create the base Ubuntu 20.04 cloud image with code

This commit is contained in:
Greg Karékinian
2020-12-08 16:25:32 +01:00
parent 176083497c
commit 6f7b493173
2 changed files with 15 additions and 5 deletions

View File

@@ -1,11 +1,6 @@
#!/bin/bash
set -e
# The base VM was downloaded using the following commands:
# mkdir /var/lib/libvirt/images/base
# curl -o http://cloud-images.ubuntu.com/releases/focal/release/ubuntu-20.04-server-cloudimg-amd64-disk-kvm.img /var/lib/libvirt/images/base/ubuntu-20.04-server-cloudimg-amd64-disk-kvm.qcow2
# chown -R libvirt-qemu:root /var/lib/libvirt/images/base
if [[ $# -eq 0 ]] ; then
echo 'USAGE: create_vm VMNAME'
exit 1