VMware Communities
reply2sheilly
Contributor
Contributor

how to access host files and directories from gest .

i m using win xp as host os and red hat linux as guest os on vmware 5.x version.

i want to access my file and folders of host os but it is disabled . Could any one tell

me how to enable it ? or is there any other option for file transferring from host to

gest and vice versa....

0 Kudos
22 Replies
oreeh
Immortal
Immortal

FYI: this thread has been moved to the VMware Workstation forum.

Oliver

[url=http://www.vmware.com/community/ann.jspa?annID=84

]VMTN User Moderator[/url]

0 Kudos
oreeh
Immortal
Immortal

You can use the VMware shared folders - this requires the VMware tools to be installed and the shared folders be enabled in the VM config.

Or you can use a "normal" network share.

0 Kudos
reply2sheilly
Contributor
Contributor

how to get VM config. and which line i have to change ?

or how i can choose normal netwokrk share ( i m new to VM ware i don not know

these things ) kindly help me

0 Kudos
oreeh
Immortal
Immortal

The shared folders option is in the Virtual Machine Settings in the Options tab.

There's an option called "Shared Folders" - this has to be enabled.

If you want to use a normal network share simply share a drive / directory on your host and mount it in your VM.

The following command mounts a SMB share in the Linux system:

mount -t smbfs //HOST/test /mnt/ -o username=username

assuming that your Host is named HOST and the share is named test.

0 Kudos
reply2sheilly
Contributor
Contributor

does it require network connection between host and guest .

because the conection is not established bet them in my case.

i m unable to ping to host from guest or guest from host.

i had choosed host only networking.

0 Kudos
oreeh
Immortal
Immortal

Yes you need a network connections for this.

Host-only is ok.

Are there any firewalls blocking the traffic?

0 Kudos
Liz
Virtuoso
Virtuoso

I thought shared folders was done without networking - I must have not been paying attention

0 Kudos
oreeh
Immortal
Immortal

Shared folders don't require networking.

Nework shares require.

I assumed he asked about the latter

0 Kudos
reply2sheilly
Contributor
Contributor

i do not know what went wrong i had choosen host only configuration but

neither ssh or ftp or ping is working. even netstat -r n is not showing anything

in the guest machine.

0 Kudos
oreeh
Immortal
Immortal

Post the output of "ipconfig /all" from the host and the output of "ifconfig" from the guest.

0 Kudos
Liz
Virtuoso
Virtuoso

If you had a PC with IP 192.168.1.1 , you installed vmware, setup a guest with host only, you dont contact the host from the guest using 192.168.1.1, you use the specific host only network IP for your host PC.

Does your guest have an IP?

0 Kudos
seanh1986
Enthusiast
Enthusiast

I don't think he has VMware tools set up yet. After installing VMware tools it is fairly simple,

(to install VMware tools, see my post in this thread: http://www.vmware.com/community/thread.jspa?threadID=94944&tstart=30)

you can create a folder on your Host operating system and set it up to be a shared folder between host/guest... heres the process:

Power on the Virtual machine

Log-in as root

fter the guest Operating System has started, on the top, click:

“VM” --> “Settings” --> “Options” --> “Shared Folders”

... Click “Always enabled”

... Click “Add…”, click “Next” to continue

... Name the shared folder (e.g. SharedHostFolder)

... Browse to the location (Host O.S.) of the shared folder

... Click “Next” to continue

... Select “Enable this share”. Do not select read-only

... Click “Finish”. Click “OK”

For Linux guest O.S., the shared file location is:

“/mnt/hgfs/SharedFolderName”

Replace “SharedFolderName” with the shared folder name chosen

Now, you can share folders between host and guest.

0 Kudos
jimbo111
Contributor
Contributor

Hello,

I too am having this same problem. My host OS is Windows Vista and my guest OS is Ubuntu 7.04. After installing VMWare Tools on my guest OS (the vmhgfs module compiled successfully), I do not see anything relating to "shared folders" when you go to VM -> Settings -> Options for the guest OS. All I get is General, Power, Snapshots, Permissions, Startup/Shutdown, Advanced....but no option regarding shared folders. How do you make this option appear? I'm running VMWare Server 1.0.3 build-44356 networking between host and guest is set-up as NAT.

Any help is appreciated, thanks. Smiley Wink

0 Kudos
oreeh
Immortal
Immortal

VMware Server doesn't support VMware shared folders.

You have to use a network share instead.

0 Kudos
jimbo111
Contributor
Contributor

oh.........oooops

So, in that case, to set up networking between the windows host and the linux guest, would I need to change the networking type to "Host-only" instead of NAT? And then would I need to assign IP addresses to both host and guest? I saw a previous post where you outlined these steps:

"If you want to use a normal network share simply share a drive / directory on your host and mount it in your VM.

The following command mounts a SMB share in the Linux system:

mount -t smbfs //HOST/test /mnt/ -o username=username

assuming that your Host is named HOST and the share is named test."

Does this mean I need to install Samba on the Linux guest? Sorry for all these questions but I'm a bit new to this (in case you were wondering....). Could you give me the steps please to set up this networking between windows host and linux guest so that I can share files between the two?......Thanks again for your help in this. Smiley Wink

0 Kudos
oreeh
Immortal
Immortal

It doesn't matter if you use NAT or host-only.

In both cases the host is reachable from the guest.

Yes you need at least the samba client in the Linux guest.

If you only want to transfer some files now and then you can also use FTP or SCP for this.

0 Kudos
reply2sheilly
Contributor
Contributor

i think for all the works we need network connection between host and guest . but i am unable to get that

my host os that is windows XP is showing " IP adress clash between " host(xp) and guest (linux).

could any one suggest me how to resolve it ?

the following is the out put ipconfig and netstat commands from host os(xp)

C:\>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : volga

Primary Dns Suffix . . . . . . . :

Node Type . . . . . . . . . . . . : Unknown

IP Routing Enabled. . . . . . . . : No

WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter VMware Network Adapter VMnet2:

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for

VMnet2

Physical Address. . . . . . . . . : 00-50-56-C0-00-02

Dhcp Enabled. . . . . . . . . . . : No

IP Address. . . . . . . . . . . . : 192.168.67.1

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . :

Ethernet adapter VMware Network Adapter VMnet8:

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for

VMnet8

Physical Address. . . . . . . . . : 00-50-56-C0-00-08

Dhcp Enabled. . . . . . . . . . . : No

IP Address. . . . . . . . . . . . : 192.168.136.1

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . :

Ethernet adapter VMware Network Adapter VMnet1:

Connection-specific DNS Suffix . :

Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for

VMnet1

Physical Address. . . . . . . . . : 00-50-56-C0-00-01

Dhcp Enabled. . . . . . . . . . . : No

IP Address. . . . . . . . . . . . : 192.168.38.1

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . :

\############################################################################################################

C:\>netstat -rn

Route Table

===========================================================================

Interface List

0x1 ........................... MS TCP Loopback interface

0x2 ...00 50 56 c0 00 02 ...... VMware Virtual Ethernet Adapter for VMnet2

0x3 ...00 50 56 c0 00 08 ...... VMware Virtual Ethernet Adapter for VMnet8

0x4 ...00 50 56 c0 00 01 ...... VMware Virtual Ethernet Adapter for VMnet1

===========================================================================

===========================================================================

Active Routes:

Network Destination Netmask Gateway Interface Metric

127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1

192.168.38.0 255.255.255.0 192.168.38.1 192.168.38.1 20

192.168.38.1 255.255.255.255 127.0.0.1 127.0.0.1 20

192.168.38.255 255.255.255.255 192.168.38.1 192.168.38.1 20

192.168.67.0 255.255.255.0 192.168.67.1 192.168.67.1 20

192.168.67.1 255.255.255.255 127.0.0.1 127.0.0.1 20

192.168.67.255 255.255.255.255 192.168.67.1 192.168.67.1 20

192.168.136.0 255.255.255.0 192.168.136.1 192.168.136.1 20

192.168.136.1 255.255.255.255 127.0.0.1 127.0.0.1 20

192.168.136.255 255.255.255.255 192.168.136.1 192.168.136.1 20

224.0.0.0 240.0.0.0 192.168.38.1 192.168.38.1 20

224.0.0.0 240.0.0.0 192.168.67.1 192.168.67.1 20

224.0.0.0 240.0.0.0 192.168.136.1 192.168.136.1 20

255.255.255.255 255.255.255.255 192.168.38.1 192.168.38.1 1

255.255.255.255 255.255.255.255 192.168.67.1 192.168.67.1 1

255.255.255.255 255.255.255.255 192.168.136.1 192.168.136.1 1

===========================================================================

Persistent Routes:

None

0 Kudos
oreeh
Immortal
Immortal

post the IP configuration of the guest too

0 Kudos
reply2sheilly
Contributor
Contributor

hi,

following is the output of netstat and ifconfig of my guest system......

\[root@niharika etc]$ netstat -rn

Kernel IP routing table

Destination Gateway Genmask Flags MSS Window irtt Iface

192.168.38.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0

127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

\[root@niharika etc]$ ifconfig -a

eth0 Link encap:Ethernet HWaddr 00:0C:29:F2:B5:E1

inet addr:192.168.38.1 Bcast:192.168.38.255 Mask:255.255.255.0

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:26 errors:0 dropped:0 overruns:0 frame:0

TX packets:18 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:100

RX bytes:3538 (3.4 Kb) TX bytes:2440 (1.8 GiB)

Interrupt:10 Base address :0x10a4

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope:Host

UP LOOPBACK RUNNING MTU:16436 Metric:1

RX packets:86 errors:0 dropped:0 overruns:0 frame:0

TX packets:86 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:7004 (6.8 Kb) TX bytes:7004 (6.8 Kb)

0 Kudos