Virtual Networks With VMWare Player - Linux
Virtual Networks With VMWare Player - Linux
Virtual Networks With VMWare Player - Linux
and
CONFIGURATION DIAGRAM
upstream
towards the
Internet
Real
network
adapter
in the
host
HOST
VM 1
VM 2
VM 3
VM 4
Reference:
http://media.techtarget.com/searchNetworking/downloads/Book_VMware_Chapter_8.pdf
Then, use the left mouse button to click on "Virtual Machine Settings" on the popup context
menu.
C
li
c
k
o
n
t
h
e
"
N
e
xt
"
b
u
tt
o
n
.
The new network adapter will now be displayed in the "Virtual Machine Settings" box:
The operating system of the virtual machine treats the all of the virtual network
adapters as if they were real items of hardware:
Host computer
Virtual Machine
"Shared Folder(s)"
"Shared Folders" Virtual machine sees the
= host folder access
Gateway/Router
Shared Folder(s) at
from virtual machine
/mnt/hgfs/
File system of virtual machine
Virtual network adapter is not used
does not indicate that the
folder is shared.
The host computer has no access to the file system of virtual machine.
Host computer
Virtual Machine
Internet access
"NAT" router
from virtual machine
with NAT service
Optional host folder access
with DHCP server
Virtual machine
from virtual machine
with upstream routing
communications to
if configured through
to the Internet
LAN and Internet
Samba/SMB file sharing
with LAN switching between using the virtual LAN
or Network File System (NFS)
virtual machines
network adapter.
with LAN switching between
the host and virtual machines
The "NAT" router will work fine whether or not the host is attached to it.
To connect or disconnect the host computer from the "NAT" router, you can
enable or disable the "VMware Network Adapter VMnet8" virtual Ethernet adapter.
If you disable this network adapter, then the host will be unable to share files with any of the
virtual machines, while the virtual machines can still shared files with each each other.
Host computer
Internet access
from virtual machine
Optional host folder access
from virtual machine
with SAMBA/SMB file sharing
or Network File System(NFS)
Virtual Machine
"Bridged" bridge
provides "TEE"
to a real physical
physical network
adapter but does not
switch between
virtual machines
Virtual machine
communicates to the
Bridged bridge
using the virtual LAN
adapter.
The real physical network provides DHCP services, upstream routing to the Internet, NAT
services, LAN switching between the host and virtual machines, and LAN switching between
virtual machines.
In the Bridged bridge configuration, the host cannot be disconnected from the Bridged
bridge. From any Linux host on your local area network, all files on the virtual machines that
connected to the virtual "Bridged" bridge and that are shared by means of Samba (SMB)
can be accessed by means of the procedure called
Using IP Addresses to Access Folders that are Shared by Samba (SMB) or Network File
System (NFS)
(which is located at the end of this document).
You can also use this procedure from inside the virtual machines to access Samba or NFSshared files on the host or on other hosts on your real physical LAN network.
PROBLEMS WITH "UBUNTU 10.10" HOSTS THAT HAVE BOTH A WIRED NETWORK
ADAPTER AND A WIRELESS NETWORK ADAPTER:
When running "VMware Player 3" on an Ubuntu 10.10 host, if we had both a wired Ethernet
adapter and a WiFi adapter installed on the host, both Windows and Linux virtual machines
with "bridged" network adapters failed to make an upstream connection to the Internet by
acquiring an IP address through DHCP.
When running "VMware Player 3" on an Ubuntu 10.10 host, if we only had a wired Ethernet
adapter installed on the host, both Windows and Linux virtual machines with "bridged"
network adapters were able to make a connection to the Internet. Our Ubuntu virtual
machines were able to automatically acquire a DHCP IP address and made a connection
upstream to the Internet. However, we had to use the above workaround for "Windows 7.."
virtual machines.
Host computer
Virtual Machine
Virtual machine
communicates
with the
Host-Only Router
or other virtual
machines using
the virtual
LAN adapter
If you disable the "VMware Network Adapter for VMnet1", then "VMnet1" becomes an
"Internal Network" switch with connectivity between virtual machines, but with no connection
to the host.
In the "Host-Only" configuration, there is a LAN switching connection between the host and
the "Host-only" virtual router: The virtual "VMware Virtual Ethernet Adapter for VMnet1" that
VMware provides for the host can be enabled or disabled from the "Network Connections"
applet box of the Windows "Control Panel".
If you disable the "VMware Network Adapter for VMnet1", then "VMnet1" becomes an
"Internal Network" switch with connectivity between virtual machines, no connection to the
host for virtual machines, and no connection to the Internet for virtual machines.
STEP-BY-STEP PROCEDURE:
Step 1:
Go to the computer where the files or folders are being shared from.
Step 2:
Open a terminal window:
Step 3:
If the computer is a Windows computer, type in
ipconfig /all
and press the enter key.
If the computer is a Linux computer, type in
ifconfig
and press the enter key:
Step 4:
Locate the IP address of the real network adapter and write it down.
In our example, the IP address is
127.0.0.1
Step 5:
Go to the virtual or real computer from which you wish to access the files on the
source computer and click on open a Nautilus file management window if this
computer is running Linux.
If the virtual or real computer from which you wish to access the files on the
source computer is a Ubuntu Linux computer, click on Places and then click on
Computer:
Step 6:
If you now have a Windows Explorer, My Computer or Computer windows,
go to it's address box.
If you now have a Nautilus window, click on Go. Then click on Location:
If the virtual or real computer from which you wish to access the files is a
Windows computer, open a Windows Explorer, Computer, or My
Computer window instead of a Nautilus window.
Step 7:
In the address box, type in
smb://<ip address of destination>
and then press the enter key of the keyboard.
In our example, we type in
smb://10.0.0.34
and then we pressed the enter key:
Step 8:
All of the shared folders on the target will be displayed:
Note that Ubuntu refers to remote files that are shared via Samba(SMB
are called Windows shares.
Please do not confuse these shared folders with those shared by means of the
Shared Folders gateway/router. These shared folders are shared by means of
standard sharing mechanisms such as Samba (SMB) and Network File
System (NFS) and utilize the virtual Ethernet adapter(s) that is provided to the
virtual machine by Vmware Player. The Shared Folders gateway/router
provides fo one-way file sharing that is proprietary to the Vmware Player
software applicationit can only share folders that are located on the host
computer.