Sbin mount vboxsf mounting failed with the error no such device

Vagrant version Vagrant 1.9.1 c:wwwhtdocsvagrant>vagrant plugin list vagrant-share (1.1.6, system) vagrant-vbguest (0.13.0) Host operating system Win10 Guest operating system VirtualBox 5.0.2...

Vagrant version

Vagrant 1.9.1

c:wwwhtdocsvagrant>vagrant plugin list
vagrant-share (1.1.6, system)
vagrant-vbguest (0.13.0)

Host operating system

Win10

Guest operating system

VirtualBox 5.0.24 r108355

CentOS Linux release 7.3.1611 (Core)(after run yum update)
Kernel 3.10.0-514.6.2.el7.x86_64

Vagrantfile

Vagrant.configure(2) do |config|
  config.vm.box = "CentOS-7-Vagrant-1505-x86_64-01"

  config.vm.network "forwarded_port", guest: 80, host: 8080

  # Create a private network, which allows host-only access to the machine
  # using a specific IP.
   config.vm.network "private_network", ip: "192.168.33.10"

  config.vm.synced_folder ".", "/home/vagrant/sync", type: "virtualbox"

    config.vm.provision "shell", inline: <<-SHELL
  SHELL
end

Actual behavior

c:wwwhtdocsvagrant>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 80 (guest) => 8080 (host) (adapter 1)
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Remote connection disconnect. Retrying...
==> default: Machine booted and ready!
[default] GuestAdditions versions on your host (5.0.24) and guest (4.2.10) do not match.
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.ustc.edu.cn
 * extras: centos.ustc.edu.cn
 * updates: centos.ustc.edu.cn
Package kernel-devel-3.10.0-514.6.2.el7.x86_64 already installed and latest version
Package gcc-4.8.5-11.el7.x86_64 already installed and latest version
Package binutils-2.25.1-22.base.el7.x86_64 already installed and latest version
Package 1:make-3.82-23.el7.x86_64 already installed and latest version
Package 4:perl-5.16.3-291.el7.x86_64 already installed and latest version
Package bzip2-1.0.6-13.el7.x86_64 already installed and latest version
Nothing to do
Copy iso file C:Program FilesOracleVirtualBox/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
mount: /dev/loop0 is write-protected, mounting read-only
Installing Virtualbox Guest Additions 4.2.10 - guest version is 4.2.10
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.2.10 Guest Additions for Linux..........
VirtualBox Guest Additions installer
Removing installed version 4.2.10 of VirtualBox Guest Additions...
                                                     Removing existing VirtualBox non-DKMS kernel modules[  OK  ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module[  OK  ]
Building the shared folder support module[FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions[  OK  ]
Installing the Window System drivers[FAILED]
(Could not find the X.Org or XFree86 Window System.)

==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 4.2.10
    default: VirtualBox Version: 5.0
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /home/vagrant/sync => C:/www/htdocs/vagrant
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o uid=1000,gid=1000 home_vagrant_sync /home/vagrant/sync

The error output from the command was:

/sbin/mount.vboxsf: mounting failed with the error: No such device

Network question, I got this output in the machine image

[root@localhost ~]# service network restart
Restarting network (via systemctl):  Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
                                                           [FAILED]
[root@localhost ~]# systemctl status network.service
● network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sat 2017-02-25 00:25:03 EST; 1min 20s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 16813 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)

Feb 25 00:25:03 nodename.domainname network[16813]: [  OK  ]
Feb 25 00:25:03 nodename.domainname network[16813]: RTNETLINK answers: File exists
Feb 25 00:25:03 nodename.domainname network[16813]: RTNETLINK answers: File exists
Feb 25 00:25:03 nodename.domainname network[16813]: RTNETLINK answers: File exists
Feb 25 00:25:03 nodename.domainname network[16813]: RTNETLINK answers: File exists
Feb 25 00:25:03 nodename.domainname network[16813]: RTNETLINK answers: File exists
Feb 25 00:25:03 nodename.domainname network[16813]: RTNETLINK answers: File exists
Feb 25 00:25:03 nodename.domainname network[16813]: RTNETLINK answers: File exists
Feb 25 00:25:03 nodename.domainname network[16813]: RTNETLINK answers: File exists
Feb 25 00:25:03 nodename.domainname network[16813]: RTNETLINK answers: File exists
[root@localhost ~]# ifconfig -a
eth0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 52:54:00:73:0f:b1  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.33.10  netmask 255.255.255.0  broadcast 192.168.33.255
        inet6 fe80::a00:27ff:fe34:7557  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:34:75:57  txqueuelen 1000  (Ethernet)
        RX packets 2063  bytes 724832 (707.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1089  bytes 278076 (271.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

install VBoxGuestAdditions_5.0.2

[root@localhost vagrant]# sudo mount -o loop,ro VBoxGuestAdditions_5.0.2.iso /media/VBoxGuestAdditions
[root@localhost vagrant]# sudo sh /media/VBoxGuestAdditions/VBoxLinuxAdditions.run rm VBoxGuestAdditions_5.0.2.iso
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.0.2 Guest Additions for Linux............
VirtualBox Guest Additions installer
Please specify an absolute path

Usage: /media/VBoxGuestAdditions/VBoxLinuxAdditions.run install [<installation directory>]
       [--with-<module>] |
       uninstall
       [--force] [--no-setup]

Example:
/media/VBoxGuestAdditions/VBoxLinuxAdditions.run install
[root@localhost vagrant]# sudo umount /media/VBoxGuestAdditions
[root@localhost vagrant]# sudo rmdir /media/VBoxGuestAdditions
[root@localhost vagrant]# sudo /etc/init.d/vboxadd setup
Removing existing VirtualBox non-DKMS kernel modules       [  OK  ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module                   [  OK  ]
Building the shared folder support module                  [FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions              [  OK  ]
[root@localhost vagrant]# vi /var/log/vboxadd-install.log

Содержание

  1. Getting /sbin/mount.vboxsf: mounting failed with the error: No such device #4
  2. Comments
  3. virtualbox.org
  4. Shared folder won’t mount
  5. Shared folder won’t mount
  6. Doesn’t work for me
  7. unixforum.org
  8. VirtualBox и общие папки (не видит)
  9. VirtualBox и общие папки
  10. Re: VirtualBox и общие папки
  11. Re: VirtualBox и общие папки
  12. Re: VirtualBox и общие папки
  13. Re: VirtualBox и общие папки
  14. Re: VirtualBox и общие папки
  15. Re: VirtualBox и общие папки
  16. Re: VirtualBox и общие папки
  17. Re: VirtualBox и общие папки
  18. Re: VirtualBox и общие папки
  19. Re: VirtualBox и общие папки
  20. Re: VirtualBox и общие папки
  21. Re: VirtualBox и общие папки
  22. Re: VirtualBox и общие папки
  23. Re: VirtualBox и общие папки
  24. Re: VirtualBox и общие папки
  25. Re: VirtualBox и общие папки
  26. Re: VirtualBox и общие папки
  27. Re: VirtualBox и общие папки
  28. Re: VirtualBox и общие папки
  29. Re: VirtualBox и общие папки
  30. Re: VirtualBox и общие папки
  31. Re: VirtualBox и общие папки
  32. Re: VirtualBox и общие папки
  33. Re: VirtualBox и общие папки
  34. Re: VirtualBox и общие папки
  35. unixforum.org
  36. VirtualBox и общие папки (не видит)
  37. VirtualBox и общие папки
  38. Re: VirtualBox и общие папки
  39. Re: VirtualBox и общие папки
  40. Re: VirtualBox и общие папки
  41. Re: VirtualBox и общие папки
  42. Re: VirtualBox и общие папки
  43. Re: VirtualBox и общие папки
  44. Re: VirtualBox и общие папки
  45. Re: VirtualBox и общие папки
  46. Re: VirtualBox и общие папки
  47. Re: VirtualBox и общие папки
  48. Re: VirtualBox и общие папки
  49. Re: VirtualBox и общие папки
  50. Re: VirtualBox и общие папки
  51. Re: VirtualBox и общие папки
  52. Re: VirtualBox и общие папки
  53. Re: VirtualBox и общие папки
  54. Re: VirtualBox и общие папки
  55. Re: VirtualBox и общие папки
  56. Re: VirtualBox и общие папки
  57. Re: VirtualBox и общие папки
  58. Re: VirtualBox и общие папки
  59. Re: VirtualBox и общие папки
  60. Re: VirtualBox и общие папки
  61. Re: VirtualBox и общие папки
  62. Re: VirtualBox и общие папки

Getting /sbin/mount.vboxsf: mounting failed with the error: No such device #4

Hi
Getting the following error. Please would you recommend a path to resolution? Thank you

Failed to mount folders in Linux guest. This is usually because
the «vboxsf» file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:

mount -t vboxsf -o uid= id -u vagrant ,gid= getent group vagrant | cut -d: -f3 vagrant /vagrant
mount -t vboxsf -o uid= id -u vagrant ,gid= id -g vagrant vagrant /vagrant

The error output from the last command was:

stdin: is not a tty
/sbin/mount.vboxsf: mounting failed with the error: No such device

The text was updated successfully, but these errors were encountered:

ran into a similar issue myself.

If you haven’t already, you may need to rebuild the VirtualBox guest additions:

Works first time, but fails afterwards. Specially if you need this to work before shell script.

Went for a plugin:
vagrant vbguest plugin

This may be related to the missing kernel sources in your VM.

So try to install Guest Additions and check the log file for details, e.g. follow these steps and it VBoxLinuxAdditions fails, then check the /var/log/vboxadd-install.log for more details.

Like @esteban-xrow said, just install Vagrant plugin: vagrant-vbguest, which can keep your VirtualBox Guest Additions up to date.

@kiwenlau YES thank you that worked! vagrant plugin install vagrant-vbguest

I was able to resolve this on bento/centos-7.2 by performing the following:

yum update
yum install kernel-headers kernel-devel

Then reboot the vagrant, and run the following
sudo /opt/VBoxGuestAdditions-*/init/vboxadd setup

So I was fighting with this same issue for quite a while. rcvboxadd was complaining that I did not have kernel-headers installed. I am on CentOS 7 with kernel 3.10.0-957.21.2.el7.x86_64 and with just doing a yum install kernel-headers it was installing the latest of 3.10.0-957.21.3.el7.x86_64 which is a little newer and not matching my current kernel. So I erased the headers with yum and explicitly installed the version that matched my kernel. I also had to reinstall gcc. I then installed my specific kernel version of kernel-devel . With these now matching my kernel version, I then ran /usr/sbin/rcvboxadd setup and it finally built everything correctly and started the service up. After that I mounted my HOST folder to my Linux GUEST with: sudo mount -t vboxsf -o rw,uid=1000,gid=1000 REPOS

REPO is the name of the share in the properties of my VM in the Shared Folders section.

I hope this helps someone else out — I could’ve probably just updated my kernel to the already installed version of kernel-headers and kernel-devel — but either way, this small victory is a great way to finish off a Friday.

Источник

virtualbox.org

End user forums for VirtualBox

  • Board indexGuest systemsLinux Guests
  • Change font size
  • Print view
  • FAQ
  • Login

Shared folder won’t mount

by ianbasore » 19. Apr 2008, 23:58

Okay, I’m new here and I need some help.
I’ve never used linux before now, so bear with me.

I’m running VirtualBox 1.5.6 on a host system of Windows XP SP2.
In a virtual machine (through which I am typing now) I’m running Ubuntu 7.10.

Now, everything’s been going well so far, except I can’t get the shared folder to mount in Ubuntu.

I type the command «sudo mount -t vboxsf shared /home/ian/shared»

and I get this error: «/sbin/mount.vboxsf: mounting failed with the error: No such file or directory»

I don’t know what I’m doing wrong.
I’ve created the shared folder in Ubuntu in «shared» simply enough.
I’ve also used the Shared Folders utility in VirtualBox to create a folder called «shared» and all that.

I could use some help. please?
I think i’m just missing some step or some command.

by TiX » 20. Apr 2008, 12:54

Did you try to share a complete hard disk drive C: or D: ?
It it is the case you can forget it, there is a bug in VirtualBox 1.5.6.

You can either only share a subfolder or use VirtualBox 1.5.4.

Have a nice day.

by ianbasore » 20. Apr 2008, 19:43

by n6yga » 14. May 2008, 22:46

I am having the same stupid problem. Maybe I am just stupid today, I don’t know. But, the command:
mount.vboxsf XDrive /media/share WILL NOT WORK. I have spent the last four hours trying to get this to work.

Debian lenny. Vbox 1.5.6 on an Ubuntu 7.10 host.

by davmk » 15. May 2008, 01:43

Do you have installed guest additions? Because this commands works on my box.

Please note the destination folder must exists.

by ianbasore » 15. May 2008, 02:44

by tonne » 15. May 2008, 19:02

Ubuntu 8.04 on Vista Home Premium 64 bit.
Added a shared folder in vb:
Path t:temp
Name temp

In Ubuntu as root (sudo -s)
mount -tvboxsf temp /mnt

If mounting to /media/share make sure the folder exist.

by n6yga » 15. May 2008, 19:57

With guest additions installed, and a share created in VB, I get the «device not found» error everytime I try to mount a share.

Ubuntu 7.10. VB version 1.5.6

Guest is a daily build of Lenny, kernel 2.6.24-1. Guest additions installed against the kernel fine. No errors.

created a share /home/n6yga/VirtualDrive, name test.

as root, I enter mount.vboxsf test /media/share. The share folder does exist.

I get the «device not found» error ever time. No matter how I form the command.

I must be doing something really stupid cause I can’t see the error.

Also, mount -t vboxsf test /media/share errors out the same way.

by n6yga » 15. May 2008, 20:00

tonne wrote: Ubuntu 8.04 on Vista Home Premium 64 bit.
Added a shared folder in vb:
Path t:temp
Name temp

In Ubuntu as root (sudo -s)
mount -tvboxsf temp /mnt

If mounting to /media/share make sure the folder exist.

Just tried your exact command and got the same error: «no such device»

Any other ideas?
M.

by nico » 21. May 2008, 19:11

I just had the same problem, and I found a solution !

This worked for me, under Debian:

install Guest Additions

Code: Select all Expand viewCollapse view sudo modprobe vboxvfs Code: Select all Expand viewCollapse view sudo mount -t vboxsf shared /mnt/vbshared

then, it worked like a charm

by n6yga » 21. May 2008, 19:29

Nice work! I will give it a try and report back. How did you ever think to modprobe it? Wow!

by n6yga » 21. May 2008, 20:01

Ok, here’s the way it worked for me:

1. as root, install the virtualbox guest additons.
2. reboot the guest system (in this case a lenny install)
3. modprobe vboxvfs (reports nothing so all is well)
4. mount.vboxsf VirtualDrive /media/shared

Using the virtualbox command was the only way it would work for me. My version of vitualbox is 1.5.6

Obviously, VirtualDrive is a folder on the HOST system, in the /home/ directory.

I sincerely hope that this will help some other poor shlub who is guesting linux repos on a linux host.

Mark.
P.S. THANK YOU NICO. I don’t know why the new virtualbox kernel module doesn’t load after a reboot, but this works so I’ll move on.

by n6yga » 21. May 2008, 20:47

A smaller new problem:

Adding vboxvfs to /etc/modules should start that module at boot time. Unfortunately it does not.

I’ll keep at it and report back.

by lot » 22. May 2008, 20:00

n6yga wrote: A smaller new problem:

Adding vboxvfs to /etc/modules should start that module at boot time. Unfortunately it does not.

I’ll keep at it and report back.

I’m guessing you’re problem would be solved (in a cleaner way) by the solution I gave there: http://forums.virtualbox.org/viewtopic.php?t=6139

Doesn’t work for me

by stanley » 22. May 2008, 20:00

What does it mean when I do modprobe vboxvfs and it tells me FATAL ERROR module not found.

What’s supposed to put it wherever it’s supposed to be. I have run LinuxAdditions and it completed OK.

Источник

unixforum.org

Форум для пользователей UNIX-подобных систем

  • Темы без ответов
  • Активные темы
  • Поиск
  • Статус форума

VirtualBox и общие папки (не видит)

VirtualBox и общие папки

Сообщение Олександр » 29.02.2008 02:43

Re: VirtualBox и общие папки

Сообщение -sanches- » 29.02.2008 12:33

Re: VirtualBox и общие папки

Сообщение Олександр » 05.03.2008 12:30

Re: VirtualBox и общие папки

Сообщение landgraf » 05.03.2008 13:44

Re: VirtualBox и общие папки

Сообщение NIS » 06.03.2008 00:12

Re: VirtualBox и общие папки

Сообщение Олег777 » 08.03.2008 12:28

Re: VirtualBox и общие папки

Сообщение Олександр » 09.03.2008 20:07

А вот у меня как раз этого самого VirtualBox и не видно

Re: VirtualBox и общие папки

Сообщение landgraf » 09.03.2008 22:07

Re: VirtualBox и общие папки

Сообщение Олександр » 10.03.2008 23:24

Re: VirtualBox и общие папки

Сообщение Flaming » 06.10.2008 14:23

Re: VirtualBox и общие папки

Сообщение minder » 07.10.2008 11:00

Re: VirtualBox и общие папки

Сообщение Sabivan » 21.12.2008 13:05

основная система — XP, гостевая система — kubuntu 8.10

Использую версию 2.0.4 — но проблема та же.
Guest Additions установлены. Как справиться с неподключающейся флешкой в руководстве Virtualbox написано, а вот как бороться с No such device — увы нет

Re: VirtualBox и общие папки

Сообщение Flaming » 21.12.2008 13:12

Re: VirtualBox и общие папки

Сообщение Sabivan » 29.12.2008 16:06

Re: VirtualBox и общие папки

Сообщение Flaming » 29.12.2008 18:40

Re: VirtualBox и общие папки

Сообщение Sabivan » 30.12.2008 10:48

не,ну без ложки дёгтя просто никак не обойтись
обновить c 2.0.4 до 2.0.6 попробую, но сомневаюсь что это что-то даст.

Re: VirtualBox и общие папки

Сообщение grechan » 14.01.2009 16:51

Re: VirtualBox и общие папки

Сообщение SLEDopit » 14.01.2009 17:27

Re: VirtualBox и общие папки

Сообщение grechan » 14.01.2009 17:52

Re: VirtualBox и общие папки

Сообщение SLEDopit » 14.01.2009 17:59

Re: VirtualBox и общие папки

Сообщение basolov » 17.01.2009 18:30

Re: VirtualBox и общие папки

Сообщение durc » 17.01.2009 18:45

Re: VirtualBox и общие папки

Сообщение basolov » 17.01.2009 19:33

Re: VirtualBox и общие папки

Сообщение Ivan08 » 27.01.2010 10:53

У меня после этой команды вылазит вот такое:
/sbin/mount.vboxsf: mounting failed with the error: No such device

Что делать подскажите.

Re: VirtualBox и общие папки

Сообщение Vardo » 28.01.2010 06:51

я так понимаю проблема в правильной настройке сетевого интерфейса, тоже долго мучался получилось сделать так
1) Меню — Устройства — Сетевые адаптеры
2) Выбираем плату которая будет связующим звеном между компом и виртуалкой
3) Тип подключения: Сетевой мост
4) Имя: (если вдруг их несколько и одна смотрит в инет)
5) Ставим галочку «Кабель подключен»
6) Жмем ОК
7) Меню — Устройства — Общие папки
8) Добавляем новую папку

у меня в виртуалке винда поэтому я цепляюсь к компу так
На виртуалке идем в: Сетевое окружение — Отобразить компьютеры рабочей группы (сетевые задачи) — Microsoft Windows Network (другие места) — Вся сеть (другие места) — VirtualBox Shared Folders собственно там указанные папки

Re: VirtualBox и общие папки

Сообщение dedok2010 » 13.03.2010 18:45

Источник

unixforum.org

Форум для пользователей UNIX-подобных систем

  • Темы без ответов
  • Активные темы
  • Поиск
  • Статус форума

VirtualBox и общие папки (не видит)

VirtualBox и общие папки

Сообщение Олександр » 29.02.2008 02:43

Re: VirtualBox и общие папки

Сообщение -sanches- » 29.02.2008 12:33

Re: VirtualBox и общие папки

Сообщение Олександр » 05.03.2008 12:30

Re: VirtualBox и общие папки

Сообщение landgraf » 05.03.2008 13:44

Re: VirtualBox и общие папки

Сообщение NIS » 06.03.2008 00:12

Re: VirtualBox и общие папки

Сообщение Олег777 » 08.03.2008 12:28

Re: VirtualBox и общие папки

Сообщение Олександр » 09.03.2008 20:07

А вот у меня как раз этого самого VirtualBox и не видно

Re: VirtualBox и общие папки

Сообщение landgraf » 09.03.2008 22:07

Re: VirtualBox и общие папки

Сообщение Олександр » 10.03.2008 23:24

Re: VirtualBox и общие папки

Сообщение Flaming » 06.10.2008 14:23

Re: VirtualBox и общие папки

Сообщение minder » 07.10.2008 11:00

Re: VirtualBox и общие папки

Сообщение Sabivan » 21.12.2008 13:05

основная система — XP, гостевая система — kubuntu 8.10

Использую версию 2.0.4 — но проблема та же.
Guest Additions установлены. Как справиться с неподключающейся флешкой в руководстве Virtualbox написано, а вот как бороться с No such device — увы нет

Re: VirtualBox и общие папки

Сообщение Flaming » 21.12.2008 13:12

Re: VirtualBox и общие папки

Сообщение Sabivan » 29.12.2008 16:06

Re: VirtualBox и общие папки

Сообщение Flaming » 29.12.2008 18:40

Re: VirtualBox и общие папки

Сообщение Sabivan » 30.12.2008 10:48

не,ну без ложки дёгтя просто никак не обойтись
обновить c 2.0.4 до 2.0.6 попробую, но сомневаюсь что это что-то даст.

Re: VirtualBox и общие папки

Сообщение grechan » 14.01.2009 16:51

Re: VirtualBox и общие папки

Сообщение SLEDopit » 14.01.2009 17:27

Re: VirtualBox и общие папки

Сообщение grechan » 14.01.2009 17:52

Re: VirtualBox и общие папки

Сообщение SLEDopit » 14.01.2009 17:59

Re: VirtualBox и общие папки

Сообщение basolov » 17.01.2009 18:30

Re: VirtualBox и общие папки

Сообщение durc » 17.01.2009 18:45

Re: VirtualBox и общие папки

Сообщение basolov » 17.01.2009 19:33

Re: VirtualBox и общие папки

Сообщение Ivan08 » 27.01.2010 10:53

У меня после этой команды вылазит вот такое:
/sbin/mount.vboxsf: mounting failed with the error: No such device

Что делать подскажите.

Re: VirtualBox и общие папки

Сообщение Vardo » 28.01.2010 06:51

я так понимаю проблема в правильной настройке сетевого интерфейса, тоже долго мучался получилось сделать так
1) Меню — Устройства — Сетевые адаптеры
2) Выбираем плату которая будет связующим звеном между компом и виртуалкой
3) Тип подключения: Сетевой мост
4) Имя: (если вдруг их несколько и одна смотрит в инет)
5) Ставим галочку «Кабель подключен»
6) Жмем ОК
7) Меню — Устройства — Общие папки
8) Добавляем новую папку

у меня в виртуалке винда поэтому я цепляюсь к компу так
На виртуалке идем в: Сетевое окружение — Отобразить компьютеры рабочей группы (сетевые задачи) — Microsoft Windows Network (другие места) — Вся сеть (другие места) — VirtualBox Shared Folders собственно там указанные папки

Re: VirtualBox и общие папки

Сообщение dedok2010 » 13.03.2010 18:45

Источник

I’m running Debian 9 as Host and I installed correctly Windows 7 as guest by using Oracle VirtualBox (v. 5.2.6); both the OSs work fine and I need to have a folder shared between those 2 operative systems.

In order to be able to get this, I followed these steps:

  1. GuestAddition installation, by running, as super-user:

    apt-get install virtualbox-guest-dkms virtualbox-guest-x11 linux-headers-$(uname -r)

  2. Creating the candidate folder /home/quant/Scrivania/VirtualBox/Data by modifying the Oracle VirtualBox Manager settings (Shared Folders);

  3. mounting the device by running:

    mount -t vboxsf Data /home/quant/Scrivania/VirtualBox/Data/

At the point (3), I got the following error message in the terminal:

/sbin/mount.vboxsf: mounting failed with the error: No such device

It seems like the folder does not exist although I manually create the local folder and set it as shared folder in the VirtualBox manager.

Someone could suggest a solution?

Hope I has been clear when I asked the question. Thanks you all in advice!

asked Feb 25, 2018 at 22:50

Quant.Pi's user avatar

1

Your error: /sbin/mount.vboxsf: mounting failed with the error: No such device could be caused because you are mounting the SF with the same name for the share and mount point. They should be different (i.e share is called ~/share and mount point ~/host) You will also need to make sure you have followed these steps correctly:

  • Create a folder on the Host computer (ubuntu) that you would like to share, for example ~/share
  • Boot the Guest operating system in VirtualBox.
  • Select Devices -> Shared Folders…
  • Choose the ‘Add’ button.
  • Select ~/share
  • Optionally select the ‘Make permanent’ option

After you have completed that process, open your terminal on the host and run:

sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) /home/quant/Scrivania/VirtualBox/Data ~/host

(/home/quant/Scrivania/VirtualBox/Data and ~/host may have to be reversed or changed to the appropriate names)
If that step completes successfully on your Windows guest you should be able to run:

net use x: \vboxsvr[whatever your share folder's name is]

Keep your shared folder name simple such as ~/Data or ~/share instead of /home/quant/Scrivania/VirtualBox/Data as that may be another source for your issue. Good Luck!

answered Feb 25, 2018 at 23:44

kemotep's user avatar

kemotepkemotep

4,9507 gold badges16 silver badges34 bronze badges

I simply solved by following those steps; first of all install Oracle Virtual Box as follows:

  1. run as super-user nano /etc/apt/sources.list.d/virtualbox.list
  2. paste deb http://download.virtualbox.org/virtualbox/debian stretch contrib and after type ctrl+O and ctrl+X to save and quit respectively
  3. run from the terminal:

    • wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | apt-key add -

    • apt update

    • apt-get install virtualbox-5.2

    • apt-get install dkms

After, download the .iso image from the Oracle Repository and choosing the version you need on the basis of your host OS and install GuestAdditions by selecting from the virtual machine window menu

Device > Insert ISO image for GuestAdditions

and follow what suggested by the installation guide. Finally, go through

Devices > Shared Folder

and select the path in which is contained the folder you need to share.

Rui F Ribeiro's user avatar

Rui F Ribeiro

54.8k26 gold badges144 silver badges221 bronze badges

answered Mar 4, 2018 at 17:18

Quant.Pi's user avatar

Quant.PiQuant.Pi

413 silver badges8 bronze badges

I am using virtual box 4.3.6 in Windows 7 PC. I am trying to run Ubuntu 14.04 .
After installing ubuntu since the display was low resolution i tried to install VirtualboxGuestAdditions I downloaded VBoxGuestAdditions_4.3.10.iso and followed steps in question
mount gives unknown filesystem type ‘vboxsf’

Now I got optimum resolution but i am unable to mount the shared folder.

I used the command .

mount -t vboxsf sharedFolderName DestinationFolder

Now i am getting the error wrong fs type ..
I tried checking error using command

dmesg

and got

sf_read_super_aux err = -22

What I have done wrong ??
I have used the same method in fedora virtual image but with different VBoxGuestAddition version.

Community's user avatar

asked Apr 25, 2014 at 9:31

kernel's user avatar

I’ve fixed mine using the following way:

1) Update system’s packages

$ sudo apt-get update

2) install virtual box guest additions (referenced from here)

$ sudo apt-get install virtualbox-guest-additions-iso

3) Now install guest additional package (Crucial step! People generally miss this which creates an error “Unknown file type “vboxsf”)

$ apt-get install virtualbox-guest-utils

NOTES:

You might face the following problems:

  • No such device:

    root@packer-virtualbox-iso:~/new# mount -t vboxsf new ~/new

    /sbin/mount.vboxsf: mounting failed with the error: No such device

-> YOU HAVE TO RESTART TO ALLOW CHANGES TO TAKE EFFECT.

  • you might experience the following error:

    vagrant@packer-virtualbox-iso:~$ sudo mount -t vboxsf new ~/new

    /sbin/mount.vboxsf: mounting failed with the error: Protocol error

-> TO RESOLVE THIS, YOU MIGHT HAVE TO CHANGE THE NAME OF THE MOUNTING DEVICE/FOLDER (e.g. here is new)

-> OR FOLLOW THIS if NOT FIXED (REF)

  1. Made shared folder on host system, D:Virtual Boxshared;
  2. Ran VirtualBox;
  3. Ran virtual machine;
  4. Linux finished booting, I logged in;
  5. I added shared folder D:Virtual Boxshared, named it “shared”;
  6. I made guest shared folder being logged as a user, called it “shared_folder”. /home//shared_folder;
  7. $su;
  8. Being logged as a root I mounted the shared folder: #mount -t vboxsf shared /home//shared_folder;
  9. And all began to work.

May be the problem was host and guest folders should be the same names?

answered Feb 24, 2015 at 13:52

Muhammad Soliman's user avatar

1

After searching web a lot i got some info regrading this from VirtualBox.org itself.
In this new version of Guest Additions it has missed a symlink while installation.
This breaks the path of /sbin/mount.vboxsf so that the mount command fails.

Using this command i was able to fix the bug.

sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions

answered Apr 28, 2014 at 6:45

kernel's user avatar

kernelkernel

1211 gold badge1 silver badge7 bronze badges

you don’t mount the .is this way.

  1. open virtual box main screen.
  2. select your machine.
  3. choose ‘settings’.
  4. select the ‘storage’ item.
  5. one of the controllers should have a «disc» options, meaning DVDCD drive, if not you can add one using the disc icon once selecting the controller (the one with the ‘+’).
  6. once you have one you can change the .iso file it’s using in the ‘attributes’ section on the right.

answered Apr 25, 2014 at 14:52

c0d3Sc1b3r's user avatar

1

$ apt-get install virtualbox-guest-utils

did not work (permission denied). Instead use:

$ sudo apt-get install virtualbox-guest-utils

This worked fine with Virtual box 6.2 and Ubuntu 18.04.2.

I say Reinstate Monica's user avatar

answered Aug 1, 2019 at 8:30

Björn Wagner's user avatar

How to make folder sharing from the start for working Ubuntu guest OS:

As of now (version 6.0.10 of VirtualBox) there are make permanent and auto-mount options for shared folder, also mount point (At) in GUI of virtualbox. For me the following worked:

  1. On guest Ubuntu: sudo apt-get install virtualbox-guest-utils
  2. Add shared folder in GUI of VirtualBox.
  3. Restart guest OS

Folder on mount point specified in GUI was created automatically and ls showed files located on host Windows PC.

answered Sep 2, 2019 at 14:58

Alex Martian's user avatar

Thanks for your insights; the following worked for me:

DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=19.3
DISTRIB_CODENAME=tricia


# How to set up VirtualBox directory sharing
sudo apt-get update
sudo apt-get upgrade

If you get errors above you might have to run sudo apt --fix-broken install

sudo apt-get upgrade
sudo reboot
sudo apt-get install virtualbox-guest-utils

***Reload your Virtualbox
mkdir -p ~/Share_Guest
sudo mount -t vboxsf Share_Host ~/Share_Guest

If you get an error like this:

/sbin/mount.vboxsf: mounting failed with the error: No such file or directory

you will have to make the guest directory manually using mkdir -p ~/Share_Guest

answered May 12, 2020 at 17:55

PrimeTime's user avatar

Добрый день,
есть ли какой-нибудь нормальный/извращенный/шаманский способ увидеть содержимое общей папки Virtual Box в AltLinux 6.0? или вообще способ перекинуть информацию на виртуальную машину с AltLinux 6.0?


Записан


Добрый день,
есть ли какой-нибудь нормальный/извращенный/шаманский способ увидеть содержимое общей папки Virtual Box в AltLinux 6.0? или вообще способ перекинуть информацию на виртуальную машину с AltLinux 6.0?

Самый простой способ передачи файлов с Linux в виртуалку — через scp. :)

По поводу использования общих папок написал на http://www.altlinux.org/VirtualBox#.D0.9E.D0.B1.D1.89.D0.B8.D0.B5_.D0.BF.D0.B0.D0.BF.D0.BA.D0.B8:

1. Установите в гостевой операционной системе дополнения гостевой операционной системы и virtualbox-guest-utils:

apt-get install kernel-modules-virtualbox-addition-$(uname -r | cut -d "-" -f2,3) virtualbox-guest-utils2. Добавьте в свойствах виртуальной машины (раздел «Общие папки») папку. Для этого выберите путь и укажите имя папки (по умолчанию используется имя последней папки в указанном пути).
3. В гостевой операционной системе выполните

mount -t vboxsf <имя папки> /mnt4. Общая папка становится доступна в /mnt.


Записан

Андрей Черепанов (cas@)


отказывается =( пишет
reading Package Lists… Done
Building Dependency Tree…Done
Selecting kernel-modules-virtualbox-addition-std-def#4.0.12-alt1.M60P.2.196615.0.M60P.1 for ‘kernel-modules-virtualbox-addition-std-def’
Selecting kernel-modules-virtualbox-addition-std-def#4.0.12-alt1.M60P.2.196615.0.M60P.1 is already the newest version.
E: Couldn’t find package virtualbox-guest-utils

а вот когда я устанавливаю дополнения, я не могу найти файл VBoxLinuxAdditions-x86.run, есть VBoxLinuxAdditions.run и VBoxLinuxAdditions-x86.exe.
а когда я делаю автозапуск пишет что все путем, но Failed на против пункта
Building the main Guest Additions module


Записан


отказывается =( пишет
reading Package Lists… Done
Building Dependency Tree…Done
Selecting kernel-modules-virtualbox-addition-std-def#4.0.12-alt1.M60P.2.196615.0.M60P.1 for ‘kernel-modules-virtualbox-addition-std-def’
Selecting kernel-modules-virtualbox-addition-std-def#4.0.12-alt1.M60P.2.196615.0.M60P.1 is already the newest version.
E: Couldn’t find package virtualbox-guest-utils

Подключайте онлайновые репозитории и ставьте оттуда: http://www.altlinux.org/Install

а вот когда я устанавливаю дополнения, я не могу найти файл VBoxLinuxAdditions-x86.run, есть VBoxLinuxAdditions.run и VBoxLinuxAdditions-x86.exe.
а когда я делаю автозапуск пишет что все путем, но Failed на против пункта
Building the main Guest Additions module

Незачем ставить дополнения из стороннего источника и собирать их. Не занимайтесь самодеятельностью.


Записан

Андрей Черепанов (cas@)


В моем AltLinux’е нет утилиты Synaptic, и пункта «Программное обеспечение» в ALT Linux Control Center тоже нет. А в новом дистрибутиве, правда я установила сервер, вообще нет графической оболочки, только командная строка.

В статье http://www.altlinux.org/Install написано, что править нужно файлы /etc/apt/sources.list.d/*.list
А вот тут: http://sysadmins.ws/viewtopic.php?f=8&t=1236 , что править файл /etc/apt/sources.list

При подключении вот этиx gbitn NOT FOUND.

http://altlinux.mega.kg/pub/distributions/p6/branch/ i586 classic
http://altlinux.mega.kg/pub/distributions/p6/branch/ noarch classic

http://altlinux.org/pub/distributions/ALTLinux/ говорит: 0% Connecting to altlinux.org (194.107.17.137) на этом останавливается и больше не хочет со мной общаться.

rpm http://ftp.altlinux.org/pub/distributions/ALTLinux/p6/branch/ i586 classic
rpm http://ftp.altlinux.org/pub/distributions/ALTLinux/p6/branch/ noarch classic

rpm http://ftp.altlinux.org/pub/distributions/ALTLinux/t6/branch/ i586 classic
rpm http://ftp.altlinux.org/pub/distributions/ALTLinux/t6/branch/ noarch classic

А вот эти подошли. Он чего-то скачал и сказал что все «OK u DONE»

apt-get install kernel-modules-virtualbox-addition-$(uname -r | cut -d "-" -f2,3) virtualbox-guest-utilsЭта команда тоже выполнилась без ошибок, а вот при

mount -t vboxsf <имя папки> /mnt
пишет
/sbin/mount.vboxsf: mounting failed with the error: No such device


Записан


А вот в новом дистрибутиве Altlinux 6.0, который весит 3 с половиной гига было немного по-другому. опять же подошли эти репозитории, другие нет. при этом выдал пару ошибок, но в конечном счете что-то подгрузил.
при выполнении команды

apt-get install kernel-modules-virtualbox-addition-$(uname -r | cut -d "-" -f2,3) virtualbox-guest-utils
много всего скачивал и даже спросил разрешение на что-то. к сожалению повторить команду оказывается не могу, ибо он мне говорит, что все установлено. я согласилась и он еще долго что-то закачивал и распаковывал. но в итоге при

mount -t vboxsf <имя папки> /mntпишет NO such device =((((

Вру, в этом дистрибутиве после перезагрузки все заработало. а вот в моем обрезанном увы =(

« Последнее редактирование: 15.04.2013 13:33:05 от KellyDink »


Записан


mount -t vboxsf <имя папки> /mnt

mount -t vboxsf //vboxsrv/имя_папки /mnt


Записан

Сноси Винду, переходи на Линукс ! :)


не помогло, ответ все тот же =(
/sbin/mount.vboxsf: mounting failed with the error: No such device


Записан


На будущее, Кентавр это два дистрибутива в одном образе: серверный вариант (может быть и без кнопочек — графической среды) и десктоп (с графическим окружением Gnome) — рабочая станция. Остальные (KDesktop, Simply Linux) ориентированы на декстоп, то есть, идут «из коробки» с графическим окружением.

В статье http://www.altlinux.org/Install написано, что править нужно файлы /etc/apt/sources.list.d/*.list
А вот тут: http://sysadmins.ws/viewtopic.php?f=8&t=1236 , что править файл /etc/apt/sources.list

По большому счёту это не принципиально, но считается, что лучше вносить изменения в /etc/apt/sources.list.d/*.list, где есть, например, alt.list, в котором достаточно раскоментировать две строчки (с архитектурой, в вашем случае это i586 — 32-х битный вариант) и обязательно архитектуронезависымый — noarch. Все другие лучше закоментировать, в том числе и источник на болванке — cdrom.

« Последнее редактирование: 15.04.2013 16:00:16 от sb »


Записан


1. Репозитории лучше ставить так:
apt-repo rm all
apt-repo add p6

2. После установки модуля ядра надо его загрузить или просто перезагрузиться.


Записан

Андрей Черепанов (cas@)


1. Репозитории лучше ставить так:
apt-repo rm all
apt-repo add p6

2. После установки модуля ядра надо его загрузить или просто перезагрузиться.

мой altlinux утверждает что не знает такой команды.

а в чем разница между сервером и клиентом? в очередной раз при установке я галочками отметила все возможные графические модули и он меня не спросил сервер мне устанавливать или клиент.
хотя в предыдущий раз, галочки оставила по умолчанию и он меня спросил. но при установке сервера не установил графическую оболочку. ее можно как-то доставить? команды rmp gnome, rmp xorg не помогли =(

а еще кто-нибудь связывался с установкой cryptopro на altlinux? я вроде все пакеты по инструкции установила, тока при попытки запроса сертификата не дал выбрать вообще ни один криптопровайдер. завис на «ожидании».

« Последнее редактирование: 17.04.2013 10:05:46 от KellyDink »


Записан


мой altlinux утверждает что не знает такой команды.

Смотрите http://www.altlinux.org/Su (повышение прав пользователя до рута) либо установите

apt-get update && apt-get install apt-repo


Записан


apt-get install apt-repo
помогло, команды выполнила. ошибки нет.
даже папку подключила! спасибо!

тока с криптопро справиться не могу =(


Записан


тока с криптопро справиться не могу =(

А давайте, наверное, в отдельную тему с этим (наверное, в разное), чтобы всё в кучу не валить :) Там обстоятельно опишите, что нужно получить и что (и как) вы для этого делаете. Может кто чего и подскажет.


Записан



Записан


Понравилась статья? Поделить с друзьями:
  • Sberpay ошибка при оплате
  • Sbds interactive codes ошибка
  • Sbc 120 ошибка f03
  • Saving error тильда
  • Saving changes is not permitted sql server ошибка