You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
803 B

  1. 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
  2. curl --progress-bar -o ubuntu-18.04-server-cloudimg-amd64.img http://cloud-images.ubuntu.com/releases/bionic/release/ubuntu-18.04-server-cloudimg-amd64.img
  3. # URL a changer quand Jammy Jellyfish sera sorti
  4. curl --progress-bar -o jammy-server-cloudimg-amd64.img http://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img
  5. # To remove disk on a VM
  6. qm unlink 9002 --idlist scsi0 --force 1
  7. # Import disk and set it up
  8. /usr/sbin/qm importdisk 9002 ubuntu-18.04-server-cloudimg-amd64.img ceph-ssd-fast
  9. /usr/sbin/qm set 9002 --scsihw virtio-scsi-pci --scsi0 ceph-ssd-fast:vm-9002-disk-0,discard=on
  10. /usr/sbin/qm resize 9002 scsi0 +2748M