0

My machine has two ethernet ports. I want to make VMWare exclusively use Eth1.

I have a fresh install of Xubuntu Core 15.10 (amd64). I installed VMWare Workstation 12. It would not run, until I did this.

The VMWare virutal network editor will not run from the Workstation menu. When I go to terminal and run vmware-netcfg as root, it dies without error.

Can I manually do this in the Xubuntu Network Connections application? Any other ideas?

Thomas Ward
  • 78,878

1 Answers1

0

This answer addresses the new question by the OP, in comments:

After reading Thomas W's answer, I realized my question is worded wrong. I don't want to prohibit Eth1 being used by anything else. I want my virtual machines to use only eth1. Don't I need to set up vmnet2 to do that?
I would prefer my router to do DNS, NAT, etc. instead of my PC.

You would need the VMware Virtual Network editor tool, run with sudo, to make changes, and then restart the VMware service.

But essentially, you have to edit vmnet0 in the editor, and instruct it which network interface to be 'bridged' to. That will allow the VM to 'work' over the ethernet interface as if it were connected to the network directly. Note that this does not always work with all network interfaces and setups, and if this does not work correctly then you will need to use NAT or use an external ethernet adapter.


UPDATE - November 11, 2015.

In VMware Workstation 12, the networking configuration which addresses the bridged network is in /etc/vmware/networking.

Look for add_bridge_mapping lines. For all your physical interfaces, you may have multiple of these lines, like seen here:

add_bridge_mapping eth1 -1
add_bridge_mapping wlan0 -1
add_bridge_mapping eth0 0

Change these so that the one you want to have the bridged connection to has the 0, and the others have -1. I would emulate this format, with -1 being ahead of the 0 lines.

Untested, but this is really the changes that the Virtual Network Editor does.

Thomas Ward
  • 78,878