Koozali.org: home of the SME Server

update to 7.1 runing in VMWare

podge

update to 7.1 runing in VMWare
« on: January 01, 2007, 06:14:20 PM »
I have just updated one of my VM SME servers to 7.1 using yum.
And was left without any network connectivity.

I found that rerunning the;
Code: [Select]
/usr/bin/vmware-config-tools.pl
Restored access.

Also double check that you are still using your chosen kernel at boot, it reconfigured mine to "smp".

Chilly

duncan

update to 7.1 runing in VMWare
« Reply #1 on: January 02, 2007, 12:08:22 PM »
Code: [Select]
/usr/bin/vmware-config.pl

Offline NickCritten

  • *
  • 245
  • +0/-0
Keep Clock up to date without VMWare Tools
« Reply #2 on: January 30, 2007, 05:50:22 PM »
In My experience the VMWare Tools install script breaks the network about 50% of the time.

After faffing about with it and half a dozen reboots I finally got it going a few months ago, but teh recent upgrade to 7.1 broke VMWare Tools as Podge mentioned.


Anyway,

I have a workaround that doesn't require the install of VMWare-Tools, and (should) survive future Kernel upgrades.

Switch OFF Network Time in the server-manager panel.

Now create a custom template fragment

Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/crontab
touch /etc/e-smith/templates-custom/etc/crontab/66_ntpdate

Open the above new file in your favourite editor (vi / pico) and add the following (Make sure you put in a line feed below the last line)
Replace 10.10.10.10 with a local NTP server if you have one, or with your local pool.ntp.org (e.g. uk.pool.ntp.org)

Code: [Select]
#Update Clock every 2 minutes
*/2 * * * * root ntpdate 10.10.10.10 > null



The /2 is the number of minutes between each update, if your clock is not running incredibly slow or fast, you could reduce this to every 10 minutes or every 30 minutes.

The > null is to stop you getting an email every X minutes telling you it has run.

You might also consider running an NTP server on the VMWare Host, and syncing up off that.

once you have made your adjustments:
Code: [Select]
expand-template /etc/crontab
/etc/rc.d/init.d/crond restart


Hope this Helps,

Hopefully this annoying issue will be fixed by RedHat / VMWare soon and it will filter down to SME.
...
Nick

"No good deed goes unpunished." :-x...

webCato

update to 7.1 runing in VMWare
« Reply #3 on: April 10, 2007, 05:11:55 AM »
Nick,
I followed your directions to hopefully fix this issue, but I am now getting emails with the following in them
Code: [Select]
10 Apr 12:00:04 ntpdate[6620]: the NTP socket is in use, exiting
I am really hoping that if I can get this fixed it will fix my problem of losing network connectivity on the SME VMWare server that I am running on my XP box.

Peter

Offline NickCritten

  • *
  • 245
  • +0/-0
update to 7.1 runing in VMWare
« Reply #4 on: April 10, 2007, 11:30:37 AM »
Hi webCato,

You haven't done this:
Quote from: "NickCritten"
Switch OFF Network Time in the server-manager panel.
...
Nick

"No good deed goes unpunished." :-x...

webCato

update to 7.1 runing in VMWare
« Reply #5 on: April 11, 2007, 12:09:40 AM »
Thanks for the reply Nick,

On the page "Date and Time" under Configuration I do have the option for "Set Date and Time" selected and "Enable Network Time Server" is not selected.

Is there anywhere else that I need to turn it off?

Peter

Offline NickCritten

  • *
  • 245
  • +0/-0
update to 7.1 runing in VMWare
« Reply #6 on: April 11, 2007, 11:36:00 AM »
Hmm, Strange.

Try switching to Network Time, Apply, then disable and apply again.

Make sure when you switch to manual time that the time is correct, as ntpdate won't update the clock if it is too far out.

You can check the status of the ntpd daemon by doing a
Code: [Select]
/etc/rc.d/init.d/ntpd status

e.g. if it is properly disabled you will get:
Code: [Select]
[root@sleuth2 ~]# /etc/rc.d/init.d/ntpd status
ntpd is stopped
[root@sleuth2 ~]#


You'll probably want to raise a bug in BugTracker whether this works or not, because if the Server-Manager states that network time is off, the ntpd daemon should not be running.
...
Nick

"No good deed goes unpunished." :-x...

webCato

update to 7.1 runing in VMWare
« Reply #7 on: April 11, 2007, 12:21:57 PM »
I checked the status of the ntp daemon and it is still running after I disable the network time server.

I will go and try to raise a bug in bug tracker.

How can I kill it now manually?

Thanks
Peter

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
update to 7.1 runing in VMWare
« Reply #8 on: April 11, 2007, 01:04:25 PM »
Code: [Select]
config setprop ntpd status disabled
Code: [Select]
/etc/rc7.d/S80ntpd stop
Regards,
William

IF I give advise.. It's only if it was me....