virt-install
TLDR
Create a VM with 1GB RAM, 12GB storage, and start Debian installation
SYNOPSIS
virt-install [options]
DESCRIPTION
virt-install creates new virtual machines using libvirt. It provisions VM configuration, storage, and initiates OS installation from various sources including ISO images, network locations, or PXE boot.
The tool supports advanced configurations including UEFI boot, CPU pinning, NUMA topology, and various device passthrough options. It integrates with QEMU/KVM, Xen, and other libvirt-supported hypervisors.
PARAMETERS
-n, --name _name_
Name for the new virtual machine--memory _size_
Memory allocation in MB--disk _spec_
Disk specification (path, size, format)-c, --cdrom _path_
CD-ROM/ISO image for installation-l, --location _url_
Installation source URL--cpu _model_
CPU model and topology configuration--boot _options_
Boot configuration (uefi, bios, etc.)--virt-type _type_
Hypervisor type (kvm, qemu, xen)--machine _type_
Machine type (q35, pc, etc.)-x, --extra-args _args_
Additional kernel arguments--autoconsole _type_
Console auto-connect behavior
CAVEATS
Requires libvirt daemon running and appropriate virtualization backend. KVM requires hardware virtualization support. UEFI boot requires OVMF firmware package. Network installations require connectivity to installation sources.
SEE ALSO
virt-clone(1), virsh(1), virt-manager(1), qemu-img(1)


