Hi Daniela and Gregory,

On Monday 09 November 2009, Gregory Nowak wrote:
> at the command/shell prompt, and ideally, consult the interfaces(5)
> man page on how to setup your system to configure the network using
> dhcp. If you have the following in /etc/network/interfaces, it should
> work for you:
>
> auto eth1
> iface eth1 inet dhcp
>
> Note that I gave eth1 above, and not eth0, because if running
> debian/ubuntu guests in virtualbox using udev, the first network
> interface tends to be configured as eth1, and not as eth0.

One additional note: That eth0 => ethX renaming problem is usually
related to a udev rule which can be found here:

  /etc/udev/rules.d/75-persistent-net-generator.rules

The purpose of this script is to rename the network interface if
the MAC address changes. This might be a good idea for real hardware
but that's not the intension for virtual machines. If you look
into this file you will probably find an exception rule for VMware.
A similar rule could be added for VirtualBox MAC addresses. Or
just remove that file as it isn't required for a VM. And make sure
that

  /etc/udev/rules.d/70-persistent-net.rules

which was created by the above script is removed as well.

To find out, which network interface is the correct one to use
in the guest you can do

  dmesg | grep eth

Kind regard,

Frank
-- 
Dr.-Ing. Frank Mehnert

Sitz der Gesellschaft:
Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten
Amtsgericht München: HRB 161028
Geschäftsführer: Thomas Schröder, Wolfgang Engels, Wolf Frenkel
Vorsitzender des Aufsichtsrates: Martin Häring

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
vbox-users mailing list
vbox-users@virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-users

Reply via email to