whiskerz007 / proxmox_hassos_install

MIT License
887 stars 192 forks source link

Set Timezone on VM #74

Open rklueber opened 4 years ago

rklueber commented 4 years ago

Hello,

Proxmox Host as EU/Berlin timezone, VM has UTC and the hassio docker inside VM is EU/Berlin again. I have issues with the conditions: time not matching. I try to trouble shoot and found out that the VM is on UTC. I want to change the VM being on local time as well. How do I do that?

On VM:

$ timedatectl
                      Local time: Tue 2020-06-15 07:59:09 UTC
                  Universal time: Tue 2020-06-15 07:59:09 UTC
                        RTC time: Tue 2020-06-15 07:59:10
                       Time zone: Etc/UTC (UTC,  +0000)
       System clock synchronized: yes
                     NTP service: active
                 RTC in local TZ: no

I am trying to change that in the VM with

$ timedatectl set-timzone Europe/Berlin
Failed to set time zone: Failed to set time zone: Read-only file system

Actually above sets timezone to local, but not persisting reboots of the VM.

Any hint appreciated.

Some background. All my ´condition: time´ do not fire because of the VM being in UTC. All is 2h off. When I set the VM to local time it works. Seems strange to me and a HA bug in the 1st place. Anyhow setting VM to local will solve it. How to persist?