Cannot share windows sgares with ubuntu in virtual box

Asked by Raja

I installed ubuntu in Virtual box on a PC with Windows XP for OS. I have shares in virtual box from windows desktop. I can't see them in Ubuntu and cannot use those files in Ubuntu.

I am a newbee to Ubuntu and don't know how to make these shares available to ubuntu. Can anyone give me detailed instructions ? Thanks a lot.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Raja (paranjr) said :
#1

OS is Windows XP Pro.
I have virtual box 2.0.4
and ubuntu 8.04.1 inside virtual box

Revision history for this message
Kevin Lacquement (kevin-lacqui) said :
#2

First, you need to install VirtualBox guest extensions:
- In the VirtualBox menu, Devices -> "Install Guest Additions"
- Then, mount them: Devices -> Mount CD/DVD-ROM -> CD/DVD-ROM Image
- Select VBoxGuestAdditions.iso

Open a terminal (Applications -> Accessories -> Terminal)
- sudo apt-get install linux-headers-generic
- mount /media/cdrom (If you get an error that it's already mounted, ignore the error)
- sudo /media/cdrom/VBoxLinuxAdditions.run
(wait)
- Reboot the virtual machine

Once you have the extensions installed and configured, you'll be able to share host machine (Windows) onto the virtual machine:
(VirtualBox menu):
- Devices -> Shared Folders
- Press the '+' icon, fill in the form; remember the "Folder Name" value you give it
- open a terminal in the virtualbox
- sudo mount -t vboxsf <foldername> <mountpoint>
  where <foldername> is the name from the "Shared Folders" form and <mountpoint> is the directory on your system that you want to use for accessing the share.

Revision history for this message
Kevin Lacquement (kevin-lacqui) said :
#3

Note also, every time you update your kernel, you'll need to re-install the system additions (/media/cdrom/VBoxLinuxAdditions.run)

Revision history for this message
Raja (paranjr) said :
#4

Kevin:

I installed guest additions. When I try to go to Devices -> Shared Folders

And try to add N and W drives, I get an error as follows:

By the way, I did not have to type in any SUDO commands to get this far. I actually got icons with program names and double clicked VBoxLinuxAdditions and it ran in a terminal window.

I appreciate your helping me. What should I do about this error ?

Thanks

Raja

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Kevin Lacquement
Sent: Monday, October 13, 2008 10:36 PM
To: <email address hidden>
Subject: Re: [Question #47938]: Cannot share windows sgares with ubuntu in virtual box

Your question #47938 on Ubuntu changed:

https://answers.launchpad.net/ubuntu/+question/47938

    Status: Open => Answered

Kevin Lacquement proposed the following answer:

First, you need to install VirtualBox guest extensions:

- In the VirtualBox menu, Devices -> "Install Guest Additions"

- Then, mount them: Devices -> Mount CD/DVD-ROM -> CD/DVD-ROM Image

- Select VBoxGuestAdditions.iso

Open a terminal (Applications -> Accessories -> Terminal)

- sudo apt-get install linux-headers-generic

- mount /media/cdrom (If you get an error that it's already mounted, ignore the error)

- sudo /media/cdrom/VBoxLinuxAdditions.run

(wait)

- Reboot the virtual machine

Once you have the extensions installed and configured, you'll be able to share host machine (Windows) onto the virtual machine:

(VirtualBox menu):

- Devices -> Shared Folders

- Press the '+' icon, fill in the form; remember the "Folder Name" value you give it

- open a terminal in the virtualbox

- sudo mount -t vboxsf <foldername> <mountpoint>

  where <foldername> is the name from the "Shared Folders" form and <mountpoint> is the directory on your system that you want to use for accessing the share.

--

If this answers your question, please go to the following page to let us

know that it is solved:

https://answers.launchpad.net/ubuntu/+question/47938/+confirm?answer_id=1

If you still need help, you can reply to this email or go to the

following page to enter your feedback:

https://answers.launchpad.net/ubuntu/+question/47938

You received this question notification because you are a direct

subscriber of the question.

__________ Information from ESET Smart Security, version of virus signature database 3519 (20081013) __________

The message was checked by ESET Smart Security.

http://www.eset.com

Revision history for this message
Raja (paranjr) said :
#5

Kevin:

I repeated your instruction andthis time went to terminal manually and typed what you said. I still get an error that VboxLinuxAdditions.run command not found.

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Raja
Sent: Tuesday, October 14, 2008 12:28 PM
To: <email address hidden>
Subject: RE: [Question #47938]: Cannot share windows sgares with ubuntu in virtual box

Your question #47938 on Ubuntu changed:

https://answers.launchpad.net/ubuntu/+question/47938

    Status: Answered => Open

You are still having a problem:

Kevin:

I installed guest additions. When I try to go to Devices -> Shared

Folders

And try to add N and W drives, I get an error as follows:

By the way, I did not have to type in any SUDO commands to get this far.

I actually got icons with program names and double clicked

VBoxLinuxAdditions and it ran in a terminal window.

I appreciate your helping me. What should I do about this error ?

Thanks

Raja

-----Original Message-----

From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Kevin Lacquement

Sent: Monday, October 13, 2008 10:36 PM

To: <email address hidden>

Subject: Re: [Question #47938]: Cannot share windows sgares with ubuntu in virtual box

Your question #47938 on Ubuntu changed:

https://answers.launchpad.net/ubuntu/+question/47938

    Status: Open => Answered

Kevin Lacquement proposed the following answer:

First, you need to install VirtualBox guest extensions:

- In the VirtualBox menu, Devices -> "Install Guest Additions"

- Then, mount them: Devices -> Mount CD/DVD-ROM -> CD/DVD-ROM Image

- Select VBoxGuestAdditions.iso

Open a terminal (Applications -> Accessories -> Terminal)

- sudo apt-get install linux-headers-generic

- mount /media/cdrom (If you get an error that it's already mounted,

ignore the error)

- sudo /media/cdrom/VBoxLinuxAdditions.run

(wait)

- Reboot the virtual machine

Once you have the extensions installed and configured, you'll be able to

share host machine (Windows) onto the virtual machine:

(VirtualBox menu):

- Devices -> Shared Folders

- Press the '+' icon, fill in the form; remember the "Folder Name" value

you give it

- open a terminal in the virtualbox

- sudo mount -t vboxsf <foldername> <mountpoint>

  where <foldername> is the name from the "Shared Folders" form and

<mountpoint> is the directory on your system that you want to use for

accessing the share.

--

If this answers your question, please go to the following page to let us

know that it is solved:

https://answers.launchpad.net/ubuntu/+question/47938/+confirm?answer_id=1

If you still need help, you can reply to this email or go to the

following page to enter your feedback:

https://answers.launchpad.net/ubuntu/+question/47938

You received this question notification because you are a direct

subscriber of the question.

__________ Information from ESET Smart Security, version of virus

signature database 3519 (20081013) __________

The message was checked by ESET Smart Security.

http://www.eset.com

--

You received this question notification because you are a direct

subscriber of the question.

__________ Information from ESET Smart Security, version of virus signature database 3519 (20081013) __________

The message was checked by ESET Smart Security.

http://www.eset.com

Revision history for this message
Kevin Lacquement (kevin-lacqui) said :
#6

Your error message didn't come through on your reply. However, note capitals: VBoxLinuxAdditions.run, the 'B' needs to be capitalized. You can try using tab-completion (type /media/cdrom/V then press tab, it will fill in part, then you type the next letter), as this will make it easier to avoid typos.

Revision history for this message
Kevin Lacquement (kevin-lacqui) said :
#7

It looks like there may be a simpler answer now (not previously available due to a bug in the packaging):

- Update your system (using the update icon on the toolbar)
- use either the Synaptics GUI (System -> Administration -> Synaptics Package Manager) or apt-get (from the terminal) to install virtualbox-ose-guest-utils and virtualbox-ose-guest-modules:
-- sudo apt-get install virtualbox-ose-guest-utils virtualbox-ose-guest-modules

Good luck

Can you help with this problem?

Provide an answer of your own, or ask Raja for more information if necessary.

To post a message you must log in.