OpenSuse 12.3 Guest - shared folder for Windows Host
Posted: 12. Aug 2013, 00:28
Hi
Here I summarize all the drawbacks I found to make my openSuse 12.3 in a virtual box access
the Windows folders. Actually I didn't know that
openSuse 12.3 has guest additions by default (!!!)
which I was trying unnecessarily install. Here I share the problems and solutions that ended in the first step...
after several tries running in circles looking for the wrong answers. Anyway it may help someone else.
Let's go:
To use shared folder in opensuse 12.3 (Windows host, openSuse guest), first check if the guest additions
are already installed, by default it should be automatically installed, see
http://www.binarytides.com/install-virt ... suse-12-2/
To verify this, use
dmesg |grep vboxsf
[enter] and you should see:
vboxsf: Successfully loaded version 4.2.6_OSE
As demonstrated in
http://www.youtube.com/watch?v=lGaaf9b3kDQ
(around 30-35min)
If it is ok skip all the 'Troubles' section to set up your virtual box
//------------Troubles-------------begin
Trouble 1
If not, or you want to reinstall the guest additions, you will have to install
the C compile.You can either follow
http://www.binarytides.com/install-virt ... suse-12-2/
or
http://www.susegeek.com/virtualization/ ... -guest-os/
as this last one shows by doing
:~> su -
password:
opensuse:~# yast2 –install gcc gcc-c++ make kernel-source
Trouble 2
If it fails giving the message:
yast2: invalid option -- 'n'
Then use
opensuse:~# yast2 –-install gcc gcc-c++ make kernel-source
should install
Trouble 3
If you get any message saying that
opensuse 12.3 yast is blocked by the packagekit
Then give the command
ps -A
that will give all the running process than pick the number of packagekit, for example
2690 ? 00:00:00 packagekit
and in the prompt:
kill 2690
Now you proceed in the guest additions installation as some of the given links say.
(These were the troubles and solutions I've found)
//------------Troubles-------------end
After the installation of the guest additions ready, you build the shared folder:
1-In Windows go to the virtual box manager;
2-In 'shared folder' option add user with a name:'MyName' and specify the folder you want to share.
3-In the openSuse create the folder '/home/SharedFolder'
(or any other desired location);
4-Still in openSuse
sudo mount -t vboxsf MyName /home/SharedFolder
in this folder you should finally from openSuse see the specified folder in Windows.
5-The previews item crates the folder only once, meaning every time you open the virtual box you should give this command again. To keep it permanently add to the file
/etc/fstab
the line
MyName /home/SharedFolder vboxsf defaults,uid=1000,gid=1000 0 0
In this case as root:
su -
password:
Edit and save the file fstab.
(http://linux.bigresource.com/OpenSUSE-A ... oIpSx.html)
OpenSuse 12.3 is finally running with appropriate shared folder in Windows Vista, after a couple of days of labor.
I hope it helps.
'That's all folks!'
Here I summarize all the drawbacks I found to make my openSuse 12.3 in a virtual box access
the Windows folders. Actually I didn't know that
openSuse 12.3 has guest additions by default (!!!)
which I was trying unnecessarily install. Here I share the problems and solutions that ended in the first step...
after several tries running in circles looking for the wrong answers. Anyway it may help someone else.
Let's go:
To use shared folder in opensuse 12.3 (Windows host, openSuse guest), first check if the guest additions
are already installed, by default it should be automatically installed, see
http://www.binarytides.com/install-virt ... suse-12-2/
To verify this, use
dmesg |grep vboxsf
[enter] and you should see:
vboxsf: Successfully loaded version 4.2.6_OSE
As demonstrated in
http://www.youtube.com/watch?v=lGaaf9b3kDQ
(around 30-35min)
If it is ok skip all the 'Troubles' section to set up your virtual box
//------------Troubles-------------begin
Trouble 1
If not, or you want to reinstall the guest additions, you will have to install
the C compile.You can either follow
http://www.binarytides.com/install-virt ... suse-12-2/
or
http://www.susegeek.com/virtualization/ ... -guest-os/
as this last one shows by doing
:~> su -
password:
opensuse:~# yast2 –install gcc gcc-c++ make kernel-source
Trouble 2
If it fails giving the message:
yast2: invalid option -- 'n'
Then use
opensuse:~# yast2 –-install gcc gcc-c++ make kernel-source
should install
Trouble 3
If you get any message saying that
opensuse 12.3 yast is blocked by the packagekit
Then give the command
ps -A
that will give all the running process than pick the number of packagekit, for example
2690 ? 00:00:00 packagekit
and in the prompt:
kill 2690
Now you proceed in the guest additions installation as some of the given links say.
(These were the troubles and solutions I've found)
//------------Troubles-------------end
After the installation of the guest additions ready, you build the shared folder:
1-In Windows go to the virtual box manager;
2-In 'shared folder' option add user with a name:'MyName' and specify the folder you want to share.
3-In the openSuse create the folder '/home/SharedFolder'
(or any other desired location);
4-Still in openSuse
sudo mount -t vboxsf MyName /home/SharedFolder
in this folder you should finally from openSuse see the specified folder in Windows.
5-The previews item crates the folder only once, meaning every time you open the virtual box you should give this command again. To keep it permanently add to the file
/etc/fstab
the line
MyName /home/SharedFolder vboxsf defaults,uid=1000,gid=1000 0 0
In this case as root:
su -
password:
Edit and save the file fstab.
(http://linux.bigresource.com/OpenSUSE-A ... oIpSx.html)
OpenSuse 12.3 is finally running with appropriate shared folder in Windows Vista, after a couple of days of labor.
I hope it helps.
'That's all folks!'