Description of problem: when importing Windows VM from OVA/OVF import fails:
Cannot import VM. Invalid time zone for given OS type.
Attribute: vm.vmStatic
Infrastructure:
VMware ESXi, 7.0.3, 19193900
oVirt Version 4.5.4-1.el8
oVirt self-hosted engine
Steps to Reproduce:
1.Export Windows VM Microsoft Windows Server 2019 (64-bit) to OVA/OVF from VSphere that
have SA Pacific Standard Time timezone (UTC-05:00) Bogotá, Lima, Quito) with ovftool.
2. import the VM in oVirt
import fails with:
Cannot import VM. Invalid time zone for given OS type.
Attribute: vm.vmStatic
[org.ovirt.engine.core.bll.exportimport.ImportVmFromOvaCommand] (default task-2)
[72bb230a-bc1c-41c6-b87f-3891764b9fdd] Validation of action 'ImportVmFromOva'
failed for user Reasons:
VAR__ACTION__IMPORT,VAR__TYPE__VM,ACTION_TYPE_FAILED_INVALID_TIMEZONE,$groups
[Ljava.lang.Class;@746306ef,$message ACTION_TYPE_FAILED_INVALID_TIMEZONE,$payload
[Ljava.lang.Class;@2d685ee5,ACTION_TYPE_FAILED_ATTRIBUTE_PATH,$path
vm.vmStatic,$validatedValue
# cat Implementacion_02-2.ovf
<?xml version='1.0' encoding='UTF-8'?>
<Envelope
xmlns="http://schemas.dmtf.org/ovf/envelope/1"
xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1"
xmlns:vmw="http://www.vmware.com/schema/ovf"
xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Re...
xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_Vi...
<References>
<File ovf:id="file1"
ovf:href="Implementacion_02-2-1.vmdk"/>
<File ovf:id="file2"
ovf:href="Implementacion_02-2-2.vmdk"/>
<File ovf:id="file3" ovf:href="Implementacion_02-2-3.nvram"
ovf:size="270840"/>
</References>
<DiskSection>
<Info>List of the virtual disks</Info>
<Disk ovf:capacityAllocationUnits="byte"
ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.htm...
ovf:diskId="vmdisk1" ovf:capacity="161061273600"
ovf:fileRef="file1"/>
<Disk ovf:capacityAllocationUnits="byte"
ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.htm...
ovf:diskId="vmdisk2" ovf:capacity="161061273600"
ovf:fileRef="file2"/>
</DiskSection>
<NetworkSection>
<Info>The list of logical networks</Info>
<Network ovf:name="DVPG_102">
<Description>The DVPG_102 network</Description>
</Network>
</NetworkSection>
<VirtualSystem ovf:id="Implementacion_02-2">
<Info>A Virtual system</Info>
<Name>Implementacion_02-2</Name>
<OperatingSystemSection ovf:id="112"
vmw:osType="windows2019srv_64Guest">
<Info>The operating system installed</Info>
<Description>Microsoft Windows Server 2019 (64-bit)</Description>
</OperatingSystemSection>
<VirtualHardwareSection>
<Info>Virtual hardware requirements</Info>
<System>
<vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
<vssd:InstanceID>0</vssd:InstanceID>
<vssd:VirtualSystemType>vmx-18</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>
<vmw:CoresPerSocket
ovf:required="false">1</vmw:CoresPerSocket>
</Item>
<Item>
<rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
<rasd:Description>Memory Size</rasd:Description>
<rasd:ElementName>4096MB of memory</rasd:ElementName>
<rasd:InstanceID>2</rasd:InstanceID>
<rasd:ResourceType>4</rasd:ResourceType>
<rasd:VirtualQuantity>4096</rasd:VirtualQuantity>
</Item>
<Item>
<rasd:Address>0</rasd:Address>
<rasd:Description>SCSI Controller</rasd:Description>
<rasd:ElementName>SCSI Controller 1</rasd:ElementName>
<rasd:InstanceID>3</rasd:InstanceID>
<rasd:ResourceSubType>lsilogicsas</rasd:ResourceSubType>
<rasd:ResourceType>6</rasd:ResourceType>
<vmw:Config ovf:required="false"
vmw:key="slotInfo.pciSlotNumber" vmw:value="160"/>
</Item>
<Item>
<rasd:Address>0</rasd:Address>
<rasd:Description>SATA Controller</rasd:Description>
<rasd:ElementName>SATA Controller 1</rasd:ElementName>
<rasd:InstanceID>4</rasd:InstanceID>
<rasd:ResourceSubType>vmware.sata.ahci</rasd:ResourceSubType>
<rasd:ResourceType>20</rasd:ResourceType>
<vmw:Config ovf:required="false"
vmw:key="slotInfo.pciSlotNumber" vmw:value="33"/>
</Item>
<Item>
<rasd:Description>USB Controller (XHCI)</rasd:Description>
<rasd:ElementName>USB controller</rasd:ElementName>
<rasd:InstanceID>5</rasd:InstanceID>
<rasd:ResourceSubType>vmware.usb.xhci</rasd:ResourceSubType>
<rasd:ResourceType>23</rasd:ResourceType>
<vmw:Config ovf:required="false"
vmw:key="slotInfo.pciSlotNumber" vmw:value="224"/>
</Item>
<Item>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
<rasd:ElementName>Hard Disk 1</rasd:ElementName>
<rasd:HostResource>ovf:/disk/vmdisk1</rasd:HostResource>
<rasd:InstanceID>6</rasd:InstanceID>
<rasd:Parent>3</rasd:Parent>
<rasd:ResourceType>17</rasd:ResourceType>
</Item>
<Item>
<rasd:AddressOnParent>1</rasd:AddressOnParent>
<rasd:ElementName>Hard Disk 2</rasd:ElementName>
<rasd:HostResource>ovf:/disk/vmdisk2</rasd:HostResource>
<rasd:InstanceID>7</rasd:InstanceID>
<rasd:Parent>3</rasd:Parent>
<rasd:ResourceType>17</rasd:ResourceType>
</Item>
<Item>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
<rasd:ElementName>CD/DVD Drive 1</rasd:ElementName>
<rasd:InstanceID>8</rasd:InstanceID>
<rasd:Parent>4</rasd:Parent>
<rasd:ResourceSubType>vmware.cdrom.remoteatapi</rasd:ResourceSubType>
<rasd:ResourceType>15</rasd:ResourceType>
</Item>
<Item>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
<rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
<rasd:Connection>DVPG_102</rasd:Connection>
<rasd:ElementName>Network adapter 1</rasd:ElementName>
<rasd:InstanceID>9</rasd:InstanceID>
<rasd:ResourceSubType>VmxNet3</rasd:ResourceSubType>
<rasd:ResourceType>10</rasd:ResourceType>
<vmw:Config ovf:required="false"
vmw:key="slotInfo.pciSlotNumber" vmw:value="192"/>
<vmw:Config ovf:required="false"
vmw:key="connectable.allowGuestControl" vmw:value="true"/>
<vmw:Config ovf:required="false" vmw:key="wakeOnLanEnabled"
vmw:value="true"/>
<vmw:Config ovf:required="false"
vmw:key="uptCompatibilityEnabled" vmw:value="true"/>
</Item>
<Item ovf:required="false">
<rasd:ElementName>Video card</rasd:ElementName>
<rasd:InstanceID>10</rasd:InstanceID>
<rasd:ResourceType>24</rasd:ResourceType>
<vmw:Config ovf:required="false" vmw:key="enable3DSupport"
vmw:value="false"/>
<vmw:Config ovf:required="false" vmw:key="useAutoDetect"
vmw:value="true"/>
<vmw:Config ovf:required="false"
vmw:key="graphicsMemorySizeInKB" vmw:value="262144"/>
<vmw:Config ovf:required="false" vmw:key="use3dRenderer"
vmw:value="automatic"/>
<vmw:Config ovf:required="false" vmw:key="numDisplays"
vmw:value="1"/>
<vmw:Config ovf:required="false" vmw:key="videoRamSizeInKB"
vmw:value="16384"/>
</Item>
<vmw:Config ovf:required="false" vmw:key="cpuHotAddEnabled"
vmw:value="false"/>
<vmw:Config ovf:required="false" vmw:key="sgxInfo.epcSize"
vmw:value="0"/>
<vmw:Config ovf:required="false" vmw:key="nestedHVEnabled"
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="cpuHotRemoveEnabled" vmw:value="false"/>
<vmw:Config ovf:required="false" vmw:key="sgxInfo.flcMode"
vmw:value="unlocked"/>
<vmw:Config ovf:required="false" vmw:key="sevEnabled"
vmw:value="false"/>
<vmw:Config ovf:required="false"
vmw:key="virtualICH7MPresent" vmw:value="false"/>
<vmw:Config ovf:required="false" vmw:key="flags.vbsEnabled"
vmw:value="false"/>
<vmw:Config ovf:required="false"
vmw:key="memoryHotAddEnabled" vmw:value="false"/>
<vmw:Config ovf:required="false"
vmw:key="bootOptions.efiSecureBootEnabled" vmw:value="true"/>
<vmw:Config ovf:required="false" vmw:key="firmware"
vmw:value="efi"/>
<vmw:ExtraConfig ovf:required="false" vmw:key="nvram"
vmw:value="ovf:/file/file3"/>
<vmw:ExtraConfig ovf:required="false"
vmw:key="svga.autodetect" vmw:value="TRUE"/>
</VirtualHardwareSection>
</VirtualSystem>
# cat /etc/ovirt-engine/timezones/00-defaults.properties | grep -ie bogota
America/Bogota=SA Pacific Standard Time
any suggestions for me??