Libvirt Domain Xml Example
There are several libvirt apis associated with capturing the state of a guest which can later be used to rewind that guest to the conditions it was in earlier.
Libvirt domain xml example. Shutting down rebooting and forcing shutdown of a guest virtual machine. Xml is the file with the information about the pci vf device that needs to be hot plugged. It will auto detect which schema to use for validation based on the name of the top level.
Extracting the domain xml file. Capturing state can be a lengthy process so while the captured state ideally represents. Both the pod and the domain xml are created from the same vm specification illustrated in the diagram below.
In this example we are using virt df d test1 h command to check the disk usage of domain test1 in human readable format. Updating the domain xml file that will be used for restoring the guest. 0 state saved by libvirt virsh start 7.
Conversion from vm spec to pod spec and domain xml. To use of libvirt kubevirt has to create the domain xml readable by the libvirt which contain the whole vm specification. Some xml elements may be entirely omitted from the domaincapabilities xml depending on what the libvirt driver has filled in.
If you want to check disk usage of all the domains then you need to use below virt df command. Creating the kubernetes pod. Edit domain xml configuration files.
It is described in the domain xml interface documentation. Plug type network bridge. For example if disk supported yes is present you can safely assume the driver supports disk devices.