Hi Although the maximum number of VCPU is different in each architecture, the maximum number of VCPU is 32 in virt-manager. ex: x86 - the maximum number of VCPU is 32 IA64 - the maximum number of VCPU is 64 This patch fixes it. Signed-off-by: Masayuki Sunou <fj1826dm@xxxxxxxxxxxxxxxxx> Thanks, Masayuki Sunou. -------------------------------------------------------------------------------- diff -r 24729fe72d52 src/virtManager/create.py --- a/src/virtManager/create.py Wed Jun 13 17:15:51 2007 -0400 +++ b/src/virtManager/create.py Sat Jun 16 09:31:13 2007 +0900 @@ -213,11 +213,13 @@ class vmmCreate(gobject.GObject): # If we don't have full-virt support disable the choice, and # display a message telling the user why it is not working if self.connection.get_type() == "QEMU": + self.window.get_widget("create-vcpus").get_adjustment().upper = 32 self.window.get_widget("virt-method-pv").set_sensitive(False) self.window.get_widget("virt-method-fv").set_active(True) self.window.get_widget("virt-method-fv-unsupported").hide() self.window.get_widget("virt-method-fv-disabled").hide() else: + self.window.get_widget("create-vcpus").get_adjustment().upper = self.connection.vmm.getMaxVcpus("Xen") self.window.get_widget("virt-method-pv").set_sensitive(True) self.window.get_widget("virt-method-pv").set_active(True) if virtinst.util.is_hvm_capable(): diff -r 24729fe72d52 src/virtManager/details.py --- a/src/virtManager/details.py Wed Jun 13 17:15:51 2007 -0400 +++ b/src/virtManager/details.py Sat Jun 16 09:31:06 2007 +0900 @@ -364,8 +364,13 @@ class vmmDetails(gobject.GObject): self.window.get_widget("state-host-cpus").set_text("%d" % self.vm.get_connection().host_active_processor_count()) status = self.vm.status() if status in [ libvirt.VIR_DOMAIN_SHUTOFF, libvirt.VIR_DOMAIN_CRASHED ]: - self.window.get_widget("config-vcpus").get_adjustment().upper = 32 - self.window.get_widget("state-vm-maxvcpus").set_text("32") + if self.vm.get_connection().get_type() == "QEMU": + self.window.get_widget("config-vcpus").get_adjustment().upper = 32 + self.window.get_widget("state-vm-maxvcpus").set_text("32") + else: + cpu_max = self.vm.get_connection().vmm.getMaxVcpus("Xen") + self.window.get_widget("config-vcpus").get_adjustment().upper = cpu_max + self.window.get_widget("state-vm-maxvcpus").set_text(str(cpu_max)) else: self.window.get_widget("config-vcpus").get_adjustment().upper = self.vm.vcpu_max_count() self.window.get_widget("state-vm-maxvcpus").set_text("%d" % (self.vm.vcpu_max_count())) --------------------------------------------------------------------------------