VmWare Workstation 12.5.9: how to share folders between VMs?

Page 1 of 2 12 LastLast

  1. Posts : 73
    Windows 10 LTSB
       #1

    VmWare Workstation 12.5.9: how to share folders between VMs?


    Hi all,

    I need to run a CMD command in a VM that would need the access of Windows folder from another VM.

    While it is easy to set host folders to be shared with the VM, how to share folders between VMs?

    Thank you.
      My Computer


  2. Posts : 11,247
    Windows / Linux : Arch Linux
       #2

    butterfly said:
    Hi all,

    I need to run a CMD command in a VM that would need the access of Windows folder from another VM.

    While it is easy to set host folders to be shared with the VM, how to share folders between VMs?

    Thank you.
    @butterfly


    Hi there
    1) use BRIDGED Networking on all the VM's.
    2) then just make folders on the VM's shareable
    3) then just use file explorer-->net to browse the VM's
    4) on the relevant VM's just from file explorer from within a VM just "connect network drive" which can then be any drives on visible machines on your LAN -- ensure network discovery is also enabled on the VM's as well.

    Note also you'll need to enable SMB1 on the Windows 10 machines and of course on the sharing give permissions to users who has access.

    Note Users on VM's don't need to have an account on the main HOST machine.

    If you use (at least in VMWare) NAT networking the VM's can access the external internet but won't be able to access other things on your network by virtue of the fact that the VM's will have a "virtual" IP address. So you need Bridged networking so the VM's act like physical machines with genuine IP addresses in your network.


    Cheers
    jimbo
      My Computer


  3. Posts : 913
    CP/M
       #3

    While it is easy to set host folders to be shared with the VM, how to share folders between VMs?
    1. Unlike the Vmware "Shared Folders" on Host machine, shared directory on Guest machine must be manually smb-shared; either via File Explorer - Properties - Sharing, or using net share command.
    2. Then it is necessary to manually connect to it from other Guest machines; either in File Explorer, or using net use command.
    3. Each Guest machine connected to Bridged network sees all other Guest and physical machines connected to the same network (including the Host machine).
    4. Each Guest machine connected to NAT network sees all other Guest machines connected to the same network (and the Host machine); in addition, it sees all other Guest and physical machines connected to Bridged network (in this case, use ip addresses or hosts file or dns server).
    (verb "sees" means here "can map shared directory on it")

    VmWare Workstation 12.5.9: how to share folders between VMs?-nat.png
    Last edited by muchomurka; 17 Nov 2019 at 19:20.
      My Computer


  4. Posts : 913
    CP/M
       #4

    VmWare Workstation 12.5.9: how to share folders between VMs?-celo.gif

    1) use BRIDGED Networking on all the VM's.
    Not necessary.

    Note also you'll need to enable SMB1 on the Windows 10 machines
    Not necessary, dangerous.

    If you use (at least in VMWare) NAT networking the VM's (...) won't be able to access other things on your network by virtue of the fact that the VM's will have a "virtual" IP address.
    Wrong.

    So you need Bridged networking so the VM's act like physical machines with genuine IP addresses in your network.
    Wrong.
    Last edited by muchomurka; 17 Nov 2019 at 19:59.
      My Computer


  5. Posts : 822
    Microsoft Windows 10 Pro 64-bit
       #5

    There is nothing special about virtual machine's, you treat them the same as any computer.

    Make sure they are on the same subnet as all the other computers on your network and follow any tutorial that you find for sharing folders.
      My Computer


  6. Posts : 913
    CP/M
       #6

    There is nothing special about virtual machine's, you treat them the same as any computer.
    One exception: you cannot connect from client at Bridged network to share on server at NAT network.
      My Computer


  7. Posts : 11,247
    Windows / Linux : Arch Linux
       #7

    muchomurka said:
    VmWare Workstation 12.5.9: how to share folders between VMs?-celo.gif


    Not necessary.


    Not necessary, dangerous.


    Wrong.


    Wrong.
    Hi there

    If your vm has an address say 176.16.18.1 and another machine has an address 192.169.1.27 how does the VM access it or the other way around.

    Bridged networking in VMware essentially is the same meaning as using an external switch in HYPER-V VM's -- you need that to communicate between the machines and the network -- otherwise the VM's are essentially "stand alone" which can connect to the internet but not to the internal network.

    Please show me a screenshot of NAT connecting to a machine ON A DIFFERENT HOST !!

    SMB1 is necessary if you have certan Linux VM's or Windows VM's older than W10. SMB1 doesn't itself have to be dangerous if you take the usual precautions on using Windows.

    Cheers
    jimbo
      My Computer


  8. Posts : 913
    CP/M
       #8

    Hi jimbo,

    all what I said in post #3 is tested/used many times by me.

    Bridged and NAT "networks" are in fact two network segments connected by NAT device - in this case by Vmware Host. You can take NAT device as "one-way router" (it is somewhat more complicated; NAT device changes/translates ip addresses in datagrams while transferring them from/to NAT segment); it allows to create tcp connections (or transfer udp requests/responses) from NAT segment to Bridged, but not vice versa (ip adresses at NAT segment are inaccessible from outside). In my picture in post #3 you can identify 3 different systems:

    192.168.183.133 - VM at NAT segment
    10.20.30.65 - VM at Bridged segment
    192.168.183.2 - Vmware Host at NAT segment (it has more interfaces, its Ethernet/Bridged address is 10.20.30.64).

    As you can see, there is no problem to show shares at 10.20.30.65 server from 192.168.183.133 client using net view command or traceroute through NAT device. Same for connecting to share by net use command.

    Systems on "NAT nerwork" are "masqeraded" by NAT device using its own external ip address so other systems see all connections from NAT segment as originating from NAT device itself.

    "Bridged network" is an extension of Ethernet segment for virtual machines so VMs and physical systems connected to them are mutually accessible. Of course, all of them, including physical ones, are accessible from NAT segment.

    There is a common problem on any segmented network with computer names; by default, hostname/ipaddress advertisements are limited to current segment only. That is why either ip addresses (as in the picture) or name service must be used.
    Last edited by muchomurka; 18 Nov 2019 at 10:05.
      My Computer


  9. Posts : 913
    CP/M
       #9

    Please show me a screenshot of NAT connecting to a machine ON A DIFFERENT HOST !!
    If the "different host" should be read as "VM connected to Bridged network" see the picture above. There is no way to distinguish between VM at Bridged network and Ethernet-connected physical system.

    (If you browse some webpage from VM behind NAT, in fact the connection must be established through two NATs - VM sends datagrams to Vmware Host (which acts as default gateway for NAT segment), Vmware Host resends them to your home default gateway and gateway resends them again to webserver.)

    SMB1 doesn't itself have to be dangerous if you take the usual precautions on using Windows.
    I don't think so; there is no 100% safe network (including all connected devices). But security/vulnerability of home routers, NAS devices, mobile phones etc is beyond the scope of this comment.
      My Computer


  10. Posts : 913
    CP/M
       #10

    SMB1 is necessary if you have certan Linux VM's or Windows VM's older than W10.
    Sorry but
    - not true for Mint
    - not true for Mac
    - not true for Win7.
    It can be true for some old NAS devices however see 1st post:
    "I need to run a CMD command in a VM that would need the access of Windows folder from another VM."

    VmWare Workstation 12.5.9: how to share folders between VMs?-1.png

    VmWare Workstation 12.5.9: how to share folders between VMs?-2.png

    Completely hijacked thread.. sigh
    Apologies to butterfly.
    Last edited by muchomurka; 18 Nov 2019 at 11:29.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:58.
Find Us




Windows 10 Forums