Browse Source

Changed machine to q35, comment fix

pull/1/head
Julien Escario 3 years ago
parent
commit
0816ecb1a9
  1. 4
      cloud-init/create_ubuntu20_template.sh

4
cloud-init/create_ubuntu20_template.sh

@ -24,7 +24,7 @@ fi
echo "Storage $_storage is valid and VM does not exists, let's get the latest Ubuntu-minimal image from repo"
# Fetching the last Ubuntu Minimal 20.04 cloud-image
# Fetching the last Ubuntu 20.04 cloud-image
curl --progress-bar -o ubuntu-20.04-server-cloudimg-amd64.img http://cloud-images.ubuntu.com/releases/focal/release/ubuntu-20.04-server-cloudimg-amd64.img
# Silently download public SSH key
@ -41,7 +41,7 @@ curl -s -o support@altinea.fr.pub https://gitlab.altinea.fr/altinea/install-scri
/usr/sbin/qm template 9999
# Adjust VM settings (based on best practices)
/usr/sbin/qm set 9999 --args "-cpu 'kvm64,+ssse3,+sse4.1,+sse4.2,+x2apic'" --ciuser root --ipconfig0 ip=dhcp,ip6=dhcp --sshkeys support@altinea.fr.pub --name "Ubuntu20.04" --agent enabled=1 --numa 1 --hotplug network,disk,cpu,memory,usb --cores 8 --vcpus 1
/usr/sbin/qm set 9999 --args "-cpu 'kvm64,+ssse3,+sse4.1,+sse4.2,+x2apic'" --ciuser root --ipconfig0 ip=dhcp,ip6=dhcp --sshkeys support@altinea.fr.pub --name "Ubuntu20.04" --agent enabled=1 --numa 1 --hotplug network,disk,cpu,memory,usb --cores 8 --vcpus 1 --machine q35
# Delete temporary files
rm ubuntu-20.04-server-cloudimg-amd64.img

Loading…
Cancel
Save