mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Calling undefine on a domain and recreating it can result in some edge case errors where if the current capabilities of libvirt have been reduced, it may not be possible to restore the old definition. Instead switch to calling `domain_define` with the new definition and check that the resulting libvirt domain definition has been updated in the expected manner, otherwise report an error to the user. Fixes: #949 Relates-to: #1329 Relates-to: #1027 Relates-to: #1371
39 lines
757 B
XML
39 lines
757 B
XML
<domain xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0' type=''>
|
|
<name/>
|
|
<title/>
|
|
<description/>
|
|
<uuid/>
|
|
<memory/>
|
|
<vcpu>1</vcpu>
|
|
<cpu mode='host-model'>
|
|
<model fallback='allow'/>
|
|
</cpu>
|
|
<os>
|
|
<type>hvm</type>
|
|
<kernel/>
|
|
<initrd/>
|
|
<cmdline/>
|
|
</os>
|
|
<features>
|
|
<acpi/>
|
|
<apic/>
|
|
<pae/>
|
|
</features>
|
|
<clock offset='utc'>
|
|
|
|
</clock>
|
|
<devices>
|
|
<serial type='pty'>
|
|
<target port='0'/>
|
|
</serial>
|
|
<console type='pty'>
|
|
<target port='0'/>
|
|
</console>
|
|
<input bus='ps2' type='mouse'/>
|
|
<graphics autoport='yes' keymap='en-us' listen='127.0.0.1' port='-1' type='vnc'/>
|
|
<video>
|
|
<model heads='1' type='cirrus' vram='16384'/>
|
|
</video>
|
|
</devices>
|
|
</domain>
|