how to set the time of the virtual machine same as the host machine
is it possible to set the time of the virtual machine according to the host system on which it is installed????
i tried to do it by enabling the "hardware clock in UTC time" in the Motherboard tab.. but it is giving me the time in UTC format.. but i want it in IST format.. can anyone help me in this. Thanks in Advance :) |
You should set TZ environmental variabe in /etc/profile.
Try running this command: Code:
TZ="Asia/Kolkata" date export TZ="Asia/Kolkata" in your /etc/profile file. |
If the host is a Linux system and runs an ntp service (most distros do by default) you can configure the host as ntp server for the guest.
Assuming that you are using virtual box and a NAT type network adapter for the virtual system the guest will see the host under 10.0.2.2. In /etc/ntp.conf on the guest system you'll find the section with the servers. I.e. on my machine that looks like below Code:
# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will Code:
cp /etc.ntp.conf /etc/ntp.conf.bck Code:
# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will Now the two machines should automatically synchronize, provided that the timezone is set correctly as described by veerain. |
You can probably disregard my previous post. In fact I think virtualbox will synchronise guest and host for you by default...
|
virtualbox is not syncing the time automatically.Is there any way to sync the time forcefully????
|
well if you are running on MICROSOFT
the MS windows OS's can NOT use utc they set the clock on the Motherboard to YOUR LOCAL TIME ZONE!!! you must DISABLE UTC time on linux and use the MICROSOFT way of doing things PS note using the microsoft way might cause some "odd" things on the net dealing with time such as a replay to one of your posts might be posted BEFORE YOUR POST |
Quote:
|
All times are GMT -5. The time now is 05:21 PM. |