I've got a CentOS install that I've exported.
When I import and change the mac address (with VBoxManage modifyvm), I get a whinge that the Mac address has changed and no network.
Any ideas to get around this problem?
CentOS5.5 and change of Mac address
-
thewinelake
- Posts: 5
- Joined: 22. Jun 2011, 15:26
- Primary OS: Ubuntu other
- VBox Version: OSE Debian
- Guest OSses: Ubuntu, Centos
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: CentOS5.5 and change of Mac address
Remove /etc/udev/rules.d/70-persistent-net.rules and reboot. See if that works. The file might have a different name and location, I know this is taken from Debian based distro's, and CentOS is Red Hat based. Their structure in /etc are slightly different.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
thewinelake
- Posts: 5
- Joined: 22. Jun 2011, 15:26
- Primary OS: Ubuntu other
- VBox Version: OSE Debian
- Guest OSses: Ubuntu, Centos
Re: CentOS5.5 and change of Mac address
Yes, I've discovered that for Ubuntu, thanks, and it's great, but CentOS is very very different in this area.
I was slightly hoping that a CentOS guru might be about. Perhaps I should ask in a CentOS forum?
I was slightly hoping that a CentOS guru might be about. Perhaps I should ask in a CentOS forum?
-
fixedwheel
- Volunteer
- Posts: 1699
- Joined: 13. Sep 2008, 02:18
Re: CentOS5.5 and change of Mac address
edit the file /etc/sysconfig/network-scripts/ifcfg-eth0 to reflect the actual MAC address, then restart networking: /etc/init.d/network restart
-
thewinelake
- Posts: 5
- Joined: 22. Jun 2011, 15:26
- Primary OS: Ubuntu other
- VBox Version: OSE Debian
- Guest OSses: Ubuntu, Centos
Re: CentOS5.5 and change of Mac address
Yeah, that's what we thought would work, but it didn't!
-
fixedwheel
- Volunteer
- Posts: 1699
- Joined: 13. Sep 2008, 02:18
Re: CentOS5.5 and change of Mac address
sorry, i'm not a RHEL guru...
do you have the default gnome desktop installed?
there is: system -> administration -> network
first tab (devices) hit the edit button above the tabs
in the new window: go to tab "hardware device", there is a button to fetch the actual MAC, ok, and back in the first window: file -> save
thats what i do with my RHEL and CentOS
do you have the default gnome desktop installed?
there is: system -> administration -> network
first tab (devices) hit the edit button above the tabs
in the new window: go to tab "hardware device", there is a button to fetch the actual MAC, ok, and back in the first window: file -> save
thats what i do with my RHEL and CentOS
-
thewinelake
- Posts: 5
- Joined: 22. Jun 2011, 15:26
- Primary OS: Ubuntu other
- VBox Version: OSE Debian
- Guest OSses: Ubuntu, Centos
Re: CentOS5.5 and change of Mac address
Ah. Well, for a start we're trying to automate the process.
Secondly we're really after a guiless build.
But thanks anyway
Secondly we're really after a guiless build.
But thanks anyway
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: CentOS5.5 and change of Mac address
What we have at work, is something that I created myself. It's a script that we run after we've cloned a VM. Since the MAC address changes when you clone a VM (or create a new one), the network settings will be invalid when it boots. To avoid this, we start the VM on the console, log on, run the script with the IP address as parameter and it generates a new network config.
What is in the script is all the lines that would normally go into the network script and inputs the interface MAC address and IP address as variables. The MAC address is taken from parsing 'ifconfig eth0' so only the MAC address is left, the IP address it the variable taken from the parameter given to the script ($1 in this case, as it's the first parameter).
You can do the same. The script is very easy, you just need to know how to script in bash, use echo and how to parse command output with grep and cut.
What is in the script is all the lines that would normally go into the network script and inputs the interface MAC address and IP address as variables. The MAC address is taken from parsing 'ifconfig eth0' so only the MAC address is left, the IP address it the variable taken from the parameter given to the script ($1 in this case, as it's the first parameter).
You can do the same. The script is very easy, you just need to know how to script in bash, use echo and how to parse command output with grep and cut.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.