Hi List This is my first time that I write to the list. I have a serious problem with the time in one HVM Guest, because this VM has the time ahead 20min compared with the host Xen. I have tried to configure ntp client in the host Xen and in the HVM Guest but the problem continuos, the hvm never get sync with the ntp server. Then i configured the time with the ntpdate command in the crontab every minute and disable acpi=0 and reboot, but the time adjust 3 or sometimes 7seconds on the HVM Guest and this is critical because this Guest is db pgsql. I wan to know what is the procedure for this case??. I read the option of: echo 1 > /proc/sys/xen/independent_wallclock but this is only for the paravirtualized guest because i my guest hvm I dont have this file and i can''t apply this method. Host Xen: Centos 5.3 xen-3.0.3-80.el5_3.3 HVM Guest Centos 5.3 I have one windows 2003 in this Host Xen and this guest have the time ok using ntpclient. -- Atte Angel Motta Paz _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nerijus Narmontas
2010-Mar-11 09:09 UTC
Re: [Xen-users] Problema keeping Time in HVM Guest
Hi, Try setting localtime=1 in VM config file and reboot. It then should use dom0 server''s time. -- Nerijus Narmontas On Thu, Mar 11, 2010 at 8:21 AM, Angel Motta <angelmotta@gmail.com> wrote:> Hi List > This is my first time that I write to the list. I have a serious problem > with the time in one HVM Guest, because this VM has the time ahead 20min > compared with the host Xen. > I have tried to configure ntp client in the host Xen and in the HVM Guest > but the problem continuos, the hvm never get sync with the ntp server. Then > i configured the time with the ntpdate command in the crontab every minute > and disable acpi=0 and reboot, but the time adjust 3 or sometimes 7seconds > on the HVM Guest and this is critical because this Guest is db pgsql. > > I wan to know what is the procedure for this case??. I read the option of: > echo 1 > /proc/sys/xen/independent_wallclock but this is only for the > paravirtualized guest because i my guest hvm I dont have this file and i > can''t apply this method. > > Host Xen: > Centos 5.3 > xen-3.0.3-80.el5_3.3 > > HVM Guest > Centos 5.3 > > I have one windows 2003 in this Host Xen and this guest have the time ok > using ntpclient. > -- > Atte > Angel Motta Paz > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks Nerijus Ok I will try this "localtime=1", is a little complicated because is running in prod. For that reason I have a question, I will configure this setting and reboot the VM but the VM has to continue with service ntp running? o I have to disable this service befere the reboot? Thanks for your assistance -- Angel 2010/3/11 Nerijus Narmontas <n.narmontas@gmail.com>> Hi, > > Try setting localtime=1 in VM config file and reboot. It then should > use dom0 server''s time. > > > -- > Nerijus Narmontas > > > On Thu, Mar 11, 2010 at 8:21 AM, Angel Motta <angelmotta@gmail.com> wrote: > > Hi List > > This is my first time that I write to the list. I have a serious problem > > with the time in one HVM Guest, because this VM has the time ahead 20min > > compared with the host Xen. > > I have tried to configure ntp client in the host Xen and in the HVM Guest > > but the problem continuos, the hvm never get sync with the ntp server. > Then > > i configured the time with the ntpdate command in the crontab every > minute > > and disable acpi=0 and reboot, but the time adjust 3 or sometimes > 7seconds > > on the HVM Guest and this is critical because this Guest is db pgsql. > > > > I wan to know what is the procedure for this case??. I read the option > of: > > echo 1 > /proc/sys/xen/independent_wallclock but this is only for the > > paravirtualized guest because i my guest hvm I dont have this file and i > > can''t apply this method. > > > > Host Xen: > > Centos 5.3 > > xen-3.0.3-80.el5_3.3 > > > > HVM Guest > > Centos 5.3 > > > > I have one windows 2003 in this Host Xen and this guest have the time ok > > using ntpclient. > > -- > > Atte > > Angel Motta Paz > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > >-- Atte Angel Motta Paz _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nerijus Narmontas
2010-Mar-11 21:40 UTC
Re: [Xen-users] Problema keeping Time in HVM Guest
Yes, keep the service running. -- Nerijus Narmontas On Thu, Mar 11, 2010 at 4:13 PM, Angel Motta <angelmotta@gmail.com> wrote:> Thanks Nerijus > Ok I will try this "localtime=1", is a little complicated because is running > in prod. > For that reason I have a question, I will configure this setting and reboot > the VM but the VM has to continue with service ntp running? o I have to > disable this service befere the reboot? > > Thanks for your assistance > -- > Angel > > > > 2010/3/11 Nerijus Narmontas <n.narmontas@gmail.com> >> >> Hi, >> >> Try setting localtime=1 in VM config file and reboot. It then should >> use dom0 server''s time. >> >> >> -- >> Nerijus Narmontas >> >> >> On Thu, Mar 11, 2010 at 8:21 AM, Angel Motta <angelmotta@gmail.com> wrote: >> > Hi List >> > This is my first time that I write to the list. I have a serious problem >> > with the time in one HVM Guest, because this VM has the time ahead 20min >> > compared with the host Xen. >> > I have tried to configure ntp client in the host Xen and in the HVM >> > Guest >> > but the problem continuos, the hvm never get sync with the ntp server. >> > Then >> > i configured the time with the ntpdate command in the crontab every >> > minute >> > and disable acpi=0 and reboot, but the time adjust 3 or sometimes >> > 7seconds >> > on the HVM Guest and this is critical because this Guest is db pgsql. >> > >> > I wan to know what is the procedure for this case??. I read the option >> > of: >> > echo 1 > /proc/sys/xen/independent_wallclock but this is only for the >> > paravirtualized guest because i my guest hvm I dont have this file and i >> > can''t apply this method. >> > >> > Host Xen: >> > Centos 5.3 >> > xen-3.0.3-80.el5_3.3 >> > >> > HVM Guest >> > Centos 5.3 >> > >> > I have one windows 2003 in this Host Xen and this guest have the time ok >> > using ntpclient. >> > -- >> > Atte >> > Angel Motta Paz >> > >> > _______________________________________________ >> > Xen-users mailing list >> > Xen-users@lists.xensource.com >> > http://lists.xensource.com/xen-users >> > > > > > -- > Atte > Angel Motta Paz >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nerijus I could sync ntp cliente with ntpserver in HVM guest, but when I reboot the guest the time is delayed 4hours. Some tip more? -- Angel 2010/3/11 Nerijus Narmontas <n.narmontas@gmail.com>> Yes, keep the service running. > > -- > Nerijus Narmontas > > On Thu, Mar 11, 2010 at 4:13 PM, Angel Motta <angelmotta@gmail.com> wrote: > > Thanks Nerijus > > Ok I will try this "localtime=1", is a little complicated because is > running > > in prod. > > For that reason I have a question, I will configure this setting and > reboot > > the VM but the VM has to continue with service ntp running? o I have to > > disable this service befere the reboot? > > > > Thanks for your assistance > > -- > > Angel > > > > > > > > 2010/3/11 Nerijus Narmontas <n.narmontas@gmail.com> > >> > >> Hi, > >> > >> Try setting localtime=1 in VM config file and reboot. It then should > >> use dom0 server''s time. > >> > >> > >> -- > >> Nerijus Narmontas > >> > >> > >> On Thu, Mar 11, 2010 at 8:21 AM, Angel Motta <angelmotta@gmail.com> > wrote: > >> > Hi List > >> > This is my first time that I write to the list. I have a serious > problem > >> > with the time in one HVM Guest, because this VM has the time ahead > 20min > >> > compared with the host Xen. > >> > I have tried to configure ntp client in the host Xen and in the HVM > >> > Guest > >> > but the problem continuos, the hvm never get sync with the ntp server. > >> > Then > >> > i configured the time with the ntpdate command in the crontab every > >> > minute > >> > and disable acpi=0 and reboot, but the time adjust 3 or sometimes > >> > 7seconds > >> > on the HVM Guest and this is critical because this Guest is db pgsql. > >> > > >> > I wan to know what is the procedure for this case??. I read the option > >> > of: > >> > echo 1 > /proc/sys/xen/independent_wallclock but this is only for the > >> > paravirtualized guest because i my guest hvm I dont have this file and > i > >> > can''t apply this method. > >> > > >> > Host Xen: > >> > Centos 5.3 > >> > xen-3.0.3-80.el5_3.3 > >> > > >> > HVM Guest > >> > Centos 5.3 > >> > > >> > I have one windows 2003 in this Host Xen and this guest have the time > ok > >> > using ntpclient. > >> > -- > >> > Atte > >> > Angel Motta Paz > >> > > >> > _______________________________________________ > >> > Xen-users mailing list > >> > Xen-users@lists.xensource.com > >> > http://lists.xensource.com/xen-users > >> > > > > > > > > > -- > > Atte > > Angel Motta Paz > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- Atte Angel Motta Paz _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users