GuestAdditions versions on your host (6.1.32) and guest (6.1.22) do not match

作者: cayman 分类: 未分类 发布时间: 2022-03-08 11:14

解决方法:

vagrant plugin install vagrant-vbguest 
vagrant halt
vagrant up
# 重新连接
vagrant ssh
# 执行如下命令, 这是配置安装vboxadd的环境**  
VBOX_VERSION=6.1.32
cd ~
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
sudo mkdir /media/VBoxGuestAdditions
sudo mount -o loop,ro VBoxGuestAdditions_$VBOX_VERSION.iso /media/VBoxGuestAdditions
sudo sh /media/VBoxGuestAdditions/VBoxLinuxAdditions.run
rm -rf VBoxGuestAdditions_$VBOX_VERSION.iso
sudo umount /media/VBoxGuestAdditions
sudo rmdir /media/VBoxGuestAdditions
sudo ln -s /opt/VBoxGuestAdditions-$VBOX_VERSION/init/vboxadd /etc/init.d
sudo reboot

发表评论

您的电子邮箱地址不会被公开。