virt-install
Create virtual machines with libvirt and begin OS installation. Note: You may need to pass
--connect URIto the commands or set up the URI in$XDG_CONFIG_HOME/libvirt/libvirt.conf. More information: https://manned.org/virt-install.
- Create a virtual machine with 1 GB RAM and 12 GB storage and start a Debian installation:
virt-install --memory --disk path=,size=
- 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 --arch --virt-type --machine --boot --memory --disk path=,size=
- Create a diskless live virtual machine without an emulated sound device or a USB controller. Don't start an installation and don't autoconnect to console but attach a cdrom to it (might be useful for when using a live CD like tails):
virt-install --memory --disk --controller --sound --autoconsole --install
- Create a virtual machine with 16 GiB RAM, 250 GiB storage, 8 cores with hyperthreading, a specific CPU topology, and a CPU model that shares most features with the host CPU:
virt-install --cpu ,topology.sockets=,topology.cores=,topology.threads= --memory --disk path=,size=
- Create a virtual machine and kickstart an automated deployment based on Fedora 43 using only remote resources (no ISO required):
virt-install --memory --disk path=,size= ""
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
