Cloned Etch guest loses networking
Posted: 7. Sep 2007, 23:04
Summary (details are at end of post):
On a Kubuntu Feisty host using VirtualBox 1.5 (and 1.4 before
with the same result) I created a Debian Etch guest using the default
(NAT) networking configuration. Then I cloned the disk and used it to
create a new virtual machine, but networking fails (eth0 just won't
come up).
On the original machine, starting networking reports, among other
stuff, that eth0 is up at 100MB, Full-Duplex.
On the cloned machine it just says:
Configuring network interfaces...done.
and all I have is lo. If I try ifup eth0, I get:
[boilerplate omitted]
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
eth0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up eth0.
What am I doing wrong?
Ted
Details:
**********************************************************************
Create the template VM:
1. Create a dynamically-expanding 5GB disk named
base-etch-5gb.vdi. Create a new linux 2.6 virtual machine named
base-etch. Take defaults for everything else (including NAT for
networking).
2. Boot from the Debian 4.0 business-card iso and install the OS,
mainly from the network.
3. Finish initial installation and reboot to login prompt.
4. Log in as root, install openssh-server and dependences:
apt-get install openssh-server
5. Shut down, then set up ssh port forwarding:
VBoxManage setextradata "base-etch" \
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol" TCP
VBoxManage setextradata "base-etch" \
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort" 22
VBoxManage setextradata "base-etch" \
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort" 60022
6. Boot, log in remotely as root, install packages (and dependences):
apt-get install cvs gcc keychain linux-headers-2.6-k7 \
linux-kbuild-2.6.18 make ntp ntpdate sudo xbase-clients xless
7. Install Guest Additions (mount the Guest Additions iso then run
the script). Since there's no X, the X drivers won't get
installed.
8. Verify that everything is as it should be, then shut down. This is
now the template base-etch.
Create a clone:
1. Clone the 5GB disk base-etch-5gb.vdi (this takes a while):
VBoxManage clonevdi base-etch-5gb.vdi clonetest-5gb.vdi
2. Create a new linux 2.6 virtual machine named clonetest using the
new disk clonetest-5gb.vdi.
3. Boot the new machine. It looks just like the other machine but
eth0 won't come up.
**********************************************************************
On a Kubuntu Feisty host using VirtualBox 1.5 (and 1.4 before
with the same result) I created a Debian Etch guest using the default
(NAT) networking configuration. Then I cloned the disk and used it to
create a new virtual machine, but networking fails (eth0 just won't
come up).
On the original machine, starting networking reports, among other
stuff, that eth0 is up at 100MB, Full-Duplex.
On the cloned machine it just says:
Configuring network interfaces...done.
and all I have is lo. If I try ifup eth0, I get:
[boilerplate omitted]
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
eth0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up eth0.
What am I doing wrong?
Ted
Details:
**********************************************************************
Create the template VM:
1. Create a dynamically-expanding 5GB disk named
base-etch-5gb.vdi. Create a new linux 2.6 virtual machine named
base-etch. Take defaults for everything else (including NAT for
networking).
2. Boot from the Debian 4.0 business-card iso and install the OS,
mainly from the network.
3. Finish initial installation and reboot to login prompt.
4. Log in as root, install openssh-server and dependences:
apt-get install openssh-server
5. Shut down, then set up ssh port forwarding:
VBoxManage setextradata "base-etch" \
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol" TCP
VBoxManage setextradata "base-etch" \
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort" 22
VBoxManage setextradata "base-etch" \
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort" 60022
6. Boot, log in remotely as root, install packages (and dependences):
apt-get install cvs gcc keychain linux-headers-2.6-k7 \
linux-kbuild-2.6.18 make ntp ntpdate sudo xbase-clients xless
7. Install Guest Additions (mount the Guest Additions iso then run
the script). Since there's no X, the X drivers won't get
installed.
8. Verify that everything is as it should be, then shut down. This is
now the template base-etch.
Create a clone:
1. Clone the 5GB disk base-etch-5gb.vdi (this takes a while):
VBoxManage clonevdi base-etch-5gb.vdi clonetest-5gb.vdi
2. Create a new linux 2.6 virtual machine named clonetest using the
new disk clonetest-5gb.vdi.
3. Boot the new machine. It looks just like the other machine but
eth0 won't come up.
**********************************************************************