2024-04-04
virt-install
: Launching a VM with the help of existingqcow2
image.
virt-install --name <VM-NAME> --memory 2048 --vcpus 2 --disk /home/vinay/Downloads/debian-12-generic-amd64-20240211-1654.qcow2,bus=sata --import --os-variant debian12 --network default
Launching the vm with an existing disk image, here launching a debian 12 generic cloud image with 2GB of ram, 2 CPU’s, with network as default also mentioning the os-variant debian
.
To list all the os-variant the option is virt-install --os-list info
.