View previous topic :: View next topic |
Author |
Message |
geta Apprentice
Joined: 10 May 2003 Posts: 153
|
Posted: Wed Jan 09, 2008 9:50 am Post subject: [solved] gentoo disk clone on virtualbox, udev eth0/eth1 |
|
|
Hello,
I'm placing this under hardware because virtualbox is basically "hardware", albeit being virtual hardware only
I've stumbled across an interesting problem in VirtualBox. I've created my base gentoo image on a virtual box machine. Everything works fine on that machine, including networking, emerging new versions, etc.
I then proceeded to create a hard disk image clone (VBoxManage clonevdi) and created a second virtual machine. I then booted off that "new" harddisk. There is one minor problem with this - it won't start the network properly. The message to "/etc/init.d/net.eth0 start" is "network interface eth0 does not exist".
Looking at dmesg reveals why:
"udev: renamed network interface eth0 to eth1"
Seems to be logical, udev writes down the MAC address of the cards it had discovered up to that point, and virtualbox creates a new MAC address for each new virtual machine. I know I could go editing the file /etc/udev/rules.d/70-persistent-net.rules (example 'echo "" > /etc/udev/rules.d/70-persistent-net.rules'), but is there a cleaner way to get this flowing - some master "clear udev device id cache" command or something similar?
Cheers,
geta _________________ geta - pronounced: "djetta"
Last edited by geta on Sun Jun 08, 2008 3:54 pm; edited 1 time in total |
|
Back to top |
|
|
phsdv Guru
Joined: 13 Mar 2005 Posts: 372 Location: Europe
|
|
Back to top |
|
|
geta Apprentice
Joined: 10 May 2003 Posts: 153
|
Posted: Sun Jun 08, 2008 3:55 pm Post subject: |
|
|
thanks alot _________________ geta - pronounced: "djetta" |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|