Request #4721

I want to give my kvm guests the freedom to have an independent RTC value

Added by Gunwoo Gim almost 5 years ago. Updated almost 5 years ago.

Status:PendingStart date:08/18/2016
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Pull request:

Description

I want to give my kvm guests the freedom to have independent RTC value, in a way they can set the clock value in easy, true virtualized way. I don't want to use 'localtime' or 'adjustment'(variable) of libvert.

I tried this but it goes away after a power-off, Can you make OpenNebula keep the RTC value after a power-off?

RAW = [
TYPE = "kvm",
DATA = "<clock offset='variable'>
<timer name='rtc' tickpolicy='catchup' track='guest'>
<catchup threshold='123' slew='120' limit='10000'/>
</timer>
</clock>"
]

It all stems from the Windowses storing local time into the motherboards.

Best Wishes
From Korea

History

#1 Updated by Ruben S. Montero almost 5 years ago

Hi

Do you mean that you are losing the RAW data when the VM is powered-off?

Cheers

#2 Updated by Gunwoo Gim almost 5 years ago

Ruben S. Montero wrote:

Hi

Do you mean that you are losing the RAW data when the VM is powered-off?

Cheers

I'm sorry for not clarifying it enough, I meant the RTC time value is lost when the vm goes to power-off state; so after I resume the VM I see the windows' local time set to the UTC even if I have set it to the local time before the power-off.

Best Wishes,
From Korea

#3 Updated by Ruben S. Montero almost 5 years ago

Hi

I'm trying to understand if this is an OpenNebula issue, hypervisor or guest. If the VM is not changed after poweroff, this maybe an issue with the guest or hypervior configurtion.

#4 Updated by Gunwoo Gim almost 5 years ago

Hi, sorry for the curt text.

I don't really know well about the libvirt and virsh but I guess virsh would keep the RTC value until it 'destorys' a VM. however I think opennebula has the virsh-on the host- destroy the VM when it gets a VM into 'power-off' state so the RTC value would be lost.

I guess opennebula would have to do something to prevent the loss of RTC value.

Wish the best,
From Korea

Also available in: Atom PDF