Prasyarat
- Proxmox terinstall
Panduan
Buat template
- Unduh file image cloud ubuntu 18
wget https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img
- Buat VM
qm create 100 --memory 2048 --net0 virtio,bridge=vmbr0
- Import image ke dalam local-lvm storage
qm importdisk 100 bionic-server-cloudimg-amd64.img local-lvm
- Atur disk VM
qm set 100 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-100-disk-0
- Buat drive cloud-image
qm set 100 --ide2 local-lvm:cloudinit
- Atur boot menggunakan cloud-init
qm set 100 --boot c --bootdisk scsi0
- Atur console
qm set 100 --serial0 socket --vga serial0
- Atur console
qm template 100
Buat VM
- Klon template
qm clone 100 200 --name ubuntu20
- Konfigurasi publickey dan IP Address
qm set 200 --sshkey ~/.ssh/id_rsa.pub
qm set 200 --ipconfig0 ip=192.168.10.251/24,gw=192.168.10.1
-
Start VM
-
Masuk console VM (Cek proses booting)
-
Uji SSH VM