[libvirt-users] <vcpu placement='static' current='N'>M</vcpu>

Thomas Stein himbeere at meine-oma.de
Fri Jun 12 11:05:35 UTC 2015


Am 12.06.15 um 11:50 schrieb Thomas Stein:
> Am 12.06.15 um 11:43 schrieb Dominique Ramaekers:
>> Did you shutdown the guest before making this change?

It seems this setting is accepted:

<vcpu placement='static' current='6'>8</vcpu>

Now i can say:

virsh # setvcpus --live --guest serve 2

Within the machine:

[   47.833016] smpboot: CPU 1 is now offline
[   47.922842] smpboot: CPU 2 is now offline
[   47.992445] smpboot: CPU 3 is now offline
[   48.071674] smpboot: CPU 4 is now offline

And:

virsh # setvcpus --live --guest serve 4

works too.

[  152.758809] x86: Booting SMP configuration:
[  152.758813] smpboot: Booting Node 0 Processor 1 APIC 0x1
[  152.870369] smpboot: Booting Node 0 Processor 2 APIC 0x2

cheers
t.



> Yes. I even can't set this setting while the machine is powered off.
> Here ist the machines xml.
> 
> <domain type='kvm'>
>   <name>changed</name>
>   <uuid>c71f66b3-2fd1-42f0-b8be-42999857eb95</uuid>
>   <memory unit='KiB'>4194304</memory>
>   <currentMemory unit='KiB'>2097152</currentMemory>
>   <vcpu placement='static'>4</vcpu>
>   <resource>
>     <partition>/machine</partition>
>   </resource>
>   <os>
>     <type arch='x86_64' machine='pc-0.14'>hvm</type>
>     <boot dev='hd'/>
>   </os>
>   <features>
>     <acpi/>
>     <apic/>
>     <pae/>
>   </features>
>   <cpu mode='host-model'>
>     <model fallback='allow'/>
>   </cpu>
>   <clock offset='utc'/>
>   <on_poweroff>destroy</on_poweroff>
>   <on_reboot>restart</on_reboot>
>   <on_crash>restart</on_crash>
>   <devices>
>     <emulator>/usr/bin/qemu-system-x86_64</emulator>
>     <disk type='file' device='disk'>
>       <driver name='qemu' type='qcow2' cache='writeback' io='threads'/>
>       <source file='/var/lib/libvirt/images/1.qcow2'/>
>       <target dev='vda' bus='virtio'/>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
> function='0x0'/>
>     </disk>
>     <disk type='file' device='disk'>
>       <driver name='qemu' type='qcow2' cache='writethrough' io='threads'/>
>       <source file='/var/lib/libvirt/images/nfs.qcow2'/>
>       <target dev='vdb' bus='virtio'/>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x06'
> function='0x0'/>
>     </disk>
>     <controller type='virtio-serial' index='0'>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x04'
> function='0x0'/>
>     </controller>
>     <controller type='usb' index='0'>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
> function='0x2'/>
>     </controller>
>     <controller type='pci' index='0' model='pci-root'/>
>     <interface type='network'>
>       <mac address='52:54:00:18:75:ef'/>
>       <source network='routed'/>
>       <model type='virtio'/>
>       <filterref filter='filter-changed'>
>         <parameter name='IP' value='changed'/>
>       </filterref>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x03'
> function='0x0'/>
>     </interface>
>     <serial type='pty'>
>       <target port='0'/>
>     </serial>
>     <console type='pty'>
>       <target type='serial' port='0'/>
>     </console>
>     <channel type='unix'>
>       <source mode='bind' path='/var/lib/libvirt/qemu/f16x86_64.agent'/>
>       <target type='virtio' name='org.qemu.guest_agent.0'/>
>       <address type='virtio-serial' controller='0' bus='0' port='1'/>
>     </channel>
>     <input type='mouse' bus='ps2'/>
>     <input type='keyboard' bus='ps2'/>
>     <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1'>
>       <listen type='address' address='127.0.0.1'/>
>     </graphics>
>     <video>
>       <model type='cirrus' vram='16384' heads='1'/>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x02'
> function='0x0'/>
>     </video>
>     <memballoon model='virtio'>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x07'
> function='0x0'/>
>     </memballoon>
>   </devices>
>   <seclabel type='none' model='none'/>
> </domain>
> 
> cheers
> t.
> 
>> -----Oorspronkelijk bericht-----
>> Van: Thomas Stein [mailto:himbeere at meine-oma.de] 
>> Verzonden: vrijdag 12 juni 2015 11:32
>> Aan: libvirt-users at redhat.com
>> Onderwerp: [libvirt-users] <vcpu placement='static' current='N'>M</vcpu>
>> 
>> Hello.
>> 
>> I seem to be to stupid to configure vcpu hotplugging on one of my machines. Whenever i set:
>> 
>> <vcpu placement='static' current='4'>4</vcpu>
>> 
>> and save this setting, this setting is undone by libvirt. It jumps back to:
>> 
>> <vcpu placement='static'>4</vcpu>
>> 
>> I'm confused now. Someone has an idea what's going on here? Any hints are really appreciated.
>> 
>> cheers
>> t.
>> 
>> _______________________________________________
>> libvirt-users mailing list
>> libvirt-users at redhat.com
>> https://www.redhat.com/mailman/listinfo/libvirt-users
>> 
> 
> _______________________________________________
> libvirt-users mailing list
> libvirt-users at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users
> 




More information about the libvirt-users mailing list