Updated references in zVM documentation. Granted VSwitch access in makeVM().

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6517 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2010-06-17 19:15:56 +00:00
parent 95bdd32c87
commit 687683721b
4 changed files with 14 additions and 3 deletions

View File

@ -105,7 +105,7 @@ function loadZProvisionPage(tabId) {
statBar.append(loader);
// Create info bar
var infoBar = createInfoBar('Provision z/VM node(s)');
var infoBar = createInfoBar('Provision a zVM node');
provForm.append(infoBar);
// Append to provision tab

Binary file not shown.

Binary file not shown.

View File

@ -1545,6 +1545,17 @@ sub makeVM {
my $rc = xCAT::zvmUtils->checkOutput( $callback, $out );
if ( $rc == 0 ) {
# Get VSwitch of HCP
my @vswId = xCAT::zvmCPUtils->getVswitchId($hcp);
# Grant access to VSwitch for Linux user
# GuestLan do not need permissions
foreach (@vswId) {
xCAT::zvmUtils->printLn( $callback, "$node: Granting VSwitch ($_) access for $userId" );
$out = xCAT::zvmCPUtils->grantVSwitch( $callback, $hcp, $userId, $_ );
xCAT::zvmUtils->printLn( $callback, "$node: $out" );
}
# Get HCP MAC address
# The HCP should only have (1) network -- (1) MAC address
xCAT::zvmCPUtils->loadVmcp($hcp);
@ -2710,11 +2721,11 @@ sub nodeSet {
# Get broadcast address of NIC
my $ifcfg = xCAT::zvmUtils->getIfcfgByNic( $hcp, $readChannel );
$out = `cat $ifcfg | grep "BROADCAST"`;
$out = `ssh $hcp "cat $ifcfg" | grep "BROADCAST"`;
@words = split( '=', $out );
my $broadcast = $words[1];
$broadcast = xCAT::zvmUtils->trimStr($broadcast);
$broadcast = xCAT::zvmUtils->replaceStr( $broadcast, "'", "" );
$broadcast =~ s;"|';;g;
# Load VMCP module on HCP
xCAT::zvmCPUtils->loadVmcp($hcp);