Re: Debian 4.0 on VMware Player 2.0.5 on WinXP Pro SP3 keybounce, network, clock issues

2008-08-31 Thread Steve Kemp
On Sun Aug 31, 2008 at 13:52:26 -0700, David Christensen wrote:

 2.  The eth0 network interface would not come up reliably at boot --
~50% of the time it would work.

   When it failed what was the symptoms from the Debian side?
  I'd guess that it came up as eth1, eth2, etc.  See if that
  is the case by running ifconfig -a.

   If it has a different number look at your udev config.

 3.  The clock ran fast -- Debian would sometimes gain
 an hour or more per hour of real time. 

  Use the open-vm-tools package.  Edited that would look something
 like this:

apt-get install module-assistant open-vm-tools open-vm-source
m-a prepare
m-a build open-vm-source
m-a install open-vm-source
reboot

Steve
-- 
Managed Anti-Spam Service
http://mail-scanning.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



RE: Debian 4.0 on VMware Player 2.0.5 on WinXP Pro SP3 keybounce,network, clock issues

2008-08-31 Thread David Christensen
Steve Kemp wrote:
 When it failed what was the symptoms from the Debian side?

The Debian machine cannot access the network.


 I'd guess that it came up as eth1, eth2, etc.  See if that is the
 case by running ifconfig -a.

$ cat ifconfig-a-eth0-dead.txt
eth0  Link encap:Ethernet  HWaddr 00:0C:29:5A:F3:3A
  inet6 addr: fe80::20c:29ff:fe5a:f33a/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 b)  TX bytes:1494 (1.4 KiB)
  Interrupt:10 Base address:0x1400

loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

sit0  Link encap:IPv6-in-IPv4
  NOARP  MTU:1480  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


$ cat ifconfig-a-eth0-working.txt
eth0  Link encap:Ethernet  HWaddr 00:0C:29:5A:F3:3A
  inet addr:192.168.0.12  Bcast:192.168.0.255  Mask:255.255.255.0
  inet6 addr: fe80::20c:29ff:fe5a:f33a/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:20864 errors:0 dropped:0 overruns:0 frame:0
  TX packets:16211 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:11956830 (11.4 MiB)  TX bytes:2832918 (2.7 MiB)
  Interrupt:10 Base address:0x1400

loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:28 errors:0 dropped:0 overruns:0 frame:0
  TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:18974 (18.5 KiB)  TX bytes:18974 (18.5 KiB)

sit0  Link encap:IPv6-in-IPv4
  NOARP  MTU:1480  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


$ diff ifconfig-a-eth0-dead.txt ifconfig-a-eth0-working.txt
1a2
   inet addr:192.168.0.12  Bcast:192.168.0.255  Mask:255.255.255.0
4,5c5,6
   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
   TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
---
   RX packets:20864 errors:0 dropped:0 overruns:0 frame:0
   TX packets:16211 errors:0 dropped:0 overruns:0 carrier:0
7c8
   RX bytes:0 (0.0 b)  TX bytes:1494 (1.4 KiB)
---
   RX bytes:11956830 (11.4 MiB)  TX bytes:2832918 (2.7 MiB)
14,15c15,16
   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
   TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
---
   RX packets:28 errors:0 dropped:0 overruns:0 frame:0
   TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
17c18
   RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
---
   RX bytes:18974 (18.5 KiB)  TX bytes:18974 (18.5 KiB)


HTH,

David


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



RE: Debian 4.0 on VMware Player 2.0.5 on WinXP Pro SP3 keybounce, network, clock issues

2008-08-31 Thread David Christensen
debian-user:

Blindly calling ifdown/ifup from /etc/rc.local was cheesy, and sure enough it
didn't work reliably.  So I wrote a Bash shell script to ping my gateway and do
ifdown/ifup only if needed (three times maximum).  I call that from rc.local
instead:

/root/bin/kick-eth0


David


#!/bin/bash
###
# $Id: kick-eth0,v 1.2 2008/09/01 03:13:47 dpchrist Exp $
#
# Wake up interface eth0 as a work-around on Debian GNU/Linux virtual
# machines running under VMware Player.  Called by /etc/rc.local.
#
# Copyright 2008 by David Paul Christensen [EMAIL PROTECTED]
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307,
# USA.
###

IFDOWN=ifdown eth0
IFUP=ifup eth0
PING=ping -c 1 192.168.0.1

declare -i tries=3

while true
do
echo $0: running '$PING'...
$PING
ES=$?

if [ $ES = 0 ]
then
echo $0: eth0 is operational
break
fi

echo $0: attempting to wake up eth0

tries=tries-1

if [ $(( $tries = 0 )) = 1 ]
then
echo $0: ERROR unable to wake up eth0
exit 1
fi

echo $0: running '$IFDOWN'...
$IFDOWN

sleep 1

echo $0: running '$IFUP'...
$IFUP
done

###


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



RE: Debian 4.0 on VMware Player 2.0.5 on WinXP Pro SP3 keybounce,network, clock issues

2008-08-31 Thread David Christensen
Steve Kemp wrote:
 Use the open-vm-tools package.  Edited that would look something like
 this:
 apt-get install module-assistant open-vm-tools open-vm-source

Aptitude sees module assistant, but not the others:

# aptitude search module-assistant open-vm
p   module-assistant- tool to make module package creation
easie


http://packages.debian.org/search?keywords=open-vm-tools shows the module
open-vm-tools in etch-backports, lenny, and sid.


http://www.backports.org/dokuwiki/doku.php?id=instructions tells me how to add
etch-backports to package management system.


Running 'aptitude update' finds a bunch of stuff.


Running 'aptitude install module-assistant' installs just that one module.


Running 'aptitude -t etch-backports install open-vm-tools open-vm-source' blows
up (see below) and takes out eth0.  Logging in on the VMware console -- the
network connection is dead.  Running kick-eth0 script -- lots of errors.
Reboot.  Network is toast.  Shut down virtual machine, move folder aside, unzip
last backup...


Any suggestions?

David

--

# aptitude -t etch-backports install open-vm-tools open-vm-source
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Building tag database... Done
The following NEW packages will be automatically installed:
  binutils bzip2 cpp cpp-4.1 debhelper dpatch dpkg-dev ethtool fakeroot gcc
  gcc-4.1 gettext html2text intltool-debian libc6-dev libdumbnet1 libicu36
  libmail-sendmail-perl libmudflap0 libmudflap0-dev libssp0
  linux-kernel-headers make patch patchutils po-debconf
The following packages have been kept back:
  base-files initramfs-tools initscripts klibc-utils libklibc
  linux-image-2.6-686 man-db sysv-rc sysvinit sysvinit-utils vim-common
  vim-tiny
The following NEW packages will be installed:
  binutils bzip2 cpp cpp-4.1 debhelper dpatch dpkg-dev ethtool fakeroot gcc
  gcc-4.1 gettext html2text intltool-debian libc6-dev libdumbnet1 libicu36
  libmail-sendmail-perl libmudflap0 libmudflap0-dev libssp0
  linux-kernel-headers make open-vm-source open-vm-tools patch patchutils
  po-debconf
0 packages upgraded, 28 newly installed, 0 to remove and 12 not upgraded.
Need to get 20.9MB of archives. After unpacking 64.3MB will be used.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
Get:1 http://ftp.debian.org etch/main patch 2.5.9-4 [99.5kB]
Get:2 http://www.backports.org etch-backports/main debhelper 5.0.60~bpo40+1 [522
kB]
Get:3 http://ftp.debian.org etch/main binutils 2.17-3 [2605kB]
3% [3 binutils 639843/2605kB 24%] [2 debhelper 89445/522kB 17%]135kB/s 2m28s
4% [3 binutils 703555/2605kB 27%] [2 debhelper 96685/522kB 18%]135kB/s 2m28s
4% [3 binutils 771611/2605kB 29%] [2 debhelper 109717/522kB 21%]   135kB/s 2m27s
4% [3 binutils 829531/2605kB 31%] [2 debhelper 112613/522kB 21%]   135kB/s 2m27s
5% [3 binutils 887451/2605kB 34%] [2 debhelper 125645/522kB 24%]   135kB/s 2m26s
5% [3 binutils 943923/2605kB 36%] [2 debhelper 132885/522kB 25%]   135kB/s 2m26s
5% [3 binutils 1001843/2605kB 38%] [2 debhelper 143021/522kB 27%]  135kB/s 2m25s
6% [3 binutils 1067003/2605kB 40%] [2 debhelper 150261/522kB 28%]  135kB/s 2m25s
6% [3 binutils 1106099/2605kB 42%] [2 debhelper 157501/522kB 30%]  135kB/s 2m24s
6% [3 binutils 1171259/2605kB 44%] [2 debhelper 167637/522kB 32%]  135kB/s 2m24s
7% [3 binutils 1221939/2605kB 46%] [2 debhelper 13/522kB 34%]  135kB/s 2m23s
7% [3 binutils 1271171/2605kB 48%] [2 debhelper 187909/522kB 35%]  135kB/s 2m23s
7% [3 binutils 1337779/2605kB 51%] [2 debhelper 205285/522kB 39%]  136kB/s 2m21s
8% [3 binutils 1398595/2605kB 53%] [2 debhelper 219765/522kB 42%]  136kB/s 2m21s
8% [3 binutils 1460859/2605kB 56%] [2 debhelper 237141/522kB 45%]  136kB/s 2m20s
8% [3 binutils 1508643/2605kB 57%] [2 debhelper 257413/522kB 49%]  136kB/s 2m20s
9% [3 binutils 1559323/2605kB 59%] [2 debhelper 271893/522kB 52%]  136kB/s 2m19s
9% [3 binutils 1618691/2605kB 62%] [2 debhelper 290717/522kB 55%]  136kB/s 2m19s
9% [3 binutils 1676611/2605kB 64%] [2 debhelper 305197/522kB 58%]  136kB/s 2m18s

14% [3 binutils 2478803/2605kB 95%] [Waiting for headers]  130kB/s 2m16s

Get:4 http://www.backports.org etch-backports/contrib open-vm-source 2008.07.01-
102166-3~bpo40+2 [432kB]

Get:5 http://ftp.debian.org etch/main bzip2 1.0.3-6 [269kB]
15% [5 bzip2 526/269kB 0%] [4 open-vm-source 28674/432kB 6%]139kB/s 2m6s
15% [5 bzip2 70030/269kB 26%] [4 open-vm-source 41706/432kB 9%] 139kB/s 2m6s
16% [5 bzip2 126502/269kB 47%] [4 open-vm-source 50394/432kB 11%]   139kB/s 2m5s
16% [5 bzip2 178630/269kB 66%] [4 open-vm-source 61978/432kB 14%]   139kB/s 2m5s
16% [5 bzip2 242342/269kB 90%] [4 open-vm-source 75010/432kB 17%]   139kB/s 2m4s

Get:6 http://ftp.debian.org etch/main cpp-4.1 4.1.1-21 [2331kB]
17% [6 cpp-4.1 716/2331kB 0%] [4 open-vm-source 79354/432kB 18%]139kB/s 2m4s
17% [6 cpp-4.1