美文网首页
linux上安装virtualbox增强工具

linux上安装virtualbox增强工具

作者: linice | 来源:发表于2018-05-16 16:06 被阅读0次

    CentOS虚拟机上安装VBoxLinuxAdditions

    1. VirtualBox上选择虚拟机(如CMe10) > 设置 > 存储 > 控制器: IDE > 挂载VBoxGuestAdditions.iso文件

    2. 在CentOS虚拟机上, 执行:

    sudo yum -y install kernel-devel bzip2 gcc
    sudo mount /dev/cdrom /mnt/tmp/
    cd /mnt/tmp
    sudo bash VBoxLinuxAdditions.run
    
    成功输出:
    [los@CMe10 tmp]$ sudo bash VBoxLinuxAdditions.run
    Verifying archive integrity... All good.
    Uncompressing VirtualBox 5.2.1 Guest Additions for Linux........
    VirtualBox Guest Additions installer
    Removing installed version 5.2.1 of VirtualBox Guest Additions...
    Copying additional installer modules ...
    Installing additional modules ...
    VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.
    VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what went wrong
    VirtualBox Guest Additions: Starting.
    

    另, 如果不安装该扩展, 则挂载VirtualBox共享目录时, 会报错:

    mount: unknown filesystem type 'vboxsf'
    

    注: VBoxGuestAdditions.iso文件在VirtualBox的安装根目录下.

    相关文章

      网友评论

          本文标题:linux上安装virtualbox增强工具

          本文链接:https://www.haomeiwen.com/subject/teapdftx.html