if you are clever enough to create virtual machines ...
- you must know how to use the command line in Linux
- you must know about permissions
- you must know what mounting is
- you must know how to configure fstab without disabling your machine
- you must know how to search out obscure and esoteric technical information on the Internet, because there ain't no manuals explaining how to do any of this.
how to share files between an Ubuntu Linux guest virtual machine residing inside a Windows OS host.
- Create a folder to share files on the Windows machine and give it a name: NewShareName, or something
- Open VM VirtualBox Manager settings for your VM of interest
- Set the 'Shared Folders' to point to the NewShareName folder you just created
- Start the VM of interest
- From Devices menu > Insert Guest Additions CD image
- mount the CD if it doesn't give the option to run automatically
- sudo mount /dev/cdrom /media/cdrom
- Install the necessary packages (assuming you know what they are)
- sudo apt-get install make gcc linux-headers-$(uname -r)
- Install the VirtualBox Guest Additions
- sudo /media/cdrom/VBoxLinuxAdditions.run
- Now you can mount the share ... that is, after you create it first
- mkdir ~/NewShareName
- There, NOW you can mount it
- sudo mount -t vboxsf NewShareName ~/NewShareName
- Of course, if you want to automatically mount every time you boot up, first you will have to modify /etc/fstab
- Add this to fstab: NewShareName /home/username/NewShareName vboxsf defaults 0 0
- Did I mention that you must be a member of the vboxsf group in order to open the share? You do ...
- sudo usermod -aG vboxsf $(whoami)
- If you did everything right, that mounted shared directory is in: /media/sf_(NewShareName).
- Yes, you must prepend the 'sf_' to the share name. Sorry, I forgot to mention that earlier.
- And, finally, you must reboot (just like in Windows) in order for any of this to work.
- Start sharing
IN WINDOWS file sharing only requires that you have a need to do it. Thus you know what it is. Here's how it's done:
- Create the folder you want to share
- In that file's Properties > Sharing Tab > [share] pick the people you want to share things with
- Click Apply and close Properties
- Open Control Panel> Network and Sharing Center >Advanced Sharing Settings
- Turn on file and printer sharing
- Turn on network discovery
- Start sharing ...