Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In ESX, I export OVF of my VM (configured as dhcp). Then In another ESX, I use "deploy OVF template" from file menu. My new VM appears working, except I could not change the IP address and hostname.

VM: GuestOS: CentOS5.4 + my application

In the new VM's summary tub, IP Addresses: (dhcp address) DNS : xx-a50055

I changed:

/etc/sysconfig/network /etc/sysconfig/network-scripts/ifcfg-eth0

I could not figure out what I have missed.

Thanks

share|improve this question
1  
Does it give you an error when you tried to change the IP address and host name? Can you paste the contents of the ifcfg-eth0 as well as the output of ifconfig -a? –  Rilindo Oct 5 '11 at 2:29
    
Is this Ubuntu or another Debian based version of Linux? –  Scott Warren Oct 5 '11 at 12:15

1 Answer 1

A deployed OVF often creates a new network interface, possibly ifcfg-eth1. This is because udev rules often bind MAC address to name of the NIC. You can verify this by having a look at /etc/udev/rules.d/-persistent-net.rules. I can recommend two solutions. You either delete /etc/udev/rules.d/-persistent-net.rules before you export, or you deploy ovf and work on /etc/sysconfig/network-scripts/ifcfg-eth1 (or whatever the new interface config file is called) and provide it a static IP.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.