Sample XML snippet for the libvirt domain XML file
The libvirt domain XML file that is used in provisioning a guest automatically defines the guest parameters, such as the number of CPUs, amount of RAM, and details about the bridge and vhost interfaces.
- Name of the guest:
aguest
- Number of vCPUs:
4
- Amount of RAM:
512 MB
- IP address of the vhost interface:
192.168.1.1/24
<domain type='kvm'>
<name>aguest</name>
<vcpu>4</vcpu>
<memory unit='M'>512</memory>
<devices>
<interface type=’ethernet’>
<ip address='192.168.1.1' prefix='24'/>
</interface>
</devices>
</domain>