VMware Communities
grichner
Contributor
Contributor

vmplayer appliance has no network if mounted over nfs

Hi,

I've got the following problem:

I installed an OPSI-appliance on a local HD and networking over bridge works like promised...

BUT

If I mount this vmx containing directory with

<code> mount -t nfs -o soft,rw,timeo=21 nasserver02:/opsi-vm /data/opsi-vm </code>

and try to start the vmx with vmplayer over this NFS-mount

networking won't work...(eth0 no such device )

The Hosting-System is the same on both cases .

I tried this with multiple vmplayer versions and the behavior is alwarys the same ... no network when starting an nfs-mounted vmx-file

If someone could shed a light I would be thankful

Gregor Richner

Reply
0 Kudos
3 Replies
grichner
Contributor
Contributor

I solved this by myself:

on Guest I found an /dev/eth1 and no /dev/eth0

so I changed in the /etc/network/interfaces

eth0 to eth1

and voila it worked.

OR you can

edit the *.vmx something like

#ethernet0.addressType = "generated"

ethernet0.addressType = "static"

#ethernet0.generatedAddress = "00:0c:29:b6:31:48"

#ethernet0.generatedAddressOffset = "0"

ethernet0.Address = "00:0c:29:b6:31:48"

ethernet0.AddressOffset = "0"

but the last solution brings an error on other hosts:

0:0c:29:b6:31:48 is not an allowed static Ethernet address.

Invalid MAC address specified.

Failed to configure ethernet0.

Gregor Richner

Reply
0 Kudos
RDPetruska
Leadership
Leadership

Static MAC addresses need to be in the range 00:50:56:00:00:00 through 00:50:56:3F:FF:FF.

Or, add the line uuid.action = "keep" to the vmx file, then when the VM is started from a new location you will not get the prompt about moved or copied, and a new UUID and MAC address(es) will not get generated.

Reply
0 Kudos
grichner
Contributor
Contributor

Hi,

I tried the above mentioned the network-range and it works (no error on startup)

but no /dev/eth* shows up in guest.

my last working *.vmx looks like:

ethernet0.addressType = "generated"

#ethernet0.addressType = "static"

uuid.action = "keep"

#uuid.action = "create"

ethernet0.generatedAddress = "00:0c:29:b6:31:48"

ethernet0.generatedAddressOffset = "0"

#ethernet0.Address = "00:50:56:00:00:01"

#ethernet0.AddressOffset = "0"

with this you have to change the guests /etc/network/interfaces

eth0 to eth1

and restart the network (or appliance)

Gregor Richner

Reply
0 Kudos