forked from vmware/govmomi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
govc: add option to enable hidden properties in import.{spec,ova}
vcsim: ResourcePool.ImportVApp improvements - Run within an internal Task as real vCenter does - Set VirtualMachineImportSpec.VAppConfig in CreateImportSpec - Propagate VAppConfig to VirtualMachine (config.vAppConfig) - Validate userConfigurable=false properties Fixes vmware#3111
- Loading branch information
Showing
11 changed files
with
455 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!--Generated by VMware VirtualCenter Server, User: VSPHERE.LOCAL\Administrator, UTC time: 2023-07-22T15:33:49.408233Z--> | ||
<Envelope vmw:buildId="build-66536396" xmlns="http://schemas.dmtf.org/ovf/envelope/1" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<References> | ||
</References> | ||
<DiskSection> | ||
<Info>Virtual disk information</Info> | ||
</DiskSection> | ||
<NetworkSection> | ||
<Info>The list of logical networks</Info> | ||
<Network ovf:name="VM Network"> | ||
<Description>The VM Network network</Description> | ||
</Network> | ||
</NetworkSection> | ||
<VirtualSystem ovf:id="test-vm"> | ||
<Info>A virtual machine</Info> | ||
<Name>test-vm</Name> | ||
<OperatingSystemSection ovf:id="94" vmw:osType="ubuntu64Guest"> | ||
<Info>The kind of installed guest operating system</Info> | ||
<Description>Ubuntu Linux (64-bit)</Description> | ||
</OperatingSystemSection> | ||
<VirtualHardwareSection> | ||
<Info>Virtual hardware requirements</Info> | ||
<System> | ||
<vssd:ElementName>Virtual Hardware Family</vssd:ElementName> | ||
<vssd:InstanceID>0</vssd:InstanceID> | ||
<vssd:VirtualSystemIdentifier>test-vm</vssd:VirtualSystemIdentifier> | ||
<vssd:VirtualSystemType>vmx-19</vssd:VirtualSystemType> | ||
</System> | ||
<Item> | ||
<rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits> | ||
<rasd:Description>Number of Virtual CPUs</rasd:Description> | ||
<rasd:ElementName>2 virtual CPU(s)</rasd:ElementName> | ||
<rasd:InstanceID>1</rasd:InstanceID> | ||
<rasd:ResourceType>3</rasd:ResourceType> | ||
<rasd:VirtualQuantity>2</rasd:VirtualQuantity> | ||
</Item> | ||
<Item> | ||
<rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits> | ||
<rasd:Description>Memory Size</rasd:Description> | ||
<rasd:ElementName>2048MB of memory</rasd:ElementName> | ||
<rasd:InstanceID>2</rasd:InstanceID> | ||
<rasd:ResourceType>4</rasd:ResourceType> | ||
<rasd:VirtualQuantity>2048</rasd:VirtualQuantity> | ||
<vmw:CoresPerSocket ovf:required="false">1</vmw:CoresPerSocket> | ||
</Item> | ||
<Item> | ||
<rasd:Address>0</rasd:Address> | ||
<rasd:Description>SCSI Controller</rasd:Description> | ||
<rasd:ElementName>SCSI controller 0</rasd:ElementName> | ||
<rasd:InstanceID>3</rasd:InstanceID> | ||
<rasd:ResourceSubType>VirtualSCSI</rasd:ResourceSubType> | ||
<rasd:ResourceType>6</rasd:ResourceType> | ||
<vmw:Config ovf:required="false" vmw:key="slotInfo.pciSlotNumber" vmw:value="160"/> | ||
<vmw:CoresPerSocket ovf:required="false">1</vmw:CoresPerSocket> | ||
</Item> | ||
<Item> | ||
<rasd:Address>1</rasd:Address> | ||
<rasd:Description>IDE Controller</rasd:Description> | ||
<rasd:ElementName>IDE 1</rasd:ElementName> | ||
<rasd:InstanceID>4</rasd:InstanceID> | ||
<rasd:ResourceType>5</rasd:ResourceType> | ||
<vmw:CoresPerSocket ovf:required="false">1</vmw:CoresPerSocket> | ||
</Item> | ||
<Item> | ||
<rasd:Address>0</rasd:Address> | ||
<rasd:Description>IDE Controller</rasd:Description> | ||
<rasd:ElementName>IDE 0</rasd:ElementName> | ||
<rasd:InstanceID>5</rasd:InstanceID> | ||
<rasd:ResourceType>5</rasd:ResourceType> | ||
<vmw:CoresPerSocket ovf:required="false">1</vmw:CoresPerSocket> | ||
</Item> | ||
<Item ovf:required="false"> | ||
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation> | ||
<rasd:ElementName>Video card</rasd:ElementName> | ||
<rasd:InstanceID>6</rasd:InstanceID> | ||
<rasd:ResourceType>24</rasd:ResourceType> | ||
<vmw:Config ovf:required="false" vmw:key="useAutoDetect" vmw:value="false"/> | ||
<vmw:Config ovf:required="false" vmw:key="videoRamSizeInKB" vmw:value="4096"/> | ||
<vmw:Config ovf:required="false" vmw:key="enable3DSupport" vmw:value="false"/> | ||
<vmw:Config ovf:required="false" vmw:key="use3dRenderer" vmw:value="automatic"/> | ||
<vmw:Config ovf:required="false" vmw:key="graphicsMemorySizeInKB" vmw:value="262144"/> | ||
<vmw:CoresPerSocket ovf:required="false">1</vmw:CoresPerSocket> | ||
</Item> | ||
<Item ovf:required="false"> | ||
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation> | ||
<rasd:ElementName>VMCI device</rasd:ElementName> | ||
<rasd:InstanceID>7</rasd:InstanceID> | ||
<rasd:ResourceSubType>vmware.vmci</rasd:ResourceSubType> | ||
<rasd:ResourceType>1</rasd:ResourceType> | ||
<vmw:Config ovf:required="false" vmw:key="allowUnrestrictedCommunication" vmw:value="false"/> | ||
<vmw:CoresPerSocket ovf:required="false">1</vmw:CoresPerSocket> | ||
</Item> | ||
<Item> | ||
<rasd:AddressOnParent>7</rasd:AddressOnParent> | ||
<rasd:AutomaticAllocation>true</rasd:AutomaticAllocation> | ||
<rasd:Connection>VM Network</rasd:Connection> | ||
<rasd:Description>E1000 ethernet adapter on "VM Network"</rasd:Description> | ||
<rasd:ElementName>Network adapter 1</rasd:ElementName> | ||
<rasd:InstanceID>8</rasd:InstanceID> | ||
<rasd:ResourceSubType>E1000</rasd:ResourceSubType> | ||
<rasd:ResourceType>10</rasd:ResourceType> | ||
<vmw:Config ovf:required="false" vmw:key="slotInfo.pciSlotNumber" vmw:value="32"/> | ||
<vmw:Config ovf:required="false" vmw:key="wakeOnLanEnabled" vmw:value="true"/> | ||
<vmw:Config ovf:required="false" vmw:key="connectable.allowGuestControl" vmw:value="true"/> | ||
<vmw:Config ovf:required="false" vmw:key="uptCompatibilityEnabled" vmw:value="false"/> | ||
<vmw:CoresPerSocket ovf:required="false">1</vmw:CoresPerSocket> | ||
</Item> | ||
<vmw:Config ovf:required="false" vmw:key="cpuHotAddEnabled" vmw:value="false"/> | ||
<vmw:Config ovf:required="false" vmw:key="cpuHotRemoveEnabled" vmw:value="false"/> | ||
<vmw:Config ovf:required="false" vmw:key="memoryHotAddEnabled" vmw:value="false"/> | ||
<vmw:Config ovf:required="false" vmw:key="firmware" vmw:value="bios"/> | ||
<vmw:Config ovf:required="false" vmw:key="cpuAllocation.shares.shares" vmw:value="2000"/> | ||
<vmw:Config ovf:required="false" vmw:key="cpuAllocation.shares.level" vmw:value="normal"/> | ||
<vmw:Config ovf:required="false" vmw:key="simultaneousThreads" vmw:value="1"/> | ||
<vmw:Config ovf:required="false" vmw:key="tools.syncTimeWithHost" vmw:value="false"/> | ||
<vmw:Config ovf:required="false" vmw:key="tools.syncTimeWithHostAllowed" vmw:value="true"/> | ||
<vmw:Config ovf:required="false" vmw:key="tools.afterPowerOn" vmw:value="true"/> | ||
<vmw:Config ovf:required="false" vmw:key="tools.afterResume" vmw:value="true"/> | ||
<vmw:Config ovf:required="false" vmw:key="tools.beforeGuestShutdown" vmw:value="true"/> | ||
<vmw:Config ovf:required="false" vmw:key="tools.beforeGuestStandby" vmw:value="true"/> | ||
<vmw:Config ovf:required="false" vmw:key="tools.toolsUpgradePolicy" vmw:value="manual"/> | ||
<vmw:Config ovf:required="false" vmw:key="powerOpInfo.powerOffType" vmw:value="soft"/> | ||
<vmw:Config ovf:required="false" vmw:key="powerOpInfo.resetType" vmw:value="soft"/> | ||
<vmw:Config ovf:required="false" vmw:key="powerOpInfo.suspendType" vmw:value="hard"/> | ||
<vmw:Config ovf:required="false" vmw:key="nestedHVEnabled" vmw:value="false"/> | ||
<vmw:Config ovf:required="false" vmw:key="vPMCEnabled" vmw:value="false"/> | ||
<vmw:Config ovf:required="false" vmw:key="virtualICH7MPresent" vmw:value="false"/> | ||
<vmw:Config ovf:required="false" vmw:key="virtualSMCPresent" vmw:value="false"/> | ||
<vmw:Config ovf:required="false" vmw:key="flags.vvtdEnabled" vmw:value="false"/> | ||
<vmw:Config ovf:required="false" vmw:key="flags.vbsEnabled" vmw:value="false"/> | ||
<vmw:Config ovf:required="false" vmw:key="bootOptions.efiSecureBootEnabled" vmw:value="false"/> | ||
<vmw:Config ovf:required="false" vmw:key="powerOpInfo.standbyAction" vmw:value="checkpoint"/> | ||
</VirtualHardwareSection> | ||
<ProductSection ovf:class="ttylinux" ovf:instance="vm" ovf:required="false"> | ||
<Info>ttylinux info</Info> | ||
<Product>ttylinux</Product> | ||
<Vendor>Minimalinux</Vendor> | ||
<Version>16.1</Version> | ||
<Category>ttylinux Settings</Category> | ||
<Property ovf:key="ntp-server" ovf:type="string" ovf:userConfigurable="true" ovf:qualifiers="MinLen(1),MaxLen(65535)"> | ||
<Label>NTP Server(s)</Label> | ||
<Description>NTP Server(s) to use. Please specify space delimited list.</Description> | ||
</Property> | ||
<Property ovf:key="enable_ssh" ovf:type="boolean" ovf:userConfigurable="true" ovf:value="false"> | ||
<Label>Enable SSH root login</Label> | ||
<Description>Check here to enable SSH login for root user. SSH login for root is disabled by default.</Description> | ||
</Property> | ||
<Property ovf:key="nfs_mount" ovf:type="string" ovf:userConfigurable="false" ovf:value="/transfer" ovf:qualifiers="MinLen(0),MaxLen(65535)"> | ||
<Label>NFS mount for transfer file location</Label> | ||
<Description>Ex: 10.0.0.1:/transfer</Description> | ||
</Property> | ||
</ProductSection> | ||
<ProductSection ovf:class="vm" ovf:required="false"> | ||
<Info>VM specific properties</Info> | ||
<Property ovf:key="vmname" ovf:type="string" ovf:value="vcsim_test"/> | ||
</ProductSection> | ||
</VirtualSystem> | ||
</Envelope> |
Oops, something went wrong.