Information about settings in the SCVMM Hyper-V XML files (Bare Metal and Template Based)
This topic contains the following sections:
- Descriptions of sections and settings
- SCVMM Hyper-V platform-specific properties
- To get the server ID - Microsoft Virtual Machine Manager
- To get the Hyper-V SourceTemplateId
- To get the Hyper-V storage locations
- To get the Hyper-V network name
Descriptions of sections and settings
Section | Settings |
<GeneralInfo> | <PackageName> and <PackageDescription> — Name and description of the VGP. |
<PlatformInfo> | The following sections are part of the PlatformInfo section. |
<VirtualGuestInfo> | Description: Optional description of the virtual guest. |
<VirtualDisk> | <DiskSizeInGB> — Size of this disk, in GB.
|
<VirtualNetwork> | <Network> — Name of the network. For information on how to get the network name, see To get the Hyper-V Network Name. |
<PlatformSpecificProperties> | You can specify general <PlatformSpecificProperty> elements. See SCVMM Hyper-V Platform-specific Properties. |
<WindowsCustomizationInfo> | Optional Windows-specific information for the virtual guest. For adminPassword, you can use the encrypted value you obtain from using the blenc utility. |
SCVMM Hyper-V platform-specific properties
Used in this element | Property | Legal values |
<DiskExtendedProperties> | diskInterfaceType | IDE |
<NetworkExtendedProperties> | vlanID | The VLAN ID of the network specified in <VirtualNetwork>. |
<PlatformSpecificProperties> | cpuPriority | High |
<PlatformSpecificProperties> | networkAdapterType | Default |
To get the server ID - Microsoft Virtual Machine Manager
Some of the commands you use to get VGP values require you to pass in the server ID of the Microsoft Virtual Machine Manager. To do this, use the listVirtualEntityManagers command, and pass in an EntityType argument that specifies MicrosoftVMM:
Command | Virtualization listVirtualEntityManagers MicrosoftVMM |
Output Format | ServerId::ServerName |
Output Example | 1::MicrosoftVMM01.bmc.com |
In this example, the server ID is 1.
To get the Hyper-V SourceTemplateId
- Get the server ID of the Microsoft Virtual Machine Manager, as described in To get the server ID - Microsoft Virtual Machine Manager. For the purpose of this example, assume the server ID is 1.
Now you can use the listVirtualEntitiesByEntityManagerServerIdAndEntityType command to get the SourceTemplateId. This command takes 3 arguments — ServerId of the Microsoft Virtual Machine Manager, EntityType, and true|false to indicate whether or not you want to print a header in the output. You already have the ServerId (1)
Because you want a SourceTemplateId, you specify Template as EntityType:Command
Virtualization listVirtualEntitiesByEntityManagerServerIdAndEntityType 1 Template trueOutput format
Name::Guest Operating System::Entity KeyOutput example
w2k8-r2::windows_2008r2::1 Template w2k8-r2The <SourceTemplateId> element in the VGP file uses the EntityKeyas the ID, so in this example you would specify:
<SourceTemplateId>1 Template w2k8-r2</SourceTemplateId>
To get the Hyper-V storage locations
- Get the server ID of the Microsoft Virtual Machine Manager, as described in To get the server ID - Microsoft Virtual Machine Manager. For the purpose of this example, assume the server ID is 1.
- Use the listVirtualEntitiesByEntityManagerServerIdAndEntityType command to get the default <VirtualGuestStorage> location, and optionally the alternate <Storage> location for a particular disk. This command takes 3 arguments – ServerId of the Microsoft Virtual Machine Manager, EntityType, and true|false to indicate whether or not you want to print a header in the output. You already have the ServerId (1)
Because you want a <Storage> location, you specify Storage as EntityType:
Command | Virtualization listVirtualEntitiesByEntityManagerServerIdAndEntityType 1 Storage true |
Output format | Name::Capacity (GB)::Free Space (GB) |
Output example | C:\ClusteredSharedVolume\Volume1::557.65::398.42 |
Both the <VirtualGuestStorage> element and the <Storage> element in the VGP file use the Name as the storage location, so in this example you would specify one of the following:
<Storage>C:\ClusteredSharedVolume\Volume1</Storage>
To get the Hyper-V network name
- Get the server ID of the Microsoft Virtual Machine Manager, as described in To get the server ID - Microsoft Virtual Machine Manager. For the purpose of this example, assume the server ID is 1.
Now you can use the listVirtualEntitiesByEntityManagerServerIdAndEntityType command to get the network name. This command takes 2 arguments – ServerId and EntityType. You already have the ServerId (1).
Because you want a network name, you specify Network as EntityType:Command
Virtualization listVirtualEntitiesByEntityManagerServerIdAndEntityType 1 NetworkOutput Format
Name::network_attributesOutput Example
network2::...attributes omitted...For example, in the VGP file you might specify the following:
<VirtualNetwork>network2</VirtualNetwork>