无桌面环境的Ubuntu如何启动安装好的VirtualBox

 warcraft04 发布于 2022-10-26 22:36

环境

Linux localhost 3.13.0-24-generic 
#46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 
x86_64 x86_64 x86_64 GNU/Linux
服务器上的主机,没有桌面端

virtualbox:

virtualbox-5.0_5.0.4-102546~Ubuntu~trusty_amd64
已安装

问题

root@localhost:~/workspace/jenkins-docker-ansible# VBoxManage --version
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (3.13.0-24-generic) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /etc/init.d/vboxdrv setup

         You will not be able to start VMs until this problem is fixed.
5.0.4r102546
root@localhost:~/workspace/jenkins-docker-ansible# sudo /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules ...done.
Recompiling VirtualBox kernel modules ...failed!
  (Look at /var/log/vbox-install.log to find out what went wrong)
root@localhost:~/workspace/jenkins-docker-ansible# 

个人看法

原因是没有启动virtualbox,但是启动命令默认是开启图形化界面的,主机没有图形化界面。该如何解决这个问题?

1 个回答
  • 问题解决了。

    • 执行sudo /etc/init.d/vboxdrv setup的时候报了以下信息:

    Stopping VirtualBox kernel modules ...done.
    Recompiling VirtualBox kernel modules ...failed!

    重新编译失败,然后我检查了下主机的配置,发现gcc,make等软件都没有安装

    sudo apt-get install gcc make build-essential

    然后就可以了。

    • 非桌面启动
      参考以下:
      使用命令行启动 VirtualBox 虚拟机
      VirtualBox 命令行启动
      VirtualBox命令行创建虚拟机和管理虚拟机

    2022-10-27 01:45 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有