【问题标题】:how to install virtualbox on RHEL 6 without using yum?如何在不使用 yum 的情况下在 RHEL 6 上安装 virtualbox?
【发布时间】:2017-02-23 03:36:14
【问题描述】:

我的公司有 yum 的防火墙规则,所以我们只能使用 rpm 在 RHEL 6 SERVER 上安装软件。所以,我有一个任务是在上面安装 virtualbox 5.1。我使用了 virtualbox 网站上的 rpm 并安装了它,但它因 2 个依赖项而失败,我也安装了它们。然后我得到了下面的错误。我只是用谷歌搜索我需要一些内核开发 rpm,但我不知道,在那之后我该怎么做以及让虚拟机运行我还需要什么。

# virtualbox
  WARNING: The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (2.6.32-642.4.2.el6.x86_64) or it failed to load. Please recompile the kernel module and install it by

       sudo /sbin/vboxconfig

     You will not be able to start VMs until this problem is fixed.

Qt FATAL:QXcbConnection:无法连接到显示器 中止

【问题讨论】:

  • 为什么有人不回复我的问题,如果有问题请告诉我,我会更正
  • Stack Overflow 适用于编程问题。由于您的问题与编程无关,因此如果在更合适的网站上提问,您会得到更好的回答。例如,Unix & LinuxSuper User

标签: virtualbox rhel6


【解决方案1】:

安装 rpm 时会有很多依赖项。您需要一一检查并安装RPM。建议您建立不需要互联网的本地 yum 存储库。您应该使用 rhel 6 iso 文件来构建本地存储库。并下载虚拟盒 rpm,并尝试使用 yum 实用程序安装它。 yum 将使用本地 repo 进行依赖解析。

构建仓库: 1.挂载DVD

[root@lh1 Packages]# cd /etc/yum.repos.d
[root@lh1 yum.repos.d]# vi dvd.repo
[root@lh1 yum.repos.d]# cat dvd.repo
[DVD_ISO]
name= Linux 6
baseurl=file:///mnt/cdrom
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY
gpgcheck=1
enabled=1
[root@lh1 rpm-gpg]# yum clean all
Loaded plugins: rhnplugin


[Errno 2] No such file or directory: '/var/cache/yum/x86_64/6Server'

[root@lh1 rpm-gpg]# yum repolist
Loaded plugins: rhnplugin
This system is not registered with ULN.
ULN support will be disabled.
DVD_ISO                                                                                                      | 3.7 kB     00:00 ...
DVD_ISO/primary_db                                                                                           | 3.1 MB     00:00 ...
repo id                                                    repo name                                                          status
DVD_ISO                                                    Linux 6                                                     3,379
repolist: 3,379

【讨论】:

    猜你喜欢
    • 2020-07-20
    • 1970-01-01
    • 1970-01-01
    • 2016-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多