OpenSUSE :: Make Shared Folder In Virtual Box Mount On Startup?
Aug 31, 2010
I have mounted a shared folder in Ubuntu in VirtualBox, but I have to remount everytime I restart. how do I make this command run (for mounting) on startup or make it permanent?
I am attempting to make a shared folder for people that VPN into the network. This folder needs to be accessible to windows and mac machines. So far I have the VPN through ppptd working. I just don't know how to make a folder. I feel like this should be fairly easy. I am using Lucid Lynx server edition.
I'm mounting a shared folder in an arch linux guest on a windows 7 host in Virtual Box. The shared folder's filesystem is ext3 and is mounted in windows 7 with Ext2Fsd. I mount the shared folder at boot with this fstab:
I want to have a shared folder mounted on startup and I put the following in my fstab: Code: VMShare /media/VMShare vboxsf defaults,gid=1001,dmask=002 0 0 Where did 1001 corresponds to the virtual share group.
When I boot up the permissions are as follows(from ls -l): Code: drwxr-xr-x 1 root virtualshare 68 2010-10-27 15:45 VMShare/
So I'm curious why it's group permissions aren't the same as owner? In the fstab I put dmask=002 which should lead to rwxrwxr-x so basically full permissions for owner and group and read/execute for public. However thats not what I'm getting. Also once I get this working correctly am I going to have an issue if the virtualshare group isn't a users primary group? On some older unix servers I ran into this issue, hopefully it won't matter as long as the user in in the group.
I'm running CentOS 5.3 fully upgraded on a test server. I'd like to create a virtual machine, and host the VM files in a shared folder located in another windows server.
I can access this folder usign the graphic browser, but I'm inable to mount it in a local folder.
I tried with mount -t smb //server/folder /localfolder/
Moved to virtualization forum: [URL].. I just upgraded my Ubuntu VirtualBox guest to Lucid. My host machine shares two folders with the guest. I have them listed in my /etc/fstab so they're automatically mounted:
share /mnt/share vboxsf defaults 0 0 For some reason, it looks like Ubuntu attempts to mount these shared folders twice. The first time, the mount doesn't succeed, but the second time, it does, so by the time I actually log in, the shares work properly.
Karmic would just print an error message at boot, but now Lucid makes me press a key to continue booting when the mount fails. Ideally, I'd like to figure out how to make the first mount attempt work properly. But if that's complicated, just disabling Lucid's prompt would make me happy.
I have a similar question: How to make a share folder of virtualbox if I have installed linux Ubuntu 10.10 in virtualbox machine virtualbox is my guest machine and Linux Mint is my host machine. I have installed VirtualBox OSE in Linux Mint and I have installed Windows XP/7, made a sharing folder from guest machine Windows XP/7. My host machine is Linux Mint/Ubuntu, I mean it is on my PC. How to make a share folder in virtual machine linux ubuntu 10.10 LTS in virtualbox OSE to host machine Linux Mint 11 Katya?
I mounted a shared windows folder from my LAN, and I changed the mount point's ownership on Linux using command line `chown me:me windir`. but when I enter the mount point, and to create files, it mentioned me 'Permission denied', but the file is actually created on the windows' folder, and its ownership is root:root. this problem puzzled my programs going to run on it. cause them will detect a system returned error, and terminate in a abnormal way.
please help to mount windows storage server 2008 shared drives and folders( without password) to rhel ent server 6 through acl. I want restricted access to those drives and folders.
I spent all day learning some concepts of Samba which I left while preparing for RHCE.One of them is how to permanently mount (fstab entry) windows shared folder.Manually mount command is running fine for me.
I have two computers running Ubuntu 9.10, both have one shared folder. These were set up via Nautilus.
On computer 1 I can see and use the shared folder of computer 2 just fine.
On computer 2 I can NOT see the shared folder of computer 1 anymore since recently. I has worked in the past.
Some more information: the name of computer 1 is "daniel", the share name is "gedeeld". So the address of the shared folder of computer 1 would be smb://daniel/gedeeld/ Opening this address in Nautilus works fine on computer 1 (that shares the folder), but results in an error on computer 2.
Error: failed to mount Windows share. Please select another viewer and try again.
The scenario like this. I'm working on Ubuntu 10.10. I've enable samba sharing with full guest access enable. In my office I had another server (CentOS 5.5) installed just for me and I've created a Apache VirtualHost which root document pointed to share folder on my comp
This is my fstab setting //my ubuntu computer name/sharing/www /media/www cifs context=system_ubject_r:httpd_sys_content_t:s0,username=username,password=******,iocharset=utf8,fi le_mode=0777,dir_mode=0777 0 0
After label the mount folder as httpd_sys_content_t the Apache web server working in correct way (duno much but at least it can index files and excute some php code so) then the troll come in : if some file was created by my ubuntu (personal comp) then the file would be listed in Apache virtualhost correctly.
But if I'm ssh to CentOS server goto /media/www which was mounted to my unbuntu computer. Then type command like $mkdir something Suprising that folder ./something could not be accessed by Apache anymore except I remount by umount and mount it again or "setenforce 0" What is wrong with my system can anyone point me out of this headache
I have two partitions: one for Ubuntu 64-bit and another one with the format NTFS only for keeping documents. I have shared one folder of this NTFS partition, but every time I reboot the PC (or shutdown and start again for that matter) the folder is no longer shared.Why?How can I prevent this folder to be un-shared when I reboot the computer?
I recently applied a bunch of updates to my guest OS (Ubuntu) inside VirtualBox (NOTE: NOT updates to virtual box. Updates to the OS) and now on startup, I get the error:
"An error occurred while mounting /media/share. Press S to skip mounting or M for manual recovery"
I tried a fix which said to comment out the mounting in /etc/fstab and instead put it into rc.local, but this does not work.
Also, when I press "M" to try it manually and type:
mount.vboxsf -w mysharedfolder /media/share
I get the error:
mount.vboxsf: mounting failed with the error: No such device
But before I updated Ubuntu, that shared folder worked perfectly!
I'm a Windows person and will soon be tasked with UNIX/LINUX projects. I'm trying to learn as much as possible in a very short period of time. I'm very familiar with VMPlayer and VirtualBox. Recently I installed OpenSUSE 11.3 as a guest OS on VMPlayer (bridged network). The host is WinXP. I have also enabled shared folder to the host @ CRepositoryInstalls. Question - How do I access the shared folder from OpenSUSE (the guest OS) and vice-versa?
I wanted to enable file sharing in for one of my folders under the home directory. I noticed that the 'not shared' and 'shared' always defaulted back to 'not shared'. And now I see what looks like an electrical plug icon symbol over the folder icon symbol like I might see used for some of the root folders. What does the new icon indicate about the folder attributes and why does file sharing default to 'not shared'?
i m running suse 11.2 on a generic desktop machine with two external usb hard disks for data storage. when i restart, the names of the names of the usb disks get changed in /media from exampledisk to exampledisk-1, another boot up and i get exampledisk-2. the data is no longer in exampledisk, but in exampledisk-1 or exampledisk-2.
Using a SUSE server, what's the best method/tool available to mount existing shared directories? I have defined shares on a Window 2008 server and am attempting to configure the SUSE server.
This is strange. I moved OS 11.1 from an old 150 GB PATA drive over to a 500 GB SATA using Parted Magic. The old and new partitions were
Code: OLD: /dev/sda1 - 19.99 GB, mounted as / (root partition) /dev/sda2 - 97.82 GB, mounted as /home /dev/sdb1 - 29.52 GB, Windows XP NEW: /dev/sda1 - 29.30 GB, mounted as / /dev/sda2 -292.97 GB, mounted as /home /dev/sda3 - 45.82 GB, Windows XP
I used the "Clonezilla" tool on the Parted Magic live CD to move and resize the partitions. To my delight, everything appeared to transfer just fine. I can boot into OpenSUSE 11.1 (though not into Windows, but that's not really important; I'll figure that out later), but my /home partition won't mount. I'm set to autologin, and I get the expected error: "can't access /home/stephen" (or something like that). Here's the weird thing. I can ALT-F3, get a terminal and manually "mount /dev/sda2 /home", go back to ATL-F7 and log right in, so I know the disk is fine. (I've already 'fsck'd everything, by the way, and they're clean.)
I've used Yast's partitioner about a dozen times, trying "device by ID" and other settings. I always get the same thing when I reboot. On this last reboot, when it refused to log into /home, I ALT-F3'd, logged in as root, did a "cat" on "/etc/fstab" and entered the device-by-id line exactly as I saw it there and it mounted the /home directory just fine! ALT-F7, logged into KDE. I'm typing this in KDE now. Works fine. I so rarely need to reboot this machine that I can manually mount the /home partition, if need be, but (obviously) I'd like it to be mounted automatically during the boot.
I don't see anything obviously wrong here. The fact that I can take that second line and do a manual "mount" shows me that the device ID is at least correct. Just to be clear, here's what I entered in virtual terminal 3 as root to get my home partition to mount: Code: mount /dev/disk/by-id/ata-Hitachi_HDP725050GLA360_GEA534RV0DJ4LA-part2 /home and it worked fine. Exact same line.
OpenSUSE installed in a Virtualbox Virtual Machine and I want to set a shared folder.
1 - Set up a Virtual Machine and install OpenSUSE 11.2
2 - Create a shared folder on host (HostFolder)
3 - Setup the shared folder in Virtualbox Via the Virtual Machine details or via Devices > Shared Folders...
4 - Install dependencies for running the Virtualbox installer You need to install the right development kernelpackage for your machinetype (use 'zypper search -i kernel' to see what's installed) sudo zypper make gcc kernel-source kernel-hosttype/default-devel
5 - Run the Virtual Machine and go to Devices > Guest Additions This mounts an iso image in your OpenSUSE guest.
6 - Open a root terminal and run
cd /usr/src/linux make oldconfig && make prepare && make scripts && make dep cp ../linux-obj/$HOSTTYPE/default/Module.symvers . make prepare
* A commenter on previously mentioned thread says this step is unnecessary but it doesn't work without on my system. I suggest trying step 7 first and returning to step 6 if that fails. *
7 - Run ./VirtualboxLinux yourhosttype .run from the mounted iso image.
8 - Create shared folder in OpenSUSE (GuestFolder)
9 - Test with sudo mount -t vboxsf HostFolder /home/user/GuestFolder It works? Great! Let's set up the system so it automounts for your regular useraccount instead of root-only access.
10 - Add this line to /etc/fstab HostFolder /home/user/GuestFolder vboxsf defaults,uid=1000,gid=1000 0 0
11 - It works for me but if it still doesn't automount after a reboot; sudo mount -a
I installed a second HD, and formatted it to ext4. I gave it the "/backup" label. I am trying to figure out how to mount it so that I can run cron to backup my home folder onto it once a week. This is what the fstab looks like now
I tried to mount a NFS share folder from another subnet. The NFS client on my SUSE 11 server could not detect it. The folder is in a different subnet. Is some one know how to make it work?
I have two non-system drives with archive files. Each drive is formatted with one primary partition only, occupying all the drive space. In each drive there will be a number of directories with files in them, like this:
I'm not really sure this is the right category for this post...
I've been thinking and reading but I really don't find a solution, and this is why I decided to post here. I'm not a newbie using Linux but I know absolutely nothing about nfs and related stuff. If explanations are not clear/precise I'm sorry and absolutely open to explain myself better (I'm really desperate, at this point).
I'm running a Debian in a VirtualBox inside a RHEL5. To supply space to the virtual machine I'm trying to mount a disk (? maybe not?) that I created in the RHEL.
In RHEL: I created a directory /some/path/dir and I granted access to it from the VM (edit /etc/exports file and restart the nfs service)
In Debian: I created a directory to be used as mounting point (mkdir /other/nice/path/dir) and I tried to mount (mount -t nfs -v redhat:/some/path/dir /other/nice/path/dir). What happens next is the following:
mount.nfs: timeout set for Thu ... mount.nfs: text-based options ... mount.nfs: mount(2): Input/output error mount.nfs: mount system call failed
Now, this Input/output error is too vague to trace where the problem is, but I really have no idea about how to go more in depth (are there logs somewhere? What should I look for? ... ...).