题外话:在centos6.5下,我使用vmware,在安装完windows(xp、win7)系统后,在安装vmware-tools时,总是会导致centos崩溃,试过关闭selinux等操作均无效,但是virtualbox没有问题,这也是我使用virtualbox的原因。但win7启用不了透明效果,可能就这点差异影响的吧,感觉vmware更底层一点。

但是我在windows下时,以及换了系统后,如openSUSE、fedora下时,则不会导致崩溃,所以应该不是硬件问题。

硬件环境:thinkpad x230

将系统换成了fedora,虚拟机总是免不了的,因为前面在centos下时用的是virtualbox,已经有了创建安装好的虚拟机文件,因此这会自然也要装个virtualbox。

官方下载中,没有适用于最新的fedora 20的安装包,因此我下载的是相对新的:

VirtualBox-4.3-4.3.10_93012_fedora18-1.x86_64.rpm

安装时,发现缺少依赖:

[liyd@localhost Downloads]$ sudo rpm -ivh VirtualBox-4.3-4.3.10_93012_fedora18-1.x86_64.rpm

[sudo] password for liyd:

warning: VirtualBox-4.3-4.3.10_93012_fedora18-1.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 98ab5139: NOKEY

error: Failed dependencies:

        libSDL-1.2.so.0()(64bit) is needed by VirtualBox-4.3-4.3.10_93012_fedora18-1.x86_64

        libpng15.so.15()(64bit) is needed by VirtualBox-4.3-4.3.10_93012_fedora18-1.x86_64

        libpng15.so.15(PNG15_0)(64bit) is needed by VirtualBox-4.3-4.3.10_93012_fedora18-1.x86_64

[liyd@localhost Downloads]$

想通过yum安装,下面两个源里存在,但是第一个,发现:

[liyd@localhost Downloads]$ sudo yum install libSDL

Loaded plugins: langpacks, refresh-packagekit

No package libSDL available.

Error: Nothing to do

[liyd@localhost Downloads]$

居然没有这个包,没办法,还是得手动网上找啊,到pkgs上搜一下,该包居然没有fedora版的,下载一个openSUSE的将就吧,同样是rpm格式。

下载后安装,libSDL居然依赖libesd,而libesd又依赖libaudiofile,真是一层套一层啊,没办法,源里同样没有只能麻烦点一个个手动下了,终于搞齐,安装:

[liyd@localhost Downloads]$ sudo rpm -ivh libSDL-1_2-0-1.2.15-60.16.x86_64.rpm

warning: libSDL-1_2-0-1.2.15-60.16.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID c862b42c: NOKEY

error: Failed dependencies:

        libesd.so.0()(64bit) is needed by libSDL-1_2-0-1.2.15-60.16.x86_64

[liyd@localhost Downloads]$ sudo rpm -ivh libesd0-0.2.41-43.18.x86_64.rpm

warning: libesd0-0.2.41-43.18.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID e1bf12f6: NOKEY

error: Failed dependencies:

        libaudiofile.so.1()(64bit) is needed by libesd0-0.2.41-43.18.x86_64

[liyd@localhost Downloads]$ sudo rpm -ivh libaudiofile1-0.3.6-39.4.x86_64.rpm

warning: libaudiofile1-0.3.6-39.4.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID e1bf12f6: NOKEY

Preparing...                          ################################# [100%]

Updating / installing...

   1:libaudiofile1-0.3.6-39.4         ################################# [100%]

[liyd@localhost Downloads]$ sudo rpm -ivh libesd0-0.2.41-43.18.x86_64.rpm

warning: libesd0-0.2.41-43.18.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID e1bf12f6: NOKEY

Preparing...                          ################################# [100%]

Updating / installing...

   1:libesd0-0.2.41-43.18             ################################# [100%]

[liyd@localhost Downloads]$ sudo rpm -ivh libSDL-1_2-0-1.2.15-60.16.x86_64.rpm

warning: libSDL-1_2-0-1.2.15-60.16.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID c862b42c: NOKEY

Preparing...                          ################################# [100%]

Updating / installing...

   1:libSDL-1_2-0-1.2.15-60.16        ################################# [100%]

[liyd@localhost Downloads]$ sudo rpm -ivh VirtualBox-4.3-4.3.10_93012_fedora18-1.x86_64.rpm

warning: VirtualBox-4.3-4.3.10_93012_fedora18-1.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 98ab5139: NOKEY

Preparing...                          ################################# [100%]

Updating / installing...

   1:VirtualBox-4.3-4.3.10_93012_fedor################################# [100%]

Creating group 'vboxusers'. VM users must be member of that group!

No precompiled module for this kernel found -- trying to build one. Messages

emitted during module compilation will be logged to /var/log/vbox-install.log.

Stopping VirtualBox kernel modules                         [  OK  ]

Recompiling VirtualBox kernel modules                      [FAILED]

  (Look at /var/log/vbox-install.log to find out what went wrong)

[liyd@localhost Downloads]$

安装一路绿灯,但是linux版virtualbox的通病还是存在,初始化失败了。跟在openSUSE下时一样,安装依赖包:

sudo yum install make gcc gcc-c++ kernel kernel-devel

之后重启系统,运行:

sudo /etc/init.d/vboxdrv setup

再启动virtualbox,熟悉的界面终于出现了!

你可能感兴趣的内容
openSUSE安装VirtualBox 收藏,5463 浏览
1条评论
9125015 1年前
嘿嘿,你去官网下一个,内容完整。

selfly

交流QQ群:32261424
Owner