/sbin/mount.vboxsf:mounting failed with the Error:no such device

Source: Internet
Author: User
Tags vm virtualbox


Centos7 VM VirtualBox set shared directory times wrong.


Step One: Create a VM VirtualBox shared directory

1. Create a shared directory of VMs under window D:\workspace

2. Create a shared directory under Linux mkdir/mnt/workspace

3. Set up a shared directory on the VM operator interface


Step Two: Install the control

1. Perform Linux, install controls

Yum Groupinstall "GNOME Desktop" "Graphical administration Tools"

Ln-sf/lib/systemd/system/runlevel5.target/etc/systemd/system/default.target

2. Reboot the system, enter the interface of the CENTOS7 system, and then install the enhanced function on the VM's operating interface, press the prompt to click Run Install



Step Three: Mount the shared disk

Mount-t vboxsf Workspace/mnt/workspace

Ln-s/mnt/workspace/home/daiyu (soft connect to user Daiyu)


Step three error:/sbin/mount.vboxsf:mounting failed with the Error:no such device


Solution:

Yum Clean All
Yum Update
Yum Install kernel
Yum Install Kernel-devel
Yum Install Kernel-headers
Yum Install GCC
Yum Install make
Reboot


Cd/opt/vboxguestadditions-*/init
./vboxadd Setup
Reboot


perform step three again and succeed.


Original: http://blog.csdn.net/daiyudong2020/article/details/58073520


End;



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.