wikiv2:install_kvm_ubuntu
Table of Contents
Instalação do KVM no Ubuntu 22.04
Checando o suporte a virtualização
$ egrep --color -i "svm|vmx" /proc/cpuinfo flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l2 invpcid_single cdp_l2 ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves split_lock_detect dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid movdiri movdir64b fsrm avx512_vp2intersect md_clear ibt flush_l1d arch_capabilities vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple pml ept_mode_based_exec tsc_scaling flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l2 invpcid_single cdp_l2 ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves split_lock_detect dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid movdiri movdir64b fsrm avx512_vp2intersect md_clear ibt flush_l1d arch_capabilities vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple pml ept_mode_based_exec tsc_scaling flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l2 invpcid_single cdp_l2 ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves split_lock_detect dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid movdiri movdir64b fsrm avx512_vp2intersect md_clear ibt flush_l1d arch_capabilities vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple pml ept_mode_based_exec tsc_scaling flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l2 invpcid_single cdp_l2 ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves split_lock_detect dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid movdiri movdir64b fsrm avx512_vp2intersect md_clear ibt flush_l1d arch_capabilities vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple pml ept_mode_based_exec tsc_scaling flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l2 invpcid_single cdp_l2 ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves split_lock_detect dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid movdiri movdir64b fsrm avx512_vp2intersect md_clear ibt flush_l1d arch_capabilities vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple pml ept_mode_based_exec tsc_scaling flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l2 invpcid_single cdp_l2 ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves split_lock_detect dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid movdiri movdir64b fsrm avx512_vp2intersect md_clear ibt flush_l1d arch_capabilities vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple pml ept_mode_based_exec tsc_scaling flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l2 invpcid_single cdp_l2 ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves split_lock_detect dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid movdiri movdir64b fsrm avx512_vp2intersect md_clear ibt flush_l1d arch_capabilities vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple pml ept_mode_based_exec tsc_scaling flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l2 invpcid_single cdp_l2 ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves split_lock_detect dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid movdiri movdir64b fsrm avx512_vp2intersect md_clear ibt flush_l1d arch_capabilities vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple pml ept_mode_based_exec tsc_scaling
VMX corresponde a processadores Intel e SVM corresponde a processadores AMD. Se você conseguir uma correspondência na saida do comando
grep, terá suporte a virtualização.
Instalando o KVM - bibliotecas e gerenciamento de máquinas virtuais
$ sudo apt install virt-manager libosinfo-bin
$ virsh version --daemon
Compiled against library: libvirt 8.0.0
Using library: libvirt 8.0.0
Using API: QEMU 8.0.0
Running hypervisor: QEMU 6.2.0
Running against daemon: 8.0.0
Adicionando o usuário ao grupo KVM
$ sudo usermod -aG kvm $USER $ sudo reboot
Alterando o local do storage default
virsh pool-list virsh pool-info default virsh pool-destroy default virsh pool-undefine default
$ mkdir -p /home/gean/kvm/images $ mkdir -p /home/gean/kvm/templates $ mkdir -p /home/gean/kvm/isos
$ virsh pool-define-as --name default --type dir --target /home/gean/kvm/images $ virsh pool-define-as --name templates --type dir --target /home/gean/kvm/templates $ virsh pool-define-as --name isos --type dir --target /home/gean/kvm/isos
$ virsh pool-autostart default $ virsh pool-autostart templates $ virsh pool-autostart isos
$ virsh pool-start default $ virsh pool-start templates $ virsh pool-start isos
$ virsh pool-list Name State Autostart ------------------------------- default active yes
$ virsh pool-info default Name: default UUID: c3d72b8b-cd6e-47a5-8549-69db6d13c8d5 State: running Persistent: yes Autostart: yes Capacity: 219,76 GiB Allocation: 486,38 MiB Available: 219,29 GiB
Definindo o storage das ISOs
$ mkdir /home/gean/kvm/images/isos
$ virsh pool-define-as --name isos --type dir --target /home/gean/kvm/images/isos Pool isos defined
$ virsh pool-autostart isos
Pool isos marked as autostarted
$ virsh pool-start isos Pool isos started
$ virsh pool-list Name State Autostart ------------------------------- default active yes isos active yes
$ sudo chown libvirt-qemu:kvm /home/gean/kvm/images/ -R
Criando máquina virtual por linha de comando
$ wget http://cdimage.debian.org/mirror/cdimage/archive/11.2.0/amd64/iso-cd/debian-11.2.0-amd64-netinst.iso -O /home/gean/kvm/images/isos/debian-11.2.0-amd64-netinst.iso
$ osinfo-query os | grep debian debian1.1 | Debian GNU/Linux 1.1 | 1.1 | http://debian.org/debian/1.1 debian1.2 | Debian GNU/Linux 1.2 | 1.2 | http://debian.org/debian/1.2 debian1.3 | Debian GNU/Linux 1.3 | 1.3 | http://debian.org/debian/1.3 debian10 | Debian 10 | 10 | http://debian.org/debian/10 debian11 | Debian 11 | 11 | http://debian.org/debian/11 debian2.0 | Debian GNU/Linux 2.0 | 2.0 | http://debian.org/debian/2.0 debian2.1 | Debian GNU/Linux 2.1 | 2.1 | http://debian.org/debian/2.1 debian2.2 | Debian GNU/Linux 2.2 | 2.2 | http://debian.org/debian/2.2 debian3 | Debian GNU/Linux 3.0 | 3.0 | http://debian.org/debian/3 debian3.1 | Debian GNU/Linux 3.1 | 3.1 | http://debian.org/debian/3.1 debian4 | Debian GNU/Linux 4.0 | 4.0 | http://debian.org/debian/4 debian5 | Debian GNU/Linux 5.0 | 5.0 | http://debian.org/debian/5 debian6 | Debian 6.0 | 6.0 | http://debian.org/debian/6 debian7 | Debian 7 | 7 | http://debian.org/debian/7 debian8 | Debian 8 | 8 | http://debian.org/debian/8 debian9 | Debian 9 | 9 | http://debian.org/debian/9 debiantesting | Debian testing | testing | http://debian.org/debian/testing
$ virt-install --virt-type kvm \ --name debian11 \ --description "Debian bullseye" \ --cdrom /home/gean/kvm/images/isos/debian-11.2.0-amd64-netinst.iso \ --os-variant debian11 \ --disk size=16,format=qcow2,bus=virtio,cache=none \ --memory 1024 \ --vcpus 2 \ --cpu host-passthrough \ --network=default,model=virtio
$ virt-install --help usage: virt-install --name NAME --memory MB STORAGE INSTALL [options] Create a new virtual machine from specified install media. options: -h, --help show this help message and exit --version show program's version number and exit --connect URI Connect to hypervisor with libvirt URI General Options: -n NAME, --name NAME Name of the guest instance --memory MEMORY Configure guest memory allocation. Ex: --memory 1024 (in MiB) --memory memory=1024,currentMemory=512 --vcpus VCPUS Number of vCPUs to configure for your guest. Ex: --vcpus 5 --vcpus 5,maxvcpus=10,cpuset=1-4,6,8 --vcpus sockets=2,cores=4,threads=2 --cpu CPU CPU model and features. Ex: --cpu coreduo,+x2apic --cpu host-passthrough --cpu host --metadata METADATA Configure guest metadata. Ex: --metadata name=foo,title="My pretty title",uuid=... --metadata description="My nice long description" --xml XML Perform raw XML XPath options on the final XML. Example: --xml ./cpu/@mode=host-passthrough --xml ./devices/disk[2]/serial=new-serial --xml xpath.delete=./clock Installation Method Options: --cdrom CDROM CD-ROM installation media -l LOCATION, --location LOCATION Distro install URL, eg. https://host/path. See man page for specific distro examples. --pxe Boot from the network using the PXE protocol --import Build guest around an existing disk image -x EXTRA_ARGS, --extra-args EXTRA_ARGS Additional arguments to pass to the install kernel booted from --location --initrd-inject INITRD_INJECT Add given file to root of initrd from --location --unattended [UNATTENDED] Perform an unattended installation --install INSTALL Specify fine grained install options --reinstall DOMAIN Reinstall existing VM. Only install options are applied, all other VM configuration options are ignored. --cloud-init [CLOUD_INIT] Perform a cloud image installation, configuring cloud-init --boot BOOT Configure guest boot settings. Ex: --boot hd,cdrom,menu=on --boot init=/sbin/init (for containers) --idmap IDMAP Enable user namespace for LXC container. Ex: --idmap uid.start=0,uid.target=1000,uid.count=10 OS options: --os-variant OS_VARIANT, --osinfo OS_VARIANT The OS being installed in the guest. This is used for deciding optimal defaults like VirtIO. Example values: fedora29, rhel7.0, win10, ... Use '--osinfo list' to see a full list. Device Options: --disk DISK Specify storage with various options. Ex. --disk size=10 (new 10GiB image in default location) --disk /my/existing/disk,cache=none --disk device=cdrom,bus=scsi --disk=? -w NETWORK, --network NETWORK Configure a guest network interface. Ex: --network bridge=mybr0 --network network=my_libvirt_virtual_net --network network=mynet,model=virtio,mac=00:11... --network none --network help --graphics GRAPHICS Configure guest display settings. Ex: --graphics spice --graphics vnc,port=5901,listen=0.0.0.0 --graphics none --controller CONTROLLER Configure a guest controller device. Ex: --controller type=usb,model=qemu-xhci --controller type=scsi,model=virtio-scsi --input INPUT Configure a guest input device. Ex: --input tablet --input keyboard,bus=usb --serial SERIAL Configure a guest serial device --parallel PARALLEL Configure a guest parallel device --channel CHANNEL Configure a guest communication channel --console CONSOLE Configure a text console connection between the guest and host --hostdev HOSTDEV Configure physical USB/PCI/etc host devices to be shared with the guest --filesystem FILESYSTEM Pass host directory to the guest. Ex: --filesystem /my/source/dir,/dir/in/guest --filesystem template_name,/,type=template --sound [SOUND] Configure guest sound device emulation --audio AUDIO Configure host audio backend for sound devices --watchdog WATCHDOG Configure a guest watchdog device --video VIDEO Configure guest video hardware. --smartcard SMARTCARD Configure a guest smartcard device. Ex: --smartcard mode=passthrough --redirdev REDIRDEV Configure a guest redirection device. Ex: --redirdev usb,type=tcp,server=192.168.1.1:4000 --memballoon MEMBALLOON Configure a guest memballoon device. Ex: --memballoon model=virtio --tpm TPM Configure a guest TPM device. Ex: --tpm /dev/tpm --rng RNG Configure a guest RNG device. Ex: --rng /dev/urandom --panic PANIC Configure a guest panic device. Ex: --panic default --shmem SHMEM Configure a guest shared memory device. Ex: --shmem name=shmem0 --memdev MEMDEV Configure a guest memory device. Ex: --memdev dimm,target.size=1024 --vsock VSOCK Configure guest vsock sockets. Ex: --vsock cid.auto=yes --vsock cid.address=7 --iommu IOMMU Configure an IOMMU device. Ex: --iommu model=intel,driver.aw_bits=48 Guest Configuration Options: --iothreads IOTHREADS Set domain <iothreads> and <iothreadids> configuration. --seclabel SECLABEL, --security SECLABEL Set domain seclabel configuration. --keywrap KEYWRAP Set guest to perform the S390 cryptographic key management operations. --cputune CPUTUNE Tune CPU parameters for the domain process. --numatune NUMATUNE Tune NUMA policy for the domain process. --memtune MEMTUNE Tune memory policy for the domain process. --blkiotune BLKIOTUNE Tune blkio policy for the domain process. --memorybacking MEMORYBACKING Set memory backing policy for the domain process. Ex: --memorybacking hugepages=on --features FEATURES Set domain <features> XML. Ex: --features acpi=off --features apic=on,apic.eoi=on --clock CLOCK Set domain <clock> XML. Ex: --clock offset=localtime,rtc_tickpolicy=catchup --pm PM Configure VM power management features --events EVENTS Configure VM lifecycle management policy --resource RESOURCE Configure VM resource partitioning (cgroups) --sysinfo SYSINFO Configure SMBIOS System Information. Ex: --sysinfo host --sysinfo bios.vendor=MyVendor,bios.version=1.2.3,... --qemu-commandline QEMU_COMMANDLINE Pass arguments directly to the QEMU emulator. Ex: --qemu-commandline='-display gtk,gl=on' --qemu-commandline env=DISPLAY=:0.1 --launchSecurity LAUNCHSECURITY, --launchsecurity LAUNCHSECURITY Configure VM launch security (e.g. SEV memory encryption). Ex: --launchSecurity sev Virtualization Platform Options: -v, --hvm This guest should be a fully virtualized guest -p, --paravirt This guest should be a paravirtualized guest --container This guest should be a container guest --virt-type VIRT_TYPE Hypervisor name to use (kvm, qemu, xen, ...) --arch ARCH The CPU architecture to simulate --machine MACHINE The machine type to emulate Miscellaneous Options: --autostart Have domain autostart on host boot up. --transient Create a transient domain. --destroy-on-exit Force power off the domain when the console viewer is closed. --wait [WAIT] Minutes to wait for install to complete. --autoconsole AUTOCONSOLE Configure guest console auto connect. Example: --autoconsole text --autoconsole graphical --autoconsole none --noautoconsole Don't automatically try to connect to the guest console --noreboot Don't boot guest after completing install. --print-xml [XMLONLY] Print the generated domain XML rather than create the guest. --dry-run Run through install process, but do not create devices or define the guest. --check CHECK Enable or disable validation checks. Example: --check path_in_use=off --check all=off -q, --quiet Suppress non-error output -d, --debug Print debugging information Use '--option=?' or '--option help' to see available suboptions See man page for examples and full option syntax.
wikiv2/install_kvm_ubuntu.txt · Last modified: by 127.0.0.1
