ChoseSoft

Automate. Optimize. Lead with Linux

Proxmox


installing new VM based on CloudINIT

wget https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img -O ubuntu-22.04-cloud.img

qm create 9000 --name ubuntu-cloud --memory 2048 --cores 2 --net0 virtio,bridge=vmbr0
qm importdisk 9000 ubuntu-22.04-cloud.img local-lvm
qm importdisk 9000 ubuntu-22.04-cloud.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 set 9000 --ciuser ubuntu --cipassword heslo123 --ipconfig0 ip=dhcp
qm template 9000

qm set 9000 --ciuser xchose --cipassword pass
qm clone 9000 105 --name ubuntu-vm --full true
qm start 105


qm stop 105
qm destroy 105 --destroy-unreferenced-disks 1