Zaki Mirza’s Blog


… About software and beyond!

Mounting Windows shared folders in Fedora 6 under vmware

I was lately asked by some taking the Operating systems course for mounting/accessing windows shared folders inside linux installation under vmware virtual machine so here it is. (btw, if you are new to this check out the links i have put in this post for further reference)

Note: this is not a linux/windows security related post. Infact this post might create some security hazards in your enviornment. I do not take the responsibility for any kind of demage since putting security considerations in this problem is out of scope. I expect that these steps are applied in isolated enviornment(no-internet, or atleast firewalled internet). Sharing folders under windows may create security issues.

My Enviornment:

Windows XP sp2.
VMWare version 5.5.1 with vmware tools installed.
Fedora Core 6 Linux (default settings for installation)
Virtual Machine Custom settings (LSI Logic SCSI Harddrive. BusLogic SCSI is not detected by Fedora 6 during installation. either switch it IDE when asked between IDE and SCSI or to LSI Logic SCSI. this is set when creating a new virtual machine. instead of selecting “typical” option, select “custom” option and when asked about SCSI type click in LSI logic SCSI)

I am assuming that you will have the above enviornment or close to it. I also assume that you have not tempered with VMware settings since you installed it. because basically you get two virtual network connections when you install vmware. (to verify, go to control panel>network connections. Vmnet01 and VMnet08 will be connected and firewalled.) VMnet8 is the one we are going to use because it utilizes NAT which you can eventually use to expose linux installation inside your virtual machine to the internet connection in windows XP. To do additional tweaks or settings, vmware provides your with a virtual network editor tool (inside vmware software , edit>virtual network settings) where you can modify DHCP, NAT and other settings. do not temper with them if you have no idea what they mean.

Now on to settings up a shared folder inside windows. Create a folder on you desktop and call it anything (lets call it LINUXSHARE for now). Right click on it and select properties. In the sharing properties, enable sharing for it and check “allow network users to change my files”. Go to control panel>network connections and right click on vmnet8 connection and click properties. enable “show icon in notification area when connected” and click ok. that will show the network’s icon in the notification area of your task bar. right click on it and select “status”. click on support tab and note the IP address alloted to you by the vmnet DHCP server. mine is Yours will be similar as well. DHCP server will allocate IP address to all network connections in this virtual network.

Fire up vmware, and on the home page of your linux installation before starting the virtual machine double click on ethernet icon. In the network connection option, select the “custom” radio button and select vmnet8(NAT) from it. This is the same network that our windows XP is connected to and which is being controllled by the DHCP server.

Start the virtual machine. Login to linux. Hopefully the ethernet card will be detected by your linux distribution and will connect it too. easiest way to connect to the LINUXSHARE folder now in fedora 6 is, goto Places>Network servers. A file browser will open with “busy” icon on your mouse. Thats ok. We’re not dealing with that. Click on File>Connect To Server in that window. A dialog box will apear. in “Service type” select “windows share”. (see picture below)

windows share mounting

Click Connect. If you are lucky, this will take you to your windows shared folder and create a mount point on you desktop as well which will retain between bootups (cool ainnit?:) now you can use this folder in windows and linux both to transfer files.

Another way to do this is by using “mount” (mounting) command under root access. to do that, fireup the terminal. (assuming you have the root access, if not run the “su” command and supply the root password. you will get access of root, if you do not have it, contact your network admin but since we’re installing under vmware i hope you* are the admin). in the terminal type the command

mkdir Desktop/linuxshare
mount -t cifs // Desktop/linuxshare

comment by Bogdan:
Thanks, mounted xp’s shared folder from Topologilinux (cool thing, you may want to try it out). However, for slackware-based Topologilinux the mount command is slightly different:

mount -t smbfs // Desktop/linuxshare

the only changed thing is from ‘cifs’ to ’smbfs’ filesystem type.

(the above command is case-sensitive. also, use the IP address alloted to your window’s side of the network. the command also requires root access). this command will mount your shared drive on the folder on desktop called linuxshare which is now accessible on both windows and linux. To automate this task on bootup (so that you dont have to run this command over and over again) search the internet for details about “/etc/fstab” file and how to use it to automount drives and network shared folders. The earlier method i mentioned using the GUI is lot more easier though and will not require you to repeat steps everytime you boot your linux distribution (atleast in fedora 6).

If you have any problems feel free to ask. I would highly recommend anyone who is doing operating system assignments in linux to install linux directly on your system and not through a virtual machine and get used to it. Since we’re born with windows we find linux very hard but infact that is really not the case. Heck you are CS students and you think a couple of commands are a pain :s. Here are some good tutorials on linux file system (one of the biggest set back for windows users when shifting to linux). Required is a good habit to learn by one’s ownself and have a sense to explore and conquer.  Linux is a stable, secure, robust and highly efficient operating system which is growing in market every minute. It is used by highend servers and is slowly but steadily moving towards desktops (though desktops was never its target audience. But hey im not gonna start that religious debate). Best of all, its opensource and free. It lets you surf the net securely. You can have all you chat sessions in linux. You can access all your office documents in linux. It is a very fertile programming learning enviornment. And it gives you a sense of satisfaction that you are not using a stolen property. and btw commands are not as bad as people think it is. once you start using them your productivity increases manyfolds. (yes, citations needed) 

ah i know im using windows too right now … im in a serious shifting process to linux enviornment. Just too stuck on some windows application development projects. Im also planning to shift to java for a while and linux development in general. Hope i get to do that soon. (this has nothing to do with microsoft btw. microsoft is also a great company with great minds. I need to scale out and explore more frontiers in computing. I need a more free enviornment. Linux is a huge market and is challenging. Thats what attracts me. Most of all, Ill use windows when i can afford it. )

Till then, happy exploring linux and happy coding. Feel free to drop in feedback or queries about this post so that i can add more scenerios and more people can get advantage of this post.


Filed under: linux, Troubleshooter, windows

19 Responses

  1. interesting…although i use VMWare player- which is free and lightweight. But of course VMWare player cannot share folders this way…as far as i am aware..and you cannot create your VM’s as well. 😦

  2. zakimirza says:

    im using VMCreator i guess…. 5.5. It comes with VMPlayer and VM Virtual Network editor…

  3. sudhir says:

    Hi I am using vmware server ver 1.0.2 on windows xp sp2, and installed Fedora core 5 on vmware. I gone thorugh your article and able to create the share, however the issue is its asking for authentication, and saying “You much login to access root@ domain WORKGROUP” Now what username/password and domain I need to give , my windows domain username/password or what? I tried with root password but its not working.

    Please help I am a total newbie in linux and want to learn it


  4. zakimirza says:

    Hey Sudhir…
    Are you using the commandline or GUI based approach? either way, my intuition says that you windows folders are right protected … (you login to your windows using a password and your folders are rights protected). Try giving it the username you have on windows and the password that you give. If you can give me more details about your windows setup maybe i can think about it. (btw try giving it blank password, just hit enter – happens if you are using the console based approach when you mount the shared folder it asks you for password, just hit enter.)

  5. Cal AIX Guy says:

    Thanks for showing me how to use the Places -> Network servers.

  6. Bogdan says:

    Thanks, mounted xp’s shared folder from Topologilinux (cool thing, you may want to try it out). However, for slackware-based Topologilinux the mount command is slightly different:

    mount -t smbfs // Desktop/linuxshare

    the only changed thing is from ‘cifs’ to ‘smbfs’ filesystem type.

  7. […] Mounting Windows shared folders in Fedora 6 under VMWare. (2) Virtual Hard disk drive […]

  8. Basha says:

    I am using windows XP as host and using Fedora as guest via VMware. I want to access the file system of each from the other one so that I can move my files from windows to fedora and vice versa.. I tried your procedure but when I try to mount it is saying “No route to Host”. Can you please help me.?


  9. parinita says:

    In response to sudhir’s qyery above … and also to what zaki suggested…
    and to avoid trial and error in future for people like me…:)
    just a reiteration..
    when asked for authentication…give the same userid/domain/password that you used
    to login to your windows…. it works.

    and zaki… great tutorial…was really helpful!!

  10. yuki says:

    thanks. this helped a lot and it was easy to setup. 🙂

  11. Loks says:

    I have a software downloaded in windows XP. I wanna move that software folder to red hat linux which is installed on vmware.
    Zaki: I went through the tutorial i created the network connection, but while connecting to server the contents in the folder was not detected. inspite of it there is an error. please help out with this.

  12. seth says:

    Thank you so much for the instructions!

    I am running Oracle Enterprise Linux 5 inside VMware Server 1.0.4 on Windows XP Pro SP2, but I tried following your instructions anyway since OEL5 is actually Red Hat – and Red Hat is Fedora’s foundation. All the steps were very similar.

    I may have forgotten some other details involved to get it to work on my system ; but one in particular was that it did not work for me until I realized I needed to enter my computer name as the domain. My computer is part of an NT domain at work which is ironic because I used my NT authentication against my computer (as the domain) instead of using a local Windows account.

    In any case, I hope this helps anyone with similar issues.


  13. seth says:


    I spoke incorrectly when I mentioned that I was able to authenticate with my NT credentials against my computer. As it turns out, I needed to create a local account (which I made an Administrator, not sure if that was necessary), then gave that user access to the share.

    I then mounted the share from inside Linux and logged in as the newly created user against my computer name (as the domain).

    My apologies if I momentarily led anyone astray.


  14. Francisco Goncalves says:

    Many Thanks!!!

    Realy helpfull stuff here!!

    i’m runing VMWare on windows XP and my guest operating system is CentOS

    it works perfectly

    Best regards

  15. Mo says:

    Thanks! Now I can backup my Laptop. Im using Fedora 9 Live DVD and backup to my 120GB

  16. Greg says:

    I have followed the directions.
    In windows XP my VMnet8 IP is I setup VMware server with this new network connect as described. Once the vmware image is started I am unable to ping

    should I be able to ping this address?

  17. AdultFriendl says:

    Here ya go as requested.. hope you enjoy Free Adult Video Adult Free Video Free Porn Video Porntube



  18. Hi there.
    Thank you for a great post. It was very helpfull.
    Anyone reading this post should bookmark this guys contents.

    I have a new PC and needed some installation help so i went over to but they did not provide me with the in depth
    info this guy did. he kicks all the bigger sites’ butts.

    Thanks Again

  19. Yesterday, while I was at work, my cousin stole my apple ipad and tested to see if it can survive a 25 foot drop, just so
    she can be a youtube sensation. My iPad is now destroyed
    and she has 83 views. I know this is entirely off topic but I had to share it with someone!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

RSS Google Shared Items

  • An error has occurred; the feed is probably down. Try again later.

RSS Google Reader Starred Items

  • An error has occurred; the feed is probably down. Try again later.

Top Clicks

  • None
%d bloggers like this: