virt-xml(1) Virtualization Support virt-xml(1) (NAME) virt-xml - XML libvirt (SYNOPSIS) virt-xml DOMAIN XML-ACTION XML-OPTION [OUTPUT-OPTION] [MISC-OPTIONS] ... (DESCRIPTION) virt-xml XML libvirt . << (EXAMPLES)>> . virt-xml : ( ) ( XML stdin) XML XML . : o --add-device: XML o --remove-device: o --edit: XML o --build-xml: XML . virt-xml . XML XML virt-xml --disk --boot. virt-xml << XML>> . . (OPTIONS) -c --connect URI . virt-install(1) . domain domain UUID (ID) . --build-xml XML (stdin) . --define . --update ( / ). XML (stdin) --print-xml . XML (XML ACTIONS) --edit [EDIT-OPTIONS] XML . EDIT-OPTIONS virt-xml . XML XML virt-xml . --disk EDIT-OPTIONS . XML XML --cpu --security --boot --clock . XML virt-xml . XML 'clearxml=yes' . --edit XML . XML . . EDIT-OPTIONS: o --edit --edit << >> . '--edit --disk DISK-OPTIONS' << >> . XML '--edit' . o --edit # XML . '--edit 2 --disk DISK-OPTS' << >> . XML . o --edit all XML XML . '--edit all --disk DISK-OPTS' << >> . XML . o --edit DEVICE-OPTIONS XML . XML . --edit path=/tmp/foo --disk DISK-OPTS << /tmp/foo>> . XML . --add-device XML XML. : '--add-device --disk DISK-OPTIONS' XML . XML ( --edit ). --remove-device XML. XML --edit . : o --remove-device --disk 2 o --remove-device --network all o --remove-device --sound pcspk model='pcspk' XML ( --edit ). --build-xml XML (stdout). XML . : '--build-xml --disk DISK-OPTIONS' . XML virt-xml . XML XML ( --vcpus --memory) . (OUTPUT OPTIONS) XML . << XML>> . . --update . --edit . --add-device (hotplug) . --remove-device (hotunplug) . XML . --define . --define XML . --print --define . --no-define XML . --update . --start . --no-define . --print-diff XML unified diff. . --print-xml XML . . --confirm (diff) XML . (GUEST OS OPTIONS) --osinfo, --os-variant OS_VARIANT ( 'fedora29' 'rhel7' 'win10'). virtio . virt-manager 2.0.0 virt-xml . virt-xml --osinfo list . osinfo-query os . --osinfo/--os-variant virt-install(1) . (CONVERSION OPTIONS) --convert-to-q35 : --convert-to-q35 [OPTIONS] PC/i440FX Q35. : o PCI PCIe o IDE SATA . Windows 10 IDE SATA . safe mode . : num_pcie_root_ports=NUM pcie-root-port . --convert-to-vnc : --convert-to-vnc [OPTIONS] VNC . VNC Spice . : o qxl o spicevmc spiceport o spice GL egl-headless : qemu-vdagent=on|off qemu-vdagent . spice vdagent . off . XML (XML OPTIONS) o --disk o --network o --graphics o --metadata o --memory o --vcpus o --cpu o --iothreads o --seclabel o --keywrap o --cputune o --numatune o --memtune o --blkiotune o --memorybacking o --features o --clock o --pm o --events o --resources o --sysinfo o --xml o --qemu-commandline o --launchSecurity o --boot o --idmap o --controller o --input o --serial o --parallel o --channel o --console o --hostdev o --filesystem o --sound o --audio o --watchdog o --video o --smartcard o --redirdev o --memballoon o --tpm o --rng o --panic o --shmem o --memdev XML XML . virt-install(1) . XML libvirt . : --option opt=val,opt2=val2,... : --disk path=/tmp/foo,shareable=on. '--option opt=,' cache '--disk cache=,' . --option=? : --disk=? --boot=? --help . << (EXAMPLES)>> . virt-xml virt-install . : --boot refresh-machine-type=yes XML qemu . pc-q35-4.0 q35 . qemu qemu . (MISCELLANEOUS OPTIONS) -h, --help --version -q, --quiet -d, --debug () (EXAMPLES) --disk --network : # virt-xml --disk=? --network=? 'EXAMPLE': # virt-xml EXAMPLE --edit --metadata description="my new description" 'EXAMPLE': # virt-xml EXAMPLE --edit --boot menu=on 'winxp' 'host-model' diff : # virt-xml winxp --edit --cpu host-model,clearxml=yes --confirm model=ich6 'fedora19' (diff): # virt-xml fedora19 --edit 2 --sound model=ich6 --print-diff 'foo' 'rhel6': # virt-xml rhel6 --edit all --graphics password=foo --update hdc: # virt-xml rhel6 --edit target=hdc --disk path= 'disk' cache=none XML stdin XML stdout: # cat | virt-xml --edit device=disk --disk cache=none / (IO) 'hda' native 'optional': # virt-xml fedora20 --edit target=hda \ --disk io=native,startup_policy=optional driver_name=vfio 'fedora20' : # virt-xml --connect qemu+ssh://remotehost/system \ fedora20 --edit all --hostdev driver_name=vfio (Hotplug) USB 001.003 'fedora19': # virt-xml fedora19 --update --add-device --hostdev 001.003 spicevmc 'winxp' : # virt-xml winxp --add-device --channel spicevmc qcow2 10 'fedora18' : # virt-xml fedora18 --add-device \ --disk /var/lib/libvirt/images/newimage.qcow2,format=qcow2,size=10 : # virt-xml fedora18 --osinfo fedora18 --add-device \ --disk /var/lib/libvirt/images/newimage.qcow2,format=qcow2,size=10 (Hotunplug) vdb 'rhel7': # virt-xml rhel7 --update --remove-device --disk target=vdb 'rhel7' : # virt-xml rhel7 --remove-device --graphics all XML virtio stdout: # virt-xml --build-xml --console pty,target_type=virtio qemu: # virt-xml f25 --edit --confirm --qemu-commandline="-device FOO" 'network' : # virt-xml myvm --no-define --start --edit --boot network (CAVEATS) libvirt . . QEMU . (BUGS) . (COPYRIGHT) (C) Red Hat . . << >> . . (SEE ALSO) virt-install(1) virt-xml(1)