mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	Add empty optical drive on mkvm for vmware guests
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9544 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -2645,6 +2645,14 @@ sub build_cfgspec { | ||||
|     } | ||||
|     my @devices; | ||||
|     $currkey=0; | ||||
|     my $opticalbacking = VirtualCdromRemoteAtapiBackingInfo->new(deviceName=>""); | ||||
|     my $opticalconnectable = VirtualDeviceConnectInfo->new(startConnected=>0,allowGuestControl=>1,connected=>0); | ||||
|     my $optical =VirtualCdrom->new( controllerKey => 201, | ||||
|                         connectable=>$opticalconnectable, | ||||
|                         backing=>$opticalbacking, | ||||
|                         key => $currkey++, | ||||
|                         unitNumber => 0, ); | ||||
| 	push @devices,VirtualDeviceConfigSpec->new(device => $optical, operation =>  VirtualDeviceConfigSpecOperation->new('add')); | ||||
|     push @devices,create_storage_devs($node,$dses,$disksize); | ||||
|     push @devices,create_nic_devs($node,$netmap,$hyp); | ||||
|     #my $cfgdatastore = $tablecfg{vm}->{$node}->[0]->{storage}; #TODO: need a new cfglocation field in case of stateless guest? | ||||
|   | ||||
		Reference in New Issue
	
	Block a user