How to share a directory from host to guest machine in VirtualBoxError mounting VirtualBox shared folders in an Ubuntu guestsharing files between a Windows7 host and a guest Ubuntu running inside virtualboxFile sharing from GUEST VirtualBox ( 12.04 ) to HOST ( 10.04 )Good to share /home with guest Windows in VirtualBox?I cannot mount the shared folder between host windows machine and virtualbox guest linuxGetting Error “ wrong fs type, bad option, bad superblock on none, missing codepage or helper program, or other error.”
What happens if a crew comply but do not repeat ATC instructions?
What is "Chronological Order" in chess?
How can I evaluate a math equation, one per line in a file?
Why is one Starlink satellite not following the adjacent one in this image?
Are trigonometry functions Ratios or Distance?
Is it good to take a fianchettoed Bishop?
Line between lines of a shape in illustrator
What mathematics activities get students physically moving?
Why is it ethical for Ambassador Sondland to have been given an ambassadorship for campaign contributions?
Bought a book that is in the public domain ... but the T&A of company says I can't redistribute it
What does "Massage with salt" mean in a recipe?
If password expiration is applied, should door-lock expiration be applied too?
I peer reviewed a paper and found it to be sound - technically and language-wise. How should I write the review report?
How do I negotiate salary when returning to a position I just left?
How often are there lunar eclipses on Jupiter
Do gray aliens exist in Star Trek?
MS BASIC, access a DIMed variable with no index?
"No, your taste is (not) good"
How to indicate "photograph by"
Employer wants me to do something explicitly illegal
Best fighting style for a pacifist
What will happen to a ball kept on a frictionless inclined plane?
Why is SpaceX not also working on a smaller version of Starship?
Modeling a sword handle - Problem smoothing it out
How to share a directory from host to guest machine in VirtualBox
Error mounting VirtualBox shared folders in an Ubuntu guestsharing files between a Windows7 host and a guest Ubuntu running inside virtualboxFile sharing from GUEST VirtualBox ( 12.04 ) to HOST ( 10.04 )Good to share /home with guest Windows in VirtualBox?I cannot mount the shared folder between host windows machine and virtualbox guest linuxGetting Error “ wrong fs type, bad option, bad superblock on none, missing codepage or helper program, or other error.”
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I have a VirtualBox installed on Ubuntu 18.04 and within VirtualBox Ubuntu 18.04 is also installed i.e. both host and guest machine are the same OS. Now I need to transfer some files from host machine to guest machine, I followed instructions mentioned here.
But while issuing the following command in guest machine
$ sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) share ~/host
I am getting an error
mount: /home/atinesh/host: mount point does not exist
How can I transfer files from host machine to guest machine
Update:
I have created home directory in Guest OS, Now while Issuing the same command as mentioned above getting this error
mount: /home/atinesh/host: wrong fs type, bad option, bad super block on share, missing codepage or helper program, or other error.
18.04 mount virtualbox
add a comment
|
I have a VirtualBox installed on Ubuntu 18.04 and within VirtualBox Ubuntu 18.04 is also installed i.e. both host and guest machine are the same OS. Now I need to transfer some files from host machine to guest machine, I followed instructions mentioned here.
But while issuing the following command in guest machine
$ sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) share ~/host
I am getting an error
mount: /home/atinesh/host: mount point does not exist
How can I transfer files from host machine to guest machine
Update:
I have created home directory in Guest OS, Now while Issuing the same command as mentioned above getting this error
mount: /home/atinesh/host: wrong fs type, bad option, bad super block on share, missing codepage or helper program, or other error.
18.04 mount virtualbox
You didn't create~/host.
– Pilot6
Feb 27 at 13:06
1
If it is about simple transferring files and not keeping the shared volume - what about the scp?
– h__
Feb 27 at 13:27
@Pilot6 I have updated the post please have a look
– Atinesh
Feb 27 at 13:37
In guest OS try to runsudo chmod 777 /home/atinesh/host- Did you try the troubleshooting section of the document you referring to ?
– cmak.fr
Feb 27 at 15:18
The shared folder did not mount properly even after installing guest additions. After several hours of searching, I realized that I can simply drag/drop folders from Windows to Ubuntu - so the need for the shared folder is gone.
– Nazar
Aug 21 at 15:36
add a comment
|
I have a VirtualBox installed on Ubuntu 18.04 and within VirtualBox Ubuntu 18.04 is also installed i.e. both host and guest machine are the same OS. Now I need to transfer some files from host machine to guest machine, I followed instructions mentioned here.
But while issuing the following command in guest machine
$ sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) share ~/host
I am getting an error
mount: /home/atinesh/host: mount point does not exist
How can I transfer files from host machine to guest machine
Update:
I have created home directory in Guest OS, Now while Issuing the same command as mentioned above getting this error
mount: /home/atinesh/host: wrong fs type, bad option, bad super block on share, missing codepage or helper program, or other error.
18.04 mount virtualbox
I have a VirtualBox installed on Ubuntu 18.04 and within VirtualBox Ubuntu 18.04 is also installed i.e. both host and guest machine are the same OS. Now I need to transfer some files from host machine to guest machine, I followed instructions mentioned here.
But while issuing the following command in guest machine
$ sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) share ~/host
I am getting an error
mount: /home/atinesh/host: mount point does not exist
How can I transfer files from host machine to guest machine
Update:
I have created home directory in Guest OS, Now while Issuing the same command as mentioned above getting this error
mount: /home/atinesh/host: wrong fs type, bad option, bad super block on share, missing codepage or helper program, or other error.
18.04 mount virtualbox
18.04 mount virtualbox
edited Feb 27 at 13:37
Atinesh
asked Feb 27 at 13:05
AtineshAtinesh
2331 gold badge4 silver badges17 bronze badges
2331 gold badge4 silver badges17 bronze badges
You didn't create~/host.
– Pilot6
Feb 27 at 13:06
1
If it is about simple transferring files and not keeping the shared volume - what about the scp?
– h__
Feb 27 at 13:27
@Pilot6 I have updated the post please have a look
– Atinesh
Feb 27 at 13:37
In guest OS try to runsudo chmod 777 /home/atinesh/host- Did you try the troubleshooting section of the document you referring to ?
– cmak.fr
Feb 27 at 15:18
The shared folder did not mount properly even after installing guest additions. After several hours of searching, I realized that I can simply drag/drop folders from Windows to Ubuntu - so the need for the shared folder is gone.
– Nazar
Aug 21 at 15:36
add a comment
|
You didn't create~/host.
– Pilot6
Feb 27 at 13:06
1
If it is about simple transferring files and not keeping the shared volume - what about the scp?
– h__
Feb 27 at 13:27
@Pilot6 I have updated the post please have a look
– Atinesh
Feb 27 at 13:37
In guest OS try to runsudo chmod 777 /home/atinesh/host- Did you try the troubleshooting section of the document you referring to ?
– cmak.fr
Feb 27 at 15:18
The shared folder did not mount properly even after installing guest additions. After several hours of searching, I realized that I can simply drag/drop folders from Windows to Ubuntu - so the need for the shared folder is gone.
– Nazar
Aug 21 at 15:36
You didn't create
~/host.– Pilot6
Feb 27 at 13:06
You didn't create
~/host.– Pilot6
Feb 27 at 13:06
1
1
If it is about simple transferring files and not keeping the shared volume - what about the scp?
– h__
Feb 27 at 13:27
If it is about simple transferring files and not keeping the shared volume - what about the scp?
– h__
Feb 27 at 13:27
@Pilot6 I have updated the post please have a look
– Atinesh
Feb 27 at 13:37
@Pilot6 I have updated the post please have a look
– Atinesh
Feb 27 at 13:37
In guest OS try to run
sudo chmod 777 /home/atinesh/host - Did you try the troubleshooting section of the document you referring to ?– cmak.fr
Feb 27 at 15:18
In guest OS try to run
sudo chmod 777 /home/atinesh/host - Did you try the troubleshooting section of the document you referring to ?– cmak.fr
Feb 27 at 15:18
The shared folder did not mount properly even after installing guest additions. After several hours of searching, I realized that I can simply drag/drop folders from Windows to Ubuntu - so the need for the shared folder is gone.
– Nazar
Aug 21 at 15:36
The shared folder did not mount properly even after installing guest additions. After several hours of searching, I realized that I can simply drag/drop folders from Windows to Ubuntu - so the need for the shared folder is gone.
– Nazar
Aug 21 at 15:36
add a comment
|
4 Answers
4
active
oldest
votes
Easiest to use VirtualBox Shared Folders.
Make sure that Guest Additions is installed in your VM.
In the Shared Folder setting for your VM... ie: using my Desktop folder...

In your VM...
In terminal...
sudo adduser $USER vboxsf # add user to vboxsf group
Log out, log in so that vboxsf is available.
Open a Files window and open the shared Desktop (in my example) folder. You may also see a sf_Desktop folder icon on the desktop.
Getting error while issuing command you mentionedaddUser: The group 'vboxsf' does not exist
– Atinesh
Feb 28 at 5:17
@Atinesh Make sure you're in the VM, and do thesudo adduser $USER vboxsf, and if that still fails, then trysudo addgroup vboxsffirst, to add the missing group.
– heynnema
Feb 28 at 14:32
add a comment
|
I solved my issue by first adding my username to vboxsf
sudo adduser $USER vboxsf
And then I still had to install this package to see the shared folder
sudo apt install virtualbox-guest-utils
add a comment
|
I also faced problem in sharing folders on ubuntu 18.04. I degraded the version and installed ubuntu 16.04. Problem got solved. No need to separately mount the folder. Just adding name to group vboxsf and then restart VM worked.
This is not a solution for Ubuntu 18.04 that you mentioned in here, you just started using a totally different version of Ubuntu...
– Kamiel Ahmadpour
Sep 11 at 7:20
add a comment
|
I solved my issue by first adding my username to vboxsf
sudo adduser USER_NAME vboxsf And then I still had to install this package to see the shared folder
sudo apt install virtualbox-guest-utils
almost worked, BUT although I wanted to be mounted at /mnt/mydir, as configured in virtualbox I ended up getting it mounted on /media/sf_mydir
If you disable automount (for the share via the Virtualbox Manager), you can mount the share wherever you want. On that note, automounting works great so I usually leave it alone.
– ajgringo619
Sep 18 at 23:28
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1121705%2fhow-to-share-a-directory-from-host-to-guest-machine-in-virtualbox%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
Easiest to use VirtualBox Shared Folders.
Make sure that Guest Additions is installed in your VM.
In the Shared Folder setting for your VM... ie: using my Desktop folder...

In your VM...
In terminal...
sudo adduser $USER vboxsf # add user to vboxsf group
Log out, log in so that vboxsf is available.
Open a Files window and open the shared Desktop (in my example) folder. You may also see a sf_Desktop folder icon on the desktop.
Getting error while issuing command you mentionedaddUser: The group 'vboxsf' does not exist
– Atinesh
Feb 28 at 5:17
@Atinesh Make sure you're in the VM, and do thesudo adduser $USER vboxsf, and if that still fails, then trysudo addgroup vboxsffirst, to add the missing group.
– heynnema
Feb 28 at 14:32
add a comment
|
Easiest to use VirtualBox Shared Folders.
Make sure that Guest Additions is installed in your VM.
In the Shared Folder setting for your VM... ie: using my Desktop folder...

In your VM...
In terminal...
sudo adduser $USER vboxsf # add user to vboxsf group
Log out, log in so that vboxsf is available.
Open a Files window and open the shared Desktop (in my example) folder. You may also see a sf_Desktop folder icon on the desktop.
Getting error while issuing command you mentionedaddUser: The group 'vboxsf' does not exist
– Atinesh
Feb 28 at 5:17
@Atinesh Make sure you're in the VM, and do thesudo adduser $USER vboxsf, and if that still fails, then trysudo addgroup vboxsffirst, to add the missing group.
– heynnema
Feb 28 at 14:32
add a comment
|
Easiest to use VirtualBox Shared Folders.
Make sure that Guest Additions is installed in your VM.
In the Shared Folder setting for your VM... ie: using my Desktop folder...

In your VM...
In terminal...
sudo adduser $USER vboxsf # add user to vboxsf group
Log out, log in so that vboxsf is available.
Open a Files window and open the shared Desktop (in my example) folder. You may also see a sf_Desktop folder icon on the desktop.
Easiest to use VirtualBox Shared Folders.
Make sure that Guest Additions is installed in your VM.
In the Shared Folder setting for your VM... ie: using my Desktop folder...

In your VM...
In terminal...
sudo adduser $USER vboxsf # add user to vboxsf group
Log out, log in so that vboxsf is available.
Open a Files window and open the shared Desktop (in my example) folder. You may also see a sf_Desktop folder icon on the desktop.
edited Feb 28 at 14:20
answered Feb 27 at 15:26
heynnemaheynnema
28.9k3 gold badges33 silver badges76 bronze badges
28.9k3 gold badges33 silver badges76 bronze badges
Getting error while issuing command you mentionedaddUser: The group 'vboxsf' does not exist
– Atinesh
Feb 28 at 5:17
@Atinesh Make sure you're in the VM, and do thesudo adduser $USER vboxsf, and if that still fails, then trysudo addgroup vboxsffirst, to add the missing group.
– heynnema
Feb 28 at 14:32
add a comment
|
Getting error while issuing command you mentionedaddUser: The group 'vboxsf' does not exist
– Atinesh
Feb 28 at 5:17
@Atinesh Make sure you're in the VM, and do thesudo adduser $USER vboxsf, and if that still fails, then trysudo addgroup vboxsffirst, to add the missing group.
– heynnema
Feb 28 at 14:32
Getting error while issuing command you mentioned
addUser: The group 'vboxsf' does not exist– Atinesh
Feb 28 at 5:17
Getting error while issuing command you mentioned
addUser: The group 'vboxsf' does not exist– Atinesh
Feb 28 at 5:17
@Atinesh Make sure you're in the VM, and do the
sudo adduser $USER vboxsf, and if that still fails, then try sudo addgroup vboxsf first, to add the missing group.– heynnema
Feb 28 at 14:32
@Atinesh Make sure you're in the VM, and do the
sudo adduser $USER vboxsf, and if that still fails, then try sudo addgroup vboxsf first, to add the missing group.– heynnema
Feb 28 at 14:32
add a comment
|
I solved my issue by first adding my username to vboxsf
sudo adduser $USER vboxsf
And then I still had to install this package to see the shared folder
sudo apt install virtualbox-guest-utils
add a comment
|
I solved my issue by first adding my username to vboxsf
sudo adduser $USER vboxsf
And then I still had to install this package to see the shared folder
sudo apt install virtualbox-guest-utils
add a comment
|
I solved my issue by first adding my username to vboxsf
sudo adduser $USER vboxsf
And then I still had to install this package to see the shared folder
sudo apt install virtualbox-guest-utils
I solved my issue by first adding my username to vboxsf
sudo adduser $USER vboxsf
And then I still had to install this package to see the shared folder
sudo apt install virtualbox-guest-utils
edited Sep 18 at 23:22
Pablo A
4,5953 gold badges23 silver badges50 bronze badges
4,5953 gold badges23 silver badges50 bronze badges
answered Jul 11 at 11:44
Kamiel AhmadpourKamiel Ahmadpour
1116 bronze badges
1116 bronze badges
add a comment
|
add a comment
|
I also faced problem in sharing folders on ubuntu 18.04. I degraded the version and installed ubuntu 16.04. Problem got solved. No need to separately mount the folder. Just adding name to group vboxsf and then restart VM worked.
This is not a solution for Ubuntu 18.04 that you mentioned in here, you just started using a totally different version of Ubuntu...
– Kamiel Ahmadpour
Sep 11 at 7:20
add a comment
|
I also faced problem in sharing folders on ubuntu 18.04. I degraded the version and installed ubuntu 16.04. Problem got solved. No need to separately mount the folder. Just adding name to group vboxsf and then restart VM worked.
This is not a solution for Ubuntu 18.04 that you mentioned in here, you just started using a totally different version of Ubuntu...
– Kamiel Ahmadpour
Sep 11 at 7:20
add a comment
|
I also faced problem in sharing folders on ubuntu 18.04. I degraded the version and installed ubuntu 16.04. Problem got solved. No need to separately mount the folder. Just adding name to group vboxsf and then restart VM worked.
I also faced problem in sharing folders on ubuntu 18.04. I degraded the version and installed ubuntu 16.04. Problem got solved. No need to separately mount the folder. Just adding name to group vboxsf and then restart VM worked.
answered Jun 13 at 4:04
Neeraj SharmaNeeraj Sharma
1
1
This is not a solution for Ubuntu 18.04 that you mentioned in here, you just started using a totally different version of Ubuntu...
– Kamiel Ahmadpour
Sep 11 at 7:20
add a comment
|
This is not a solution for Ubuntu 18.04 that you mentioned in here, you just started using a totally different version of Ubuntu...
– Kamiel Ahmadpour
Sep 11 at 7:20
This is not a solution for Ubuntu 18.04 that you mentioned in here, you just started using a totally different version of Ubuntu...
– Kamiel Ahmadpour
Sep 11 at 7:20
This is not a solution for Ubuntu 18.04 that you mentioned in here, you just started using a totally different version of Ubuntu...
– Kamiel Ahmadpour
Sep 11 at 7:20
add a comment
|
I solved my issue by first adding my username to vboxsf
sudo adduser USER_NAME vboxsf And then I still had to install this package to see the shared folder
sudo apt install virtualbox-guest-utils
almost worked, BUT although I wanted to be mounted at /mnt/mydir, as configured in virtualbox I ended up getting it mounted on /media/sf_mydir
If you disable automount (for the share via the Virtualbox Manager), you can mount the share wherever you want. On that note, automounting works great so I usually leave it alone.
– ajgringo619
Sep 18 at 23:28
add a comment
|
I solved my issue by first adding my username to vboxsf
sudo adduser USER_NAME vboxsf And then I still had to install this package to see the shared folder
sudo apt install virtualbox-guest-utils
almost worked, BUT although I wanted to be mounted at /mnt/mydir, as configured in virtualbox I ended up getting it mounted on /media/sf_mydir
If you disable automount (for the share via the Virtualbox Manager), you can mount the share wherever you want. On that note, automounting works great so I usually leave it alone.
– ajgringo619
Sep 18 at 23:28
add a comment
|
I solved my issue by first adding my username to vboxsf
sudo adduser USER_NAME vboxsf And then I still had to install this package to see the shared folder
sudo apt install virtualbox-guest-utils
almost worked, BUT although I wanted to be mounted at /mnt/mydir, as configured in virtualbox I ended up getting it mounted on /media/sf_mydir
I solved my issue by first adding my username to vboxsf
sudo adduser USER_NAME vboxsf And then I still had to install this package to see the shared folder
sudo apt install virtualbox-guest-utils
almost worked, BUT although I wanted to be mounted at /mnt/mydir, as configured in virtualbox I ended up getting it mounted on /media/sf_mydir
answered Sep 18 at 19:27
BodoBodo
32 bronze badges
32 bronze badges
If you disable automount (for the share via the Virtualbox Manager), you can mount the share wherever you want. On that note, automounting works great so I usually leave it alone.
– ajgringo619
Sep 18 at 23:28
add a comment
|
If you disable automount (for the share via the Virtualbox Manager), you can mount the share wherever you want. On that note, automounting works great so I usually leave it alone.
– ajgringo619
Sep 18 at 23:28
If you disable automount (for the share via the Virtualbox Manager), you can mount the share wherever you want. On that note, automounting works great so I usually leave it alone.
– ajgringo619
Sep 18 at 23:28
If you disable automount (for the share via the Virtualbox Manager), you can mount the share wherever you want. On that note, automounting works great so I usually leave it alone.
– ajgringo619
Sep 18 at 23:28
add a comment
|
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1121705%2fhow-to-share-a-directory-from-host-to-guest-machine-in-virtualbox%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You didn't create
~/host.– Pilot6
Feb 27 at 13:06
1
If it is about simple transferring files and not keeping the shared volume - what about the scp?
– h__
Feb 27 at 13:27
@Pilot6 I have updated the post please have a look
– Atinesh
Feb 27 at 13:37
In guest OS try to run
sudo chmod 777 /home/atinesh/host- Did you try the troubleshooting section of the document you referring to ?– cmak.fr
Feb 27 at 15:18
The shared folder did not mount properly even after installing guest additions. After several hours of searching, I realized that I can simply drag/drop folders from Windows to Ubuntu - so the need for the shared folder is gone.
– Nazar
Aug 21 at 15:36