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?

5
  • 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?
    – LambdaFox
    Nov 4, 2015 at 16:03
  • I would prefer my router to do DNS, NAT, etc. instead of my PC.
    – LambdaFox
    Nov 4, 2015 at 16:07
  • I did find this suggestion for vmware 6, but the storage locations are differnt from vmware 12. forum.linuxcareer.com/threads/…
    – LambdaFox
    Nov 6, 2015 at 14:29
  • Just so anyone who has the same problem will know... I tried sudo, pkexec and sudo su to run both usr/bin/vmware-netcfg and usr/lib/vmware/bin/vmware-netcfg which I found with catfish.
    – LambdaFox
    Nov 8, 2015 at 18:53
  • I edited this shell script file in usr/bin/vmwre-netcfg and added export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libglibmm-2.4.so.1, but that did not change the problem.
    – LambdaFox
    Nov 8, 2015 at 19:09

1 Answer 1

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.

5
  • which brings me back to the reason for my post... I cannot get it to run.
    – LambdaFox
    Nov 5, 2015 at 14:24
  • @NJRandy I'm digging into my vmnet0 configs on my system and will provide a CLI way to edit... but no guarantees it'll work 100%
    – Thomas Ward
    Nov 5, 2015 at 14:24
  • In network settings, vwmare created by default: vmnet1 and vmnet8. vmnet1 has a generated MAC address, and a fixed IP address of 172.16.227.1, netmask 255.255.255.0, gateway 0.0.0.0. MTU is set to automatic. All users may access is ticked. Neither 802.1x nor dcb nor IP6 is enabled. vmnet8 has exactly the same settings, but the IP is 192.168.46.1.
    – LambdaFox
    Nov 6, 2015 at 13:56
  • @NJRandy The specifics of each aren't relevant, nor is IPv6 (I don't think it's supported in VMware virtual networking). I'm still hunting manual modification though...
    – Thomas Ward
    Nov 6, 2015 at 16:02
  • Contents of that file: VERSION=1,0 answer VNET_1_DHCP yes answer VNET_1_DHCP_CFG_HASH 0AFA20BCAA2E41DD7AE3F6B6E0E0BD6B04F0B047 answer VNET_1_HOSTONLY_NETMASK 255.255.255.0 answer VNET_1_HOSTONLY_SUBNET 172.16.227.0 answer VNET_1_VIRTUAL_ADAPTER yes answer VNET_8_DHCP yes answer VNET_8_DHCP_CFG_HASH 0576041D769AC244FC9934E0FCFD90D9EC86DC1C answer VNET_8_HOSTONLY_NETMASK 255.255.255.0 answer VNET_8_HOSTONLY_SUBNET 192.168.46.0 answer VNET_8_NAT yes answer VNET_8_VIRTUAL_ADAPTER yes
    – LambdaFox
    Nov 18, 2015 at 16:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .