the rhevm plugin currently mixed up the number of cpu sockets and number
of cores per socket. for example, using "1:2" should create a vm with 1
socket and 2 cores according to the documentation. but in practice, it
creates a vm with 2 sockets and 1 core. its just a mix up of the
variables being used. the attached patch fixes it. sorry if this isn't
the appropriate method for contributing patches. its something i just
discovered and wanted to get something out while i was thinking about it.
mike
Index: xCAT-server/lib/xcat/plugins/rhevm.pm
===================================================================
--- xCAT-server/lib/xcat/plugins/rhevm.pm (revision 14253)
+++ xCAT-server/lib/xcat/plugins/rhevm.pm (working copy)
@@ -2490,7 +2490,7 @@
if ($myvment->{cpus}) {
my ($socketnum, $corenum) = split(':', $myvment->{cpus});
unless ($corenum) {$corenum = 1;}
- $cpuele = "<cpu><topology cores=\"$socketnum\" sockets=\"$corenum\"/></cpu>";
+ $cpuele = "<cpu><topology cores=\"$corenum\" sockets=\"$socketnum\"/></cpu>";
}
# configure bootorder
------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user