Hi
as when I installed the XenU I initialized the VCPU=1, is it possible to change
VCPU=2
Linux localhost.localdomain 2.6.19-1.2911.6.5.fc6xen #1 SMP Sun Mar 4 16:59:41
EST 2007 i686 i686 i386 GNU/Linux
As far as I know from help, it seems impossible, see the last paragraph. But I
dont want to install a new guest :(
vcpu-set domain-id vcpu-count
Enables the vcpu-count virtual CPUs for the domain in question. Like
mem-set, this command can only allocate up to the maximum
virtual CPU count configured at boot for the domain.
If the vcpu-count is smaller than the current number of active VCPUs,
the highest number VCPUs will be hotplug removed. This may
be important for pinning purposes.
Attempting to set the VCPUs to a number larger than the initially
configured VCPU count is an error. Trying to set VCPUs to < 1
will be quietly ignored.
Thanks
Songtao
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > Songtao Liu > Sent: 02 July 2007 15:51 > To: xen-users@lists.xensource.com > Subject: [Xen-users] VCPU number configuration > > Hi > > as when I installed the XenU I initialized the VCPU=1, is it > possible to change VCPU=2No, not without restarting the guest from scratch. Whilst it''s possible to REDUCE the processor count, you can''t increase it after it''s been started [actually, the technicality of it is that there''s a MAX_CPU count in the domain config parameters, which is hidden from the config files at present, but that is the number of VCPU''s "reserved" when the domain is set up, and with a normal config file, you get MAX_VCPUS=VCPUS at the domain creation]. -- Mats _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Original Message: <br /> <br />> -----Original Message----- <br />> From: xen-users-bounces@lists.xensource.com <br />> [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of <br />> Songtao Liu <br />> Sent: 02 July 2007 15:51 <br />> To: xen-users@lists.xensource.com <br />> Subject: [Xen-users] VCPU number configuration <br />> <br />> Hi <br />> <br />> as when I installed the XenU I initialized the VCPU=1, is it <br />> possible to change VCPU=2 <br /> <br />No, not without restarting the guest from scratch. Whilst it''s possible <br />to REDUCE the processor count, you can''t increase it after it''s been <br />started [actually, the technicality of it is that there''s a MAX_CPU <br />count in the domain config parameters, which is hidden from the config <br />files at present, but that is the number of VCPU''s "reserved" when the <br />domain is set up, and with a normal config file, you get MAX_VCPUS=VCPUS <br />at the domain creation]. <br /> <br />-- <br />Mats <br /> <br /> <br /> So if I want to get a guest with 2 VCPUs, I must install a new one? no other ways? Songtao _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> -----Original Message----- > From: Songtao Liu [mailto:songtao.liu@mytum.de] > Sent: 02 July 2007 17:10 > To: Petersson, Mats > Cc: xen-users@lists.xensource.com > Subject: RE: [Xen-users] VCPU number configuration > > > Original Message: > > > <br /> > <br />> -----Original Message----- > <br />> From: xen-users-bounces@lists.xensource.com > <br />> [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > <br />> Songtao Liu > <br />> Sent: 02 July 2007 15:51 > <br />> To: xen-users@lists.xensource.com > <br />> Subject: [Xen-users] VCPU number configuration > <br />> > <br />> Hi > <br />> > <br />> as when I installed the XenU I initialized the VCPU=1, is it > <br />> possible to change VCPU=2 > <br /> > <br />No, not without restarting the guest from scratch. > Whilst it''s possible > <br />to REDUCE the processor count, you can''t increase it > after it''s been > <br />started [actually, the technicality of it is that > there''s a MAX_CPU > <br />count in the domain config parameters, which is hidden > from the config > <br />files at present, but that is the number of VCPU''s > "reserved" when the > <br />domain is set up, and with a normal config file, you > get MAX_VCPUS=VCPUS > <br />at the domain creation]. > <br /> > <br />-- > <br />Mats > <br /> > <br /> > <br /> > So if I want to get a guest with 2 VCPUs, I must install a > new one? no other ways?No, you need to change the configuration file for the original guest to say VCPUS=2 instead of VCPUS=1. Then you could, if you wanted to, use the "xm vcpu-set" to reduce it back down to 1, but you can''t set it higher than 2. -- Mats> > Songtao >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> <br />> as when I installed the XenU I initialized the VCPU=1, is it > <br />> possible to change VCPU=2 > <br /> > <br />No, not without restarting the guest from scratch. Whilst it''s > possible <br />to REDUCE the processor count, you can''t increase it after > it''s been <br />started [actually, the technicality of it is that there''s a > MAX_CPU <br />count in the domain config parameters, which is hidden from > the config <br />files at present, but that is the number of VCPU''s > "reserved" when the <br />domain is set up, and with a normal config file, > you get MAX_VCPUS=VCPUS <br />at the domain creation]. > <br /> > <br />-- > <br />Mats > <br /> > <br /> > <br /> > So if I want to get a guest with 2 VCPUs, I must install a new one? no > other ways?Just change the config file, shut down the guest and then start it again. As long as the guest has an SMP-capable kernel, it should pick up the extra VCPUs straight away. Cheers, Mark -- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Original Message: <br />> <br />> as when I installed the XenU I initialized the VCPU=1, is it <br />> <br />> possible to change VCPU=2 <br />> <br /> <br />> <br />No, not without restarting the guest from scratch. Whilst it''s <br />> possible <br />to REDUCE the processor count, you can''t increase it after <br />> it''s been <br />started [actually, the technicality of it is that there''s a <br />> MAX_CPU <br />count in the domain config parameters, which is hidden from <br />> the config <br />files at present, but that is the number of VCPU''s <br />> "reserved" when the <br />domain is set up, and with a normal config file, <br />> you get MAX_VCPUS=VCPUS <br />at the domain creation]. <br />> <br /> <br />> <br />-- <br />> <br />Mats <br />> <br /> <br />> <br /> <br />> <br /> <br />> So if I want to get a guest with 2 VCPUs, I must install a new one? no <br />> other ways? <br /> <br />Just change the config file, shut down the guest and then start it again. <br /> <br />As long as the guest has an SMP-capable kernel, it should pick up the extra <br />VCPUs straight away. Firstly sry forgot to CC to list just now I did so, change the VCPU=2, but when I reboot the guest, it will halt with blackscreen(see the attached 1.png) after start. xm list shows the VCPU is already 2 now. puzzled why it hangs :( Checked my guest kernel, SMP. Thanks <br /> <br />Cheers, <br />Mark <br /> <br />-- <br />Dave: Just a question. What use is a unicyle with no seat? And no pedals! <br />Mark: To answer a question with a question: What use is a skateboard? <br />Dave: Skateboards have wheels. <br />Mark: My wheel has a wheel! <br /> -- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users