Open mas-kon opened 9 months ago
Command qm set 5000 --scsihw virtio-scsi-pci --scsi0 local:vm-5000-disk-0 is wrong. Must be qm set 5000 --scsihw virtio-scsi-pci --scsi0 local:5000/vm-5000-disk-0.raw
qm set 5000 --scsihw virtio-scsi-pci --scsi0 local:vm-5000-disk-0
qm set 5000 --scsihw virtio-scsi-pci --scsi0 local:5000/vm-5000-disk-0.raw
Or four commands:
qm create 1000 \ --memory 4196 \ --balloon 0 \ --core 2 \ --sockets 2 \ --cpu cputype=host \ --numa 1 \ --name ubuntu-cloud \ --net0 virtio,bridge=vmbr0 \ --agent enabled=1,type=virtio \ --ostype l26 \ --sshkeys /root/.ssh/my_key.pub \ --ciuser root \ --cipassword "123qweASD" \ --serial0 socket \ --vga serial0 \ --ipconfig0 "ip=dhcp" qm importdisk 1000 /var/lib/vz/template/iso/jammy-server-cloudimg-amd64.img --format qcow2 local qm set 1000 --scsihw virtio-scsi-pci --scsi0 local:1000/vm-1000-disk-0.qcow2 --ide2 local:cloudinit --boot c --bootdisk scsi0 qm template 1000
Cloud Init
Command
qm set 5000 --scsihw virtio-scsi-pci --scsi0 local:vm-5000-disk-0
is wrong. Must beqm set 5000 --scsihw virtio-scsi-pci --scsi0 local:5000/vm-5000-disk-0.raw
Or four commands: