Linux下安装virtual box

Linux下安装virtual box

1 下载virtual box 地址:
https://www.virtualbox.org/wiki/Linux_Downloads
需要确定linux 系统OS的发行版本

2 安装
加权限之后rpm -ivh 加包名

3安装过程中出现过错误:
[root@localhost ~]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel module [FAILED]
[root@localhost ~]# cat /var/log/vbox-install.log

. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:183: *** Error: unable to find the sources of your current Linux kernel
. Specify KERN_DIR=<directory> and run Make again.  Stop.
Makefile:183: *** Error: unable to find the sources of your current Linux kernel
. Specify KERN_DIR=<directory> and run Make again.  Stop.

原因:缺少kernel的source文件
使用yum 安装。
yum install kernel
另外还需要安装gcc

安装完成之后需要reboot
再重新运行/etc/init.d/vboxdrv setup

>> /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules                         [  OK  ]
Recompiling VirtualBox kernel modules                      [  OK  ]
Starting VirtualBox kernel modules                         [  OK  ]


附加几个命令:

启动vnc server:vncserver

在服务器端修改vmcserver的密码: vncpasswd

yum 安装命令:

yum install

yum clean all 清除缓存


  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

惹不起的程咬金

来都来了,不赏点银子么

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值