2.7 KiB
2.7 KiB
Here are the updated VM creation commands with recommended settings:
Debian 12 VM (ID: 500):
qm create 500 --name debian-12 --memory 2048 --cores 2 --net0 virtio,bridge=vmbr0 --net1 virtio,bridge=vmbr1
qm importdisk 500 debian-12-genericcloud-amd64.qcow2 local-lvm
qm set 500 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-500-disk-0
qm set 500 --boot c --bootdisk scsi0
qm set 500 --serial0 socket --vga serial0
qm set 500 --agent enabled=1
qm resize 500 scsi0 +8G
qm set 500 --ipconfig0 ip=dhcp
qm set 500 --ipconfig1 ip=dhcp
qm set 500 --onboot 1
qm set 500 --startup order=1
Ubuntu 22.04 Desktop VM (ID: 600):
qm create 600 --name ubuntu-22-04-desktop --memory 4096 --cores 2 --net0 virtio,bridge=vmbr0 --net1 virtio,bridge=vmbr1
qm importdisk 600 ubuntu-22.04-desktop-amd64.qcow2 local-lvm
qm set 600 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-600-disk-0
qm set 600 --boot c --bootdisk scsi0
qm set 600 --serial0 socket --vga qxl
qm set 600 --agent enabled=1,fstrim_cloned_disks=1
qm resize 600 scsi0 +32G
qm set 600 --ipconfig0 ip=dhcp
qm set 600 --ipconfig1 ip=dhcp
qm set 600 --onboot 1
qm set 600 --startup order=2
Rocky Linux 9 VM (ID: 700):
qm create 700 --name rocky-linux-9 --memory 2048 --cores 2 --net0 virtio,bridge=vmbr0 --net1 virtio,bridge=vmbr1
qm importdisk 700 rocky-linux-9-genericcloud-amd64.qcow2 local-lvm
qm set 700 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-700-disk-0
qm set 700 --boot c --bootdisk scsi0
qm set 700 --serial0 socket --vga serial0
qm set 700 --agent enabled=1
qm resize 700 scsi0 +8G
qm set 700 --ipconfig0 ip=dhcp
qm set 700 --ipconfig1 ip=dhcp
qm set 700 --onboot 1
qm set 700 --startup order=3
Changes made:
- Increased memory for all VMs to accommodate desktop environments and applications.
- Added
--agent enabled=1to enable the QEMU Guest Agent for better VM management and performance. - Added
fstrim_cloned_disks=1for the Ubuntu VM to optimize disk space usage on cloned disks. - Increased disk size for the Ubuntu VM to 32GB to accommodate desktop applications and user data.
- Set
--vga qxlfor the Ubuntu VM to provide better graphics performance for the desktop environment. - Added
--onboot 1to enable automatic start on boot for all VMs. - Set startup order for the VMs using
--startup order=Xto control the boot sequence.
Remember to replace the paths to the disk images (debian-12-genericcloud-amd64.qcow2, ubuntu-22.04-desktop-amd64.qcow2, and rocky-linux-9-genericcloud-amd64.qcow2) with the actual paths to your respective VM disk images.
These updated commands create VMs with recommended settings for memory, cores, disk size, guest agent, graphics, and boot options to ensure optimal performance and management capabilities in a Proxmox VE environment.