mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 15:45:28 +00:00
91a00424db
This change ensures to call driver specific post-parse code to modify domain definition after parsing hypervisor config the same way we do after parsing XML. Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
38 lines
1.1 KiB
XML
38 lines
1.1 KiB
XML
<domain type='xen' id='1'>
|
|
<name>test2vm</name>
|
|
<uuid>a36f6e38-f498-b06c-5fad-b04947392dbe</uuid>
|
|
<memory unit='KiB'>524288</memory>
|
|
<currentMemory unit='KiB'>524288</currentMemory>
|
|
<vcpu placement='static'>1</vcpu>
|
|
<bootloader>/usr/bin/pygrub</bootloader>
|
|
<os>
|
|
<type>linux</type>
|
|
</os>
|
|
<clock offset='utc' adjustment='reset'/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>restart</on_crash>
|
|
<devices>
|
|
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
|
<disk type='block' device='disk'>
|
|
<driver name='phy'/>
|
|
<source dev='/dev/vg_dom0test/test2vm'/>
|
|
<backingStore/>
|
|
<target dev='xvda' bus='xen'/>
|
|
</disk>
|
|
<interface type='bridge'>
|
|
<mac address='00:16:36:68:9f:5d'/>
|
|
<source bridge='virbr0'/>
|
|
<script path='/etc/xen/scripts/vif-bridge'/>
|
|
<target dev='vif1.0'/>
|
|
</interface>
|
|
<console type='pty'>
|
|
<target type='xen' port='0'/>
|
|
</console>
|
|
<input type='mouse' bus='xen'/>
|
|
<input type='keyboard' bus='xen'/>
|
|
<graphics type='vnc' port='-1' autoport='yes'/>
|
|
<memballoon model='xen'/>
|
|
</devices>
|
|
</domain>
|