Time Zones

Russianspi

New Member
Feb 13, 2009
3
0
1
Hi. This is my first post in the forums, but I'm excited about being a part of this community. I started using Proxmox last week, and I am in the process of moving many of my production servers to it. It seems really cool. I have only tried paravirtualized machines, as they seem to work fine for my needs and require less resources. I am running into trouble setting the time on the machines. I run "tzselect" as required by the instructions, and everything appears to set correctly (I am GMT-8 - Pacific Standard Time). BUT, when I type "date" into the terminal for my virtual server, it just continues to show the time in GMT (for my Ubuntu machines) and MST for my CentOS installs. I have checked the time on my proxmox server, and it appears to be fine, but for whatever reason, my machines won't set the correct timezone. Has anyone else experienced this? It is driving me crazy!
 
tzselect will not actually change the timezone for you. Use tzconfig to achieve this.

greetings,
Conrad
 
Got it!

The Ubuntu 8.04.2 image from proxmox.com doesn't have tzconfig installed (at least no file by that name). You did, however, point me in the right direction. I went looking for tzconfig, and ran into this helpful little tidbit, here:
Code:
sudo dpkg-reconfigure tzdata
Once I ran that, my timezone was set. I'm now trying to figure this out for my CentOS machine, which doesn't have tzconfig either. The info I'm running into seems to say that I should be able to change this using system-config-date, but that doesn't show up in my machine either. OK, I finally got this one figured out, too.
Code:
ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
will set the system clock to Pacific Standard Time on CentOS. I've updated the wiki pages for both systems to reflect this. Hopefully, this will be useful to others as well.
 
# yum -y install system-config-date
# system-config-date

you can then specify the timezone you'd like.

cheers,
--Guy
 
Big install

Yum wants me to install 68 packages to the tune of a 38 MB download to do that. For what I need, the link works just fine, but it's nice to know that system-config-date is an option, too. Thanks!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!