Skip to content

Instantly share code, notes, and snippets.

@tzmemo
Last active April 10, 2019 11:50
Show Gist options
  • Save tzmemo/f08928d2f556b3500383b26b715008e1 to your computer and use it in GitHub Desktop.
Save tzmemo/f08928d2f556b3500383b26b715008e1 to your computer and use it in GitHub Desktop.
Proxmox : New Template
wget https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img
qm create 9000 --memory 2048 --net0 virtio,bridge=vmbr0
qm importdisk 9000 bionic-server-cloudimg-amd64.img local-lvm
qm set 9000 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-9000-disk-0
qm set 9000 --ide2 local-lvm:cloudinit
qm set 9000 --boot c --bootdisk scsi0
qm set 9000 --serial0 socket --vga serial0
qm template 9000
qm clone 9000 123 --name ubuntu2
qm set 123 --sshkey ~/.ssh/id_rsa.pub
qm set 123 --ipconfig0 ip=dhcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment