VMware Cloud Community
sravan1990
Contributor
Contributor

Unable to configure IP address and subnet mask after deploying .ovf file from v-sphere client

Im probably new to vmware so please bear with me .

Im trying to create a new virtual appliance on a windows 2003 server . I copied the .vmdk and .vmx files from an existing virtual appliance from its datastore. Then I used Converter standalone Client to create an .ovf file from the .vmdk . After the .ovf is successfully created I deployed it in vsphere client using the "Deploy ovf " option. The virtual appliance is successfully created but the problem is Im not able to configure the network settings
-> Im unable to access the eth0 file.

-> Im not able to set the Ip address

-> " ifconfig " returns an error

->  Subnet mask and inet address are not set

  Could someone give me the reasion for this error and possible solution. How do I overcome this problem . How can I assign the ip address to a virtual appliance . Im using a RHEL based server .
Are there alternate ways I can edit the network config.

I have attached the screen shot of the console .

--Thanks in advance.

Reply
0 Kudos
5 Replies
nielse
Expert
Expert

There has probably been a MAC change and you now have 2 network cards in the OS (atleast that's what it will think).

Can you check the following things and give screenshots:

dmesg | grep eth

Also could you check the content of /etc/udev/rules.d/70-persistent-net.rules

There is a big chance there are 2 devices in this file, remove both entries and reboot the server. This might already resolve the issue.

@nielsengelen - http://foonet.be - VCP4/5
sravan1990
Contributor
Contributor

Hi niels ,

    

     Here are the screen shots you asked for . There are 3 network cards. I dont know if there are 2 devices .

-- Screen Shot 2013-06-27 at 4.00.55 PM.pngScreen Shot 2013-06-27 at 3.57.23 PM.pngThanks

Reply
0 Kudos
nielse
Expert
Expert

As you can see eth0 is renamed into rename2 and then eth2

You should compare the lines in the udev file with the MAC addresses in "edit settings" on the VM. Make sure they are correct:

NIC1 = eth0

NIC2 = eth1

etc

As mentioned you can clear the 70-net... file and it should fill up again after a reboot.

@nielsengelen - http://foonet.be - VCP4/5
Reply
0 Kudos
sravan1990
Contributor
Contributor

Thnaks niels did that but that didnt work ............
while searching on google i found that there are tools which can be used for such things can we use them in this case ????

Reply
0 Kudos
nielse
Expert
Expert

Can you do the following things and provide screenshots:

dmesg | grep eth

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

cat /etc/sysconfig/network-scripts/ifcfg-eth1

cat /etc/sysconfig/network-scripts/ifcfg-eth2

Make sure that the MAC addresses in these configs matches the network cards you can see under "edit settings" (maybe provide screenshots of those as well).

@nielsengelen - http://foonet.be - VCP4/5
Reply
0 Kudos