ITPub博客

首页 > 数据库 > PostgreSQL > VirtualBox安装

VirtualBox安装

原创 PostgreSQL 作者:husthxd 时间:2020-06-03 14:23:27 0 删除 编辑

简单记录一下VirtualBox的安装过程,出现的问题以及解决方案.

下载安装包

目前的最新版本是6.1.18, 下载链接

执行安装

双击执行安装,安装的时候可能会出现回退,然后提示出现严重错误,解决方法为:
1.启动服务Device Install Service和Device Setup Service,出错原因没有仔细查看日志信息,猜测是VirtualBox安装时需安装网卡等设备;
2.清理注册表:下载CCleaner,清理垃圾注册信息

设置共享文件夹

1.新增共享文件夹:虚拟机设置中新增共享文件夹,选择Windows主机的共享文件夹,可不填挂载点
2.安装增强功能:
A.添加虚拟光驱
B.挂载光驱
mkdir -p /media/drive
mount -t auto /dev/cdrom /media/drive/
C.执行增强功能安装脚本
cd /media/drive/
sh VBoxLinuxAdditions.run
如安装过程出现错误”Could not find the X.Org or XFree86 Window System, skipping”,安装相应的组件即可
yum -y install xorg-x11-drivers xorg-x11-utils
重新执行此脚本:

    [root@localhost drive]# sh ./VBoxLinuxAdditions.run
    Verifying archive integrity... All good.
    Uncompressing VirtualBox 6.1.8 Guest Additions for Linux........
    VirtualBox Guest Additions installer
    Removing installed version 6.1.8 of VirtualBox Guest Additions...
    Copying additional installer modules ...
    Installing additional modules ...
    VirtualBox Guest Additions: Starting.
    VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
    modules.  This may take a while.
    VirtualBox Guest Additions: To build modules for other installed kernels, run
    VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
    VirtualBox Guest Additions: or
    VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
    VirtualBox Guest Additions: Building the modules for kernel
    3.10.0-693.el7.x86_64.
    VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what
    went wrong
    VirtualBox Guest Additions: Running kernel modules will not be replaced until
    the system is restarted

虽然提示出错,实际上一安装成功,进入/media目录可看到挂载的共享文件夹(以sf_打头).

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/6906/viewspace-2695938/,如需转载,请注明出处,否则将追究法律责任。

全部评论
ITPUB数据库版块资深版主,对Oracle、PostgreSQL有深入研究。

注册时间:2007-12-28

  • 博文量
    1501
  • 访问量
    3964001