Modprobe prepare new IP address

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Modprobe prepare new IP address
# 1  
Old 03-30-2013
Modprobe prepare new IP address

Hello,

I m working on virtualization and saved the templates in virtual server. On creating the new Virtual machine or linux system, is there a way where during booting, it should prompt for new IP address, gateway, DNS and hostname?

Or is there any configuration in linux where we can modify booting properties so that it will prompt for new ip address, dns, gateway and hostname?

Thanks in advance.SmilieSmilieSmilieSmilie
# 2  
Old 03-30-2013
Not sure what you mean by "prompting for new" items. You can configure all named items when setting up the machine, or when logged in as root, or, you can use bootp/DHCP services to have the machine configure itself during boot time (except the host name, not sure).
If you "copied" a virtual machine, and want to configure the new one manually lest it resemble the old one, you need to run it standalone, i.e. without network access, for the first time to arrange for the parameters.

Last edited by RudiC; 03-30-2013 at 09:15 AM..
# 3  
Old 03-30-2013
Hello RudiC,

Thanks for reply, let me further elaborate:

Actually I installed RHEL on a server, i cloned it to another server, but its not prompting to create new ip address on boot, meaning still using same old MACADDR. So what I am requesting is, for the cloned RHEL, is there any configuration where ,I can 'reset' the configuration and should automatically prompt us to provide new ip address, gateway, dns, and hostname during boot, without manually modify the ifcfg-eth0 files.

This is what I am trying.
# 4  
Old 03-30-2013
I don't think you are "using same old MACADDR" as this is unique and defined by/on the NIC of the new machine, unless explicitly overwritten in rare cases.
Why the effort? Why not adapt the configuration files once and forever? Or, use DHCP! What the intention behind your request?
# 5  
Old 04-01-2013
rc.local

You may explore writing up something and having it in /etc/rc.local

You may have some wrapper which takes your input and sets the interface or populates the required network files.

But this approach is post boot/network address acquiring stage.
# 6  
Old 04-02-2013
A year or so ago I had to solve this exact problem for a 100+ VM deployment. You're not going to get around either configuring the template to not include the mac addresses, do DHCP and use a satellite to execute a script to save the current network config as the static config (bad idea, but it solves this particular problem) or what I ended up doing. You're probably going to need to script something yourself and have rc.local call it.

I ended up writing a script that would check to see if all the MAC addresses that were configured I could still find underneath /sys/class/net and if it didn't, it would enumerate the iterfaces that were there, prompt the user for a new hostname, IP addressing info, etc then rename the interfaces as appropriate restart the "network" and services.

One thing that caught me was that in RHEL6 (and possibly RHEL5) you have to disable the plymouth bootsplash in order to be able to accept input from the user at the console.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Rmmod,modprobe or dracut?

I am making few changes inside modprobe.d directory, now there are two options to make them effective 1) rmmod module, make changes and modprobe module 2) dracut -f I was wondering what's the difference between two, in terms of result, dracut makes kernel image again though and the other unplug... (0 Replies)
Discussion started by: nixhead
0 Replies

2. UNIX for Dummies Questions & Answers

Modprobe error message

Hi anyone knows what this error message means and how to fix it? igb 0000:01:00.0: enabling device (0000 -> 0002) igb 0000:01:00.0: PCI INT D -> GSI 16 (level, low) -> IRQ 16 igb 0000:01:00.0: setting latency timer to 64 igb 0000:01:00.0: Hardware Initialization Failure igb 0000:01:00.0: PCI... (1 Reply)
Discussion started by: h0ujun
1 Replies

3. Red Hat

modprobe: Can't locate module usbcore

Hello Linux forum! I am working on an older Red hat Linux version(kernel) 2.4.21 and I have compiled the kernel and I select it on startup, but I get the following errors: Mounting Local Filesystems: Modprobe: modprobe: Can't locate module usbcore modprobe: modprobe: Can't locate module udf... (1 Reply)
Discussion started by: mr.rhtuner
1 Replies

4. Red Hat

problems after modifying modprobe.conf

Hey Guys, I am having a problem after modifying the modprobe.conf. I added a few entries for the HBA drivers. When I noticed that it would not boot after this, I mounted a knoppix disk and removed those lines from the modprobe.conf. Now after removing those lines, it is still stuck at the same... (2 Replies)
Discussion started by: s ladd
2 Replies

5. UNIX for Dummies Questions & Answers

modprobe spi_bitbang results in error messages

Hi, I'm having a problem with the voyage linux distribution. I've been busy to include a CAN driver, which uses the SPI bus to communicate. While I was busy debugging the code, everything worked fine while performing a modprobe of the SPI driver to get it all running. But the... (1 Reply)
Discussion started by: nistap
1 Replies

6. UNIX for Dummies Questions & Answers

prepare a perl tuts

Hi I am working on perl for last 3 yrs and as part of knowledge sharing i have been told to conduct sessions with other teams.Only 1 session with basic details. My problem is i am not sure what all should i cover in this tut ? because i learned perl on my own. so i am not sure where to start... (4 Replies)
Discussion started by: zedex
4 Replies

7. Linux

Modprobe problem

I'm trying to get a watchdog module working on a server. (Watchdog timers are little hardware devices that reboot the system if it becomes unresponsive.) The module takes some options like the timeout til reboot, what power action to take, etc. I've set these options up in... (4 Replies)
Discussion started by: vertigo23
4 Replies

8. UNIX for Dummies Questions & Answers

how can I run something as root (modprobe, to be exact) every time computer starts.

I have the root password for my box, but I'm ignorant. So, every time I start my computer, I have to run this command /sbin/modprobe fuse as su, so that I can do other stuff (like mount remote directories locally using sshfs) I guess there's some file, like .bashrc, only it's applicable... (4 Replies)
Discussion started by: tphyahoo
4 Replies
Login or Register to Ask a Question