lost and found ( for me ? )

VMware player 3.1 : create a custom network and assign it to a VM


VMware player : 3.1.4 build-385536
Host OS : Windows7 64bit


VMware plyaer 3.1 doesn’t provide vmnetcfg command which enables you to create custom networks like vmnet1 , vmnet2 etc :(
You can assign bridged ( VMnet0 ) or host-only ( VMnet1 ) or natted network (VMnet8) to a VM by default installation.

You however can create custom networks by installing VMware player by following procedures.
Please see my previous post.
http://lost-and-found-narihiro.blogspot.com/2011/07/how-to-use-vmnetcfg-on-vmware-player-31.html

[ create custom networks and assign it to VMs ]

1. create custom networks with vmnetcfg

run "C:\Program Files (x86)\VMware\VMware Player\vmnetcfg.exe"

activate VMnet 1 ( to - 7 ) virtual host adapter.

2. prepare a VM and assign a custom VMnet to a VM

I prepared Scientific Linux 6.1 as a VM. and assigned three vNICs to that VM.
You can not assign custom networks ( VMnet2 to VMnet7 ) via GUI.


So you need to edit vmx file by text editor.

edit vmx file like below.
#ethernet1.connectionType = "hostonly"
ethernet1.connectionType = "custom"
ethernet1.vnet = "VMnet1"
#ethernet2.connectionType = "hostonly"
ethernet2.connectionType = "custom"
ethernet2.vnet = "VMnet2"


3. run vmware player and check virtual machine settings.




4. fly VM

an output of ifconfig on VM.
- VMnet0 ( bridge )
[root@sl6-1 ~]# ifconfig eth0 | grep "inet addr"
         inet addr:192.168.11.200  Bcast:192.168.11.255  Mask:255.255.255.0

- VMnet1 ( custom )

[root@sl6-1 ~]# ifconfig eth1 | grep "inet addr"
         inet addr:192.168.19.128  Bcast:192.168.19.255  Mask:255.255.255.0

- VMnet2 ( custom )

[root@sl6-1 ~]# ifconfig eth2 | grep "inet addr"
         inet addr:192.168.92.128  Bcast:192.168.92.255  Mask:255.255.255.0

I can assign VMnet0 (bridge) , VMnet1 and VMnet2 to the VM :)

1 comment:

  1. As soon as a careful browse I thought it was really enlightening.
    I take pleasure in you taking the time and effort to put this blog post together.
    I once again discover me personally spending way to much time both reading and leaving comments.
    VMware Player

    ReplyDelete

Note: Only a member of this blog may post a comment.