[pve-devel] [PATCH 2/2] Fix Socket

Wolfgang Link wolfgang at linksystems.org
Mon Nov 17 08:51:06 CET 2014


Signed-off-by: Wolfgang Link <wolfgang at linksystems.org>
---
 PVE/QemuServer.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 9aea9ee..3dfe1b4 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -2589,7 +2589,7 @@ sub config_to_command {
     my $maxcpus = $conf->{maxcpus} if $conf->{maxcpus};
 
     my $total_cores = $sockets * $cores;
-    my $allowed_cores = $cpuinfo->{cpus} * $cpuinfo->{sockets};
+    my $allowed_cores = $cpuinfo->{cpus};
 
     die "MAX $allowed_cores Cores allowed per VM on this Node" 
 	if($allowed_cores < $total_cores ) ;
-- 
1.7.10.4




More information about the pve-devel mailing list