My dom0 is uing Centos 5.2 x64. I have just upgraded Xen from 3.3.0 to 3.3.1. After upgraded, I find that I cannot hotplug additional vcpu anymore. I have a domU "linux1" which is a paravirtualized vm with centos 5.2. I try to "xm vcpu-set linux1 4", it does not have any error message, but those vcpu cannot be displayed. I also tried to add vcpu using "virsh setvcpus linux1 4", it shows "error. Too many virtual CPUSs". Below is the command result. Anyone know how solve? I remember that it can hotplug cpu before upgrading to 3.3.1. As you see below, my physical machine is a dual-xeon(quad core), so total there are 8 VCPUs in Dom0. [root@xen2 /]# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 26932 8 r----- 200.3 linux1 8 3300 2 -b---- 3.8 xp1 5 2000 2 -b---- 127.1 [root@xen2 etc]# xm vcpu-set linux1 4 [root@xen2 /]# virsh setvcpus linux1 4 error: Too many virtual CPUs. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Feb-10 01:57 UTC
Re: [Xen-users] hotplug vcpu problem to Centos 5.2 DomU
On Mon, Feb 9, 2009 at 10:28 PM, Felix Chu <felixchu@powerallnetworks.com> wrote:> My dom0 is uing Centos 5.2 x64. I have just upgraded Xen from 3.3.0 to > 3.3.1. After upgraded, I find that I cannot hotplug additional vcpu anymore.Try this config vcpus=8 vcpu_avail=1 cpus="1-7" on PV domU with Xen 3.3.1, what this does is : - allocate 1 CPU initially - allows up to 8 CPU to be hotplugged (with xm vcpu-set) - maps those vcpus to pyhsical CPU 1-7, which should leave CPU0 free for dom0''s usage. Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Fajar, Thanks your help. It is helpful info. I have another issue. Because I use "virsh" to manage domU config file (usually I use "virsh dumpxml" to copy latest config overwriting old config) . But seems virsh does not have "vcpu_avail" or similar option. As a result, each time I "virsh dumpxml" , it will use current number of CPU as maximum number in the virsh xml config. Then next time I cannot use virsh to add new vcpu anymore. So any idea to use virsh to hot plug cpu for DomU under xen 3.3.1? My virsh version is 0.4.4 (rpm one) Felix -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Fajar A. Nugraha Sent: Tuesday, February 10, 2009 9:58 AM To: Felix Chu Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] hotplug vcpu problem to Centos 5.2 DomU On Mon, Feb 9, 2009 at 10:28 PM, Felix Chu <felixchu@powerallnetworks.com> wrote:> My dom0 is uing Centos 5.2 x64. I have just upgraded Xen from 3.3.0 to > 3.3.1. After upgraded, I find that I cannot hotplug additional vcpuanymore. Try this config vcpus=8 vcpu_avail=1 cpus="1-7" on PV domU with Xen 3.3.1, what this does is : - allocate 1 CPU initially - allows up to 8 CPU to be hotplugged (with xm vcpu-set) - maps those vcpus to pyhsical CPU 1-7, which should leave CPU0 free for dom0''s usage. Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Feb-17 01:57 UTC
Re: [Xen-users] hotplug vcpu problem to Centos 5.2 DomU
On Mon, Feb 16, 2009 at 11:47 PM, Felix Chu <felixchu@powerallnetworks.com> wrote:> I have another issue. Because I use "virsh" to manage domU config file > (usually I use "virsh dumpxml" to copy latest config overwriting old config) > . But seems virsh does not have "vcpu_avail" or similar option.libvirt (including virsh) is sponsored by Redhat and developed separately from Xen. As a result it might not support new Xen features yet (in this case vcpu_avail). If your concern is simply "copy latest config overwriting old config", you can use xm. For example xm list -l domU_name > domU_name.sxp It will have entries like this (vcpus 8) (online_vcpus 1) The sxp file can be used to create domUs using the usual "xm create". Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users