mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-03 11:51:11 +00:00
d70f2e117a
<vcpu> is not an optional node. The value for its 'placement' actually always defaults to 'static' in the underlying codes. (Even no 'cpuset' and 'placement' is specified, the domain process will be pinned to all the available pCPUs).
28 lines
800 B
XML
28 lines
800 B
XML
<domain type='xen' id='6'>
|
|
<name>pvtest</name>
|
|
<uuid>596a5d21-71f4-8fb2-e068-e2386a5c413e</uuid>
|
|
<memory unit='KiB'>430080</memory>
|
|
<currentMemory unit='KiB'>430080</currentMemory>
|
|
<vcpu placement='static'>2</vcpu>
|
|
<bootloader>/usr/bin/pygrub</bootloader>
|
|
<bootloader_args>-q</bootloader_args>
|
|
<os>
|
|
<type>linux</type>
|
|
<cmdline>xenfb.video=8,1280,1024</cmdline>
|
|
</os>
|
|
<clock offset='utc' adjustment='reset'/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>destroy</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<devices>
|
|
<disk type='file' device='disk'>
|
|
<driver name='file'/>
|
|
<source file='/root/some.img'/>
|
|
<target dev='xvda' bus='xen'/>
|
|
</disk>
|
|
<console type='pty'>
|
|
<target type='xen' port='0'/>
|
|
</console>
|
|
</devices>
|
|
</domain>
|