CentOS VirtualBox 설치

CentOS에 VirtualBox 설치

1 virtualbox repo 추가[ | ]

[root@zetawiki ~]# cd /etc/yum.repos.d
[root@zetawiki yum.repos.d]# wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
--2015-12-08 13:19:24--  http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
Resolving download.virtualbox.org... 123.215.198.18, 123.215.198.10
Connecting to download.virtualbox.org|123.215.198.18|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 259 [text/plain]
Saving to: “virtualbox.repo”

100%[============================================================>] 259         --.-K/s   in 0s      

2015-12-08 13:19:24 (19.6 MB/s) - “virtualbox.repo” saved [259/259]
[root@zetawiki yum.repos.d]# cd
[root@zetawiki ~]# yum repolist
Loaded plugins: fastestmirror, replace, security
Loading mirror speeds from cached hostfile
 * epel: mirror01.idc.hinet.net
 * rpmforge: ftp.neowiz.com
 * webtatic: us-east.repo.webtatic.com
virtualbox/signature                                                           |  198 B     00:00     
Retrieving key from https://www.virtualbox.org/download/oracle_vbox.asc
Importing GPG key 0x98AB5139:
 Userid: "Oracle Corporation (VirtualBox archive signing key) <info@virtualbox.org>"
 From  : https://www.virtualbox.org/download/oracle_vbox.asc
Is this ok [y/N]: y
virtualbox/signature                                                           |  951 B     00:08 ... 
virtualbox/primary                                                             | 7.7 kB     00:00     
virtualbox: [#############################################################                    ] 28/37
repo id                    repo name                                                            status
epel                       Extra Packages for Enterprise Linux 6 - x86_64                       11,906
rpmforge                   RHEL 6 - RPMforge.net - dag                                           4,718
varnish-4.0                Varnish 4.0 for Enterprise Linux                                         34
virtualbox                 Oracle Linux / RHEL / CentOS-6 / x86_64 - VirtualBox                     28
webtatic                   Webtatic Repository EL6 - x86_64                                        285
repolist: 16,971
[root@zetawiki ~]# yum list VirtualBox*
Loaded plugins: fastestmirror, replace, security
Loading mirror speeds from cached hostfile
 * epel: mirror01.idc.hinet.net
 * rpmforge: ftp.neowiz.com
 * webtatic: us-east.repo.webtatic.com
Available Packages
VirtualBox-3.2.x86_64                          3.2.28_100435_el6-1                          virtualbox
VirtualBox-4.0.x86_64                          4.0.36_104075_el6-1                          virtualbox
VirtualBox-4.1.x86_64                          4.1.44_104071_el6-1                          virtualbox
VirtualBox-4.2.x86_64                          4.2.36_104064_el6-1                          virtualbox
VirtualBox-4.3.x86_64                          4.3.34_104062_el6-1                          virtualbox
VirtualBox-5.0.x86_64                          5.0.10_104061_el6-1                          virtualbox

2 yum 설치[ | ]

[root@zetawiki ~]# yum install VirtualBox-5.0
... (생략)
======================================================================================================
 Package                  Arch             Version                         Repository            Size
======================================================================================================
Installing:
 VirtualBox-5.0           x86_64           5.0.10_104061_el6-1             virtualbox            72 M

Transaction Summary
======================================================================================================
Install       1 Package(s)

Total download size: 72 M
Installed size: 164 M
Is this ok [y/N]: y
Downloading Packages:
VirtualBox-5.0-5.0.10_104061_el6-1.x86_64.rpm                                  |  72 MB     00:05     
warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID 98ab5139: NOKEY
Retrieving key from https://www.virtualbox.org/download/oracle_vbox.asc
Importing GPG key 0x98AB5139:
 Userid: "Oracle Corporation (VirtualBox archive signing key) <info@virtualbox.org>"
 From  : https://www.virtualbox.org/download/oracle_vbox.asc
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : VirtualBox-5.0-5.0.10_104061_el6-1.x86_64                                          1/1 

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)
  Verifying  : VirtualBox-5.0-5.0.10_104061_el6-1.x86_64                                          1/1 

Installed:
  VirtualBox-5.0.x86_64 0:5.0.10_104061_el6-1                                                         

Complete!

3 확인[ | ]

[root@zetawiki ~]# cat /var/log/vbox-install.log
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
[root@zetawiki ~]# virtualbox -v
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (2.6.32-431.17.1.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 WARNING: VirtualBox: cannot connect to X server

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}