Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloud Init #63

Open
mas-kon opened this issue Feb 25, 2024 · 0 comments
Open

Cloud Init #63

mas-kon opened this issue Feb 25, 2024 · 0 comments

Comments

@mas-kon
Copy link

mas-kon commented Feb 25, 2024

Cloud Init

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant