Create VM
Cheat sheet · https://pcornel.dk/topic.php?topic=3434
Answer
Creating a VM means choosing host or cluster and storage, guest OS type, firmware (UEFI/BIOS), vCPU, memory, disks, controller and NIC types, then installing the OS from ISO or deploying from a template or image.
Remember
- Use paravirtual disk and network devices.
- Right-size CPU and memory from requirements.
First checks
virt-install --name test --memory 2048 --vcpus 2 --disk size=20 --cdrom <iso> --os-variant <os>— create a libvirt VMqm create <vmid> --name test --memory 2048 --net0 virtio,bridge=vmbr0— create a Proxmox VMNew-VM -Name test -Generation 2 -MemoryStartupBytes 2GB -NewVHDPath C:\VMs\test.vhdx -NewVHDSizeBytes 20GB— create a Hyper-V VM
Verify in this order
definition → disks allocated → NIC attached → first boot
Where it usually breaks
First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3434