mirror of https://gitee.com/openkylin/libvirt.git
lxc conf2xml: don't let current vcpus at 0: define won't like it
This commit is contained in:
parent
627d1439c2
commit
8f4ef7e6b6
|
@ -868,6 +868,7 @@ lxcParseConfigString(const char *config)
|
|||
/* Value not handled by the LXC driver, setting to
|
||||
* minimum required to make XML parsing pass */
|
||||
vmdef->maxvcpus = 1;
|
||||
vmdef->vcpus = 1;
|
||||
|
||||
vmdef->nfss = 0;
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<weight>300</weight>
|
||||
</device>
|
||||
</blkiotune>
|
||||
<vcpu placement='static' current='0'>1</vcpu>
|
||||
<vcpu placement='static'>1</vcpu>
|
||||
<os>
|
||||
<type>exe</type>
|
||||
<init>/sbin/init</init>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||
<memory unit='KiB'>65536</memory>
|
||||
<currentMemory unit='KiB'>0</currentMemory>
|
||||
<vcpu placement='static' cpuset='1-2,5-7' current='0'>1</vcpu>
|
||||
<vcpu placement='static' cpuset='1-2,5-7'>1</vcpu>
|
||||
<numatune>
|
||||
<memory mode='strict' nodeset='1-4'/>
|
||||
</numatune>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||
<memory unit='KiB'>65536</memory>
|
||||
<currentMemory unit='KiB'>0</currentMemory>
|
||||
<vcpu placement='static' current='0'>1</vcpu>
|
||||
<vcpu placement='static'>1</vcpu>
|
||||
<cputune>
|
||||
<shares>1024</shares>
|
||||
<period>500000</period>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||
<memory unit='KiB'>65536</memory>
|
||||
<currentMemory unit='KiB'>0</currentMemory>
|
||||
<vcpu placement='static' current='0'>1</vcpu>
|
||||
<vcpu placement='static'>1</vcpu>
|
||||
<os>
|
||||
<type>exe</type>
|
||||
<init>/sbin/init</init>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||
<memory unit='KiB'>65536</memory>
|
||||
<currentMemory unit='KiB'>0</currentMemory>
|
||||
<vcpu placement='static' current='0'>1</vcpu>
|
||||
<vcpu placement='static'>1</vcpu>
|
||||
<os>
|
||||
<type>exe</type>
|
||||
<init>/sbin/init</init>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<soft_limit unit='KiB'>131072</soft_limit>
|
||||
<swap_hard_limit unit='KiB'>2097152</swap_hard_limit>
|
||||
</memtune>
|
||||
<vcpu placement='static' current='0'>1</vcpu>
|
||||
<vcpu placement='static'>1</vcpu>
|
||||
<os>
|
||||
<type>exe</type>
|
||||
<init>/sbin/init</init>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||
<memory unit='KiB'>65536</memory>
|
||||
<currentMemory unit='KiB'>0</currentMemory>
|
||||
<vcpu placement='static' current='0'>1</vcpu>
|
||||
<vcpu placement='static'>1</vcpu>
|
||||
<os>
|
||||
<type>exe</type>
|
||||
<init>/sbin/init</init>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||
<memory unit='KiB'>65536</memory>
|
||||
<currentMemory unit='KiB'>0</currentMemory>
|
||||
<vcpu placement='static' current='0'>1</vcpu>
|
||||
<vcpu placement='static'>1</vcpu>
|
||||
<os>
|
||||
<type>exe</type>
|
||||
<init>/sbin/init</init>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||
<memory unit='KiB'>65536</memory>
|
||||
<currentMemory unit='KiB'>0</currentMemory>
|
||||
<vcpu placement='static' current='0'>1</vcpu>
|
||||
<vcpu placement='static'>1</vcpu>
|
||||
<os>
|
||||
<type>exe</type>
|
||||
<init>/sbin/init</init>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||
<memory unit='KiB'>65536</memory>
|
||||
<currentMemory unit='KiB'>0</currentMemory>
|
||||
<vcpu placement='static' current='0'>1</vcpu>
|
||||
<vcpu placement='static'>1</vcpu>
|
||||
<os>
|
||||
<type arch='i686'>exe</type>
|
||||
<init>/sbin/init</init>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||
<memory unit='KiB'>65536</memory>
|
||||
<currentMemory unit='KiB'>0</currentMemory>
|
||||
<vcpu placement='static' current='0'>1</vcpu>
|
||||
<vcpu placement='static'>1</vcpu>
|
||||
<os>
|
||||
<type>exe</type>
|
||||
<init>/sbin/init</init>
|
||||
|
|
Loading…
Reference in New Issue