mounting shared folder in openSUSE 12.2 VM

Discussions related to using VirtualBox on Windows hosts.
Post Reply
LMHmedchem
Posts: 81
Joined: 7. Feb 2013, 19:35

mounting shared folder in openSUSE 12.2 VM

Post by LMHmedchem »

I have an openSUSE 12.2 VM up and running. I have installed guest additions, though there was an error message or so in the terminal, so I'm not sure that it completely installed. The installer finished and I was not prompted to do anything else. The shared folder icon on the bottom of the VM window indicates that my shared folder is there, but there is nothing in /media or /mnt. I am very unfamiliar with KDE, so I'm not really sure where to start looking. I selected the "auto mount" check box when I set up the shared folder, so I'm not sure why it's not here.

This is the output from fdisk -l, the drive for the shared folder does not appear, just the two partitions of the virtual drive.

Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00064aa1

Device Boot Start End Blocks Id System
/dev/sda1 2048 4208639 2103296 82 Linux swap / Solaris
/dev/sda2 * 4208640 41943039 18867200 83 Linux

Can anyone point me in the right direction here?

LMHmedchem
LMHmedchem
Posts: 81
Joined: 7. Feb 2013, 19:35

Re: mounting shared folder in openSUSE 12.2 VM

Post by LMHmedchem »

I decided to try an reinstall guest additions, in case there was something missing there. This time, the installer appeared to proceed normally and I saw the module for shared folders get created. Now I see my shared folder in /media. I did as I have with other VMs by adding my username to the group that the folder belongs to. Now I am able to access the folder through dolphin.

To install guest additions, I did the following.
1. open a terminal and become root
$ su

2. run
$ zypper install gcc kernel-devel make

3. use the VM device menu to point the cd to guest additions

4. cd to /media/VBOXADDITIONS
$ cd /media/VBOXADDITIONS*

5. run,
$ ./VBoxLinusAdditions.run

I still don't know why I had to run this twice to get it to work, but it did in the end so I guess I won't complain.

LMHmedchem
Post Reply