MY XML VM DEFINITION.XML
virsh define MY_XML_VM_DEFINITION.XML
(define machine but do not start it)
<ref>https://en.wikiversity.org/wiki/Draft:Virsh/MY_XML_VM_DEFINITION.XML</ref> Domain MY_XML_VM_DEFINITION defined from MY_XML_VM_DEFINITION.XML
Using --validate
option
virsh define xmlfile.xml --validate
Domain MY_XML_VM_DEFINITION defined from MY_XML_VM_DEFINITION.XML
virsh create MY_XML_VM_DEFINITION.XML
- XML definition: https://avdv.github.io/libvirt/formatdomain.html
Example:[1]
<domain type='kvm'> <name>MY_MACHINE</name> <uuid>2edb24b2-1d52-d7f3-2516-682e98a23fB2</uuid> <memory>131072</memory> <vcpu>3</vcpu> <os> <type arch="i686">hvm</type> </os> <clock sync="localtime"/> <devices> <emulator>/usr/bin/qemu-kvm</emulator> <disk type='file' device='disk'> <source file='/var/lib/libvirt/images/MY_MACHINE.img'/> <target dev='hda'/> </disk> <interface type='network'> <source network='default'/> <mac address='22:22:53:24:12:65'/> </interface> <graphics type='vnc' port='-1' keymap='en'/> </devices> </domain>
Activities
See also
libguestfs-tools
:virt-sysprep
,virt-clone
,virt-builder
,virt-customize
,virt-resize
,virt-rescue
,virt-sparsify
,guestmount
,guestfish
,virt-inspector
,virt-cat
,virt-log
,virt-df
,virt-ls
,virt-filesystems
,virt-list-filesystems
,virt-edit
virtinst
(package):virt-install
,virt-clone
,virt-convert
andvirt-xml
virsh
: Storage information, Connecting, Operations, Memory, Snapshots, Networking, CPU, release notes,virsh nodedev-list
- KVM, Installation, QEMU,
virsh
,virtinst
,libguestfs-tools
, libvirt, qemu, Red Hat Virtualization (RHV), MacVTap, Virtio, oVirt, KVM services, KVM networking, KVM graphics, CPU, KVM on ARM - QEMU:
qemu-img
,qemu-ga
,qemu.conf
,virsh qemu
, QEMU guest agent (qemu-ga
), qcow2,qemu-nbd, qemu-img map
,qemu-io
,/etc/libvirt/qemu.conf
, QEMU releases, VENOM,qemu-nbd --help, qemu-system
Advertising: