mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	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:
		| @@ -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.
										
									
								
							| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user