My Oracle Support Banner

OLVM: Importing Windows VM Fails with "Invalid timezone for given OS type" (Doc ID 2708401.1)

Last updated on OCTOBER 01, 2021

Applies to:

Linux OS - Version Oracle Linux 7.8 and later
Linux x86-64

Symptoms

When importing a Windows VM, it fails with the below error:

Engine log reports below error:

2020-09-05 02:45:46,798Z WARN [org.ovirt.engine.core.bll.exportimport.ImportVmFromOvaCommand] (default task-51) [e81f887c-3dc6-4c51-a881-f030f6f6fea8] Validation of action 'ImportVmFromOva' failed for 
user admin@internal-authz. Reasons: VAR__ACTION__IMPORT,VAR__TYPE__VM,<strong>ACTION_TYPE_FAILED_INVALID_TIMEZONE</strong>,$groups [Ljava.lang.Class;@1245a617,$message ACTION_TYPE_FAILED_INVALID_TIMEZONE,
$payload [Ljava.lang.Class;@2d7fb606,ACTION_TYPE_FAILED_ATTRIBUTE_PATH,$path vm.vmStatic,$validatedValue org.ovirt.engine.core.common.businessentities.VmStatic@15026120
2020-09-05 02:59:04,037Z WARN [org.ovirt.engine.core.bll.exportimport.ImportVmFromOvaCommand] (default task-51) [63eb23b2-746a-4840-a8ef-378ee2b3cc58] Validation of action 'ImportVmFromOva' failed for 
user admin@internal-authz. Reasons: VAR__ACTION__IMPORT,VAR__TYPE__VM,<strong>ACTION_TYPE_FAILED_INVALID_TIMEZONE</strong>,$groups [Ljava.lang.Class;@1245a617,$message ACTION_TYPE_FAILED_INVALID_TIMEZONE,
$payload [Ljava.lang.Class;@2d7fb606,ACTION_TYPE_FAILED_ATTRIBUTE_PATH,
$path vm.vmStatic,$validatedValue org.ovirt.engine.core.common.businessentities.VmStatic@15026120

Engine config for DefaultWindowsTimeZone is by default:

engine-config -g DefaultWindowsTimeZone
DefaultWindowsTimeZone: GMT Standard Time version: general

By checking the vmStatic table, it is configured fine:

# /usr/share/ovirt-engine/dbscripts/engine-psql.sh -c "SELECT vm_name,time_zone from vm_static WHERE vm_name = 'Blank' AND entity_type = 'TEMPLATE';"
vm_name | time_zone
---------+-----------
Blank |
(1 row)

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.