Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Let me know if this is not the correct forum for this post or not.
We've been having issues cloning RHEL v5 and v6 from two environments in vSphere. One version of vSphere is our prod environment (v4.1.0) and one is test (5.5.0). I used to think that might be the issue, however we are able to clone Windows servers with no issues whatsoever.
Some of the issues that we are having are duplicate MAC addresses and not being able to assign an IP address.
I've resarched and found recommendations to delete the NIC before doing the conversion process.
Other things that I have found online are to delete and entries for the NIC under /etc/udev/rules.d and
I thought I found a website that said to edit various files under /etc/ssh, however I can't find it at this time.
I was wondering what others are doing to make this process as painless as possible.
Make sure all places where you might have hardcoded IP addresses are changed such as /etc/sysconfig/iptables, /etc/resolv.conf, /etc/ntp.conf, etc. You might want to make a script that uses egrep and sed to find all occurrences of certain values (e.g. host IP, DNS IP, NTP server IP, subnet, etc.) and replace with new ones.
Let me know if this is not the correct forum for this post or not.
We've been having issues cloning RHEL v5 and v6 from two environments in vSphere. One version of vSphere is our prod environment (v4.1.0) and one is test (5.5.0). I used to think that might be the issue, however we are able to clone Windows servers with no issues whatsoever.
Some of the issues that we are having are duplicate MAC addresses and not being able to assign an IP address.
I've resarched and found recommendations to delete the NIC before doing the conversion process.
Other things that I have found online are to delete and entries for the NIC under /etc/udev/rules.d and
I thought I found a website that said to edit various files under /etc/ssh, however I can't find it at this time.
I was wondering what others are doing to make this process as painless as possible.
thanks
IDK if you can do this in VMware or not, but try exporting a template machine as a virtual appliance. When you go to import it, you should be asked if you want to reinitialize the MAC. Pretty sure Workstation or Studio will let you do that, not sure if the machines will be compatible.
Let me know if this is not the correct forum for this post or not.
We've been having issues cloning RHEL v5 and v6 from two environments in vSphere. One version of vSphere is our prod environment (v4.1.0) and one is test (5.5.0). I used to think that might be the issue, however we are able to clone Windows servers with no issues whatsoever.
Some of the issues that we are having are duplicate MAC addresses and not being able to assign an IP address.
I've resarched and found recommendations to delete the NIC before doing the conversion process.
Other things that I have found online are to delete and entries for the NIC under /etc/udev/rules.d and
I thought I found a website that said to edit various files under /etc/ssh, however I can't find it at this time.
I was wondering what others are doing to make this process as painless as possible.
thanks
After you clone the VM login and...
1) rm -rf /etc/ssh/ssh_host_*
2) Edit the hostname in /etc/sysconfig/network
3) rm -rf /etc/udev/rules.d/70-*
4) Remove the HWADDR line and UUID line from /etc/sysconfig/network-scripts/ifcfg-eth* file(s). Also change the IP address in this/these files
5) If you'd like, delete all the logs from /var/log and build logs from /root
6) If you'd like to go through setup again then: touch /.unconfigured
7) Always good to do an SELinux relabel: touch /.autorelabel
Then Reboot the VM. This should be good enough. The best practice is to set up a VM as a "template" so that way you only have to do the above steps once.
Does anything need to change, be removed or added for RHEL 7.1?
After you clone the VM login and...
1) rm -rf /etc/ssh/ssh_host_*
2) Edit the hostname in /etc/sysconfig/network
3) rm -rf /etc/udev/rules.d/70-*
4) Remove the HWADDR line and UUID line from /etc/sysconfig/network-scripts/ifcfg-eth* file(s). Also change the IP address in this/these files
5) If you'd like, delete all the logs from /var/log and build logs from /root
6) If you'd like to go through setup again then: touch /.unconfigured
7) Always good to do an SELinux relabel: touch /.autorelabel
Then Reboot the VM. This should be good enough. The best practice is to set up a VM as a "template" so that way you only have to do the above steps once.
--C
Also do you know if the above changes also modify IP/Host info for the following services as well: SRM/ Siteminder/ TC Server/ HTTP/ DB Connect Strings/ Puppet/ DynaTrace/ Log Insight/ HPOV/ HPOM/ NetBack Up/Application.properties/Hibernat.properties?
If not would indicate what additional files need to be updated?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.