virt-install:tldr:3d5de
virt-install: Create a x86-64, KVM-accelerated, UEFI-based virtual machine with the Q35 chipset, 4 GiB RAM, 16 GiB RAW storage, and start a Fedora installation.
$ virt-install --name ${vm_name} --arch ${x86_64} --virt-type ${kvm} --machine ${q35} --boot ${uefi} --memory ${4096} --disk path=${path-to-image-raw},size=${16} --cdrom ${path-to-fedora-iso}
try on your machine
This command is used to create and install a virtual machine using the virt-install command-line tool. Let's break down each part:
virt-install
is the command-line tool used to create and manage virtual machines on KVM (Kernel-based Virtual Machine) hypervisor.--name ${vm_name}
specifies the name of the virtual machine.${vm_name}
is a placeholder that should be replaced with the desired name.--arch ${x86_64}
specifies the architecture of the virtual machine.${x86_64}
is a placeholder for the x86_64 architecture.--virt-type ${kvm}
specifies the virtualization type, which is KVM in this case.${kvm}
is a placeholder for KVM.--machine ${q35}
specifies the machine type or model to emulate.${q35}
represents the Q35 machine type.--boot ${uefi}
specifies the boot method for the virtual machine, which is UEFI (Unified Extensible Firmware Interface) in this case.${uefi}
is a placeholder for UEFI.--memory ${4096}
defines the amount of memory in megabytes (MB) to allocate for the virtual machine.${4096}
is a placeholder for 4096 MB (or 4GB).--disk path=${path-to-image-raw},size=${16}
creates a virtual disk for the virtual machine.${path-to-image-raw}
should be replaced with the desired path to the image file, and${16}
represents the size of the disk in gigabytes (GB).--cdrom ${path-to-fedora-iso}
specifies the path to the Fedora ISO file to be used as the installation media for the virtual machine.${path-to-fedora-iso}
should be replaced with the actual path to the ISO file.
By running this command with the appropriate values filled in, a virtual machine will be created with the specified attributes, including the provided name, architecture, virtualization type, machine type, boot method, allocated memory, disk, and installation media.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.