vagrant centos7 虚拟机升级内核之后无法挂载 vagrant 目录

错误信息

The error output from the last command was:

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

解决方案

这个出现的原因是 升级 linux 内核 将导致 虚拟机的Guest无法访问, 知道重建并且运行 以下的命令

It turns out, upgrading the Linux kernel will cause the Virtual Box Guest Additions to stop working until they are rebuilt by running the following command in the VM

1
sudo /etc/init.d/vboxadd setup

I had upgraded the kernel without thinking about it when I ran yum update (similar to apt-get upgrade) to get updates to other software.

Alternatively, if you install the dkms package as described here, then the kernel module should be automatically updated when the kernel is updated.


语雀镜像 : vagrant centos7 虚拟机升级内核之后无法挂载 vagrant 目录 ,点此 提问

vagrant centos7 虚拟机升级内核之后无法挂载 vagrant 目录

https://wulicode.com/ops/vagrant-centos7-xu-ni-ji-sheng-ji-nei-he-zhi-hou-w.html

作者

Duoli

发布于

2021-06-26

更新于

2022-12-08

许可协议

评论