Install VirualBox Virtual Machine and virualbox Virtual Machine in linux

Source: Internet
Author: User

Install VirualBox Virtual Machine and virualbox Virtual Machine in linux
Step 1: Install VNC

1. Install vnc

yum install -y tigervnc*

2. Start vncserver

[Root @ xxx ~] # VncserverYou will require a password to access your tops.
Password: <enter Password> Verify: <enter Password> xauth: creating new authority file/root/. Xauthority
New 'xxx: 1 (root) 'desktop is xxx: 1
Creating default startup script/root/. vnc/xstartup Starting applications specified in/root/. vnc/xstartup Log file is/root/. vnc/xxx: 1.log

3. Configure the VNC Server Startup File

I have read many related articles online and want to modify them~ HOME/. vnc/xstartupFile, but I have not modified it. Of course, the GUI still needs to be installed.

yum -y install gnome*

Configure the/etc/sysconfig/vncserver File

VNCSERVERS="10:root"VNCSERVERARGS[10]="-geometry 1024x768 -nolistien tcp"

Modify the port number, user, and resolution according to the actual situation, save and exit

Vncserver-list # check whether there are multiple ports vncserver-kill: x # delete unused ports vncserver: 10 # Start vncserver

Note: After the vncserver is restarted, install vncviewer in windows and enter the IP: port number and password to enter the graphic interface.
If garbled characters appear on the interface, it may be because the linux system is installed in Chinese./Etc/sysconfig/i18nFile conversion in Chinese and English

Step 2: Install VirtualBox

1. Install DKMS kernel, go to the dkms official website download rpm package installation,: http://linux.dell.com/dkms

wget http://linux.dell.com/dkms/permalink/dkms-2.2.0.3-1.noarch.rpm   rpm -ivh dkms-2.2.0.3-1.noarch.rpm

2. Download The VirtualBox RPM installation package,: https://www.virtualbox.org/wiki/Downloads

wget http://download.virtualbox.org/virtualbox/4.3.28/VirtualBox-4.3-4.3.28_100309_el6-1.x86_64.rpmrpm -ivh VirtualBox-4.3-4.3.6_91406_el6-1.x86_64.rpm 

After installation, the following error message is displayed:

No precompiled module for this kernel found -- trying to build one. Messagesemitted during module compilation will be logged to /var/log/vbox-install.log.
Stopping VirtualBox kernel modules [ OK ]Uninstalling old VirtualBox DKMS kernel modules [ OK ]Trying to register the VirtualBox kernel modules using DKMSError! echoYour kernel headers for kernel 2.6.32-358.el6.x86_64 cannot be found at/lib/modules/2.6.32-358.el6.x86_64/build or /lib/modules/2.6.32-358.el6.x86_64/source.[FAILED](Failed, trying without DKMS)Recompiling VirtualBox kernel modules [FAILED](Look at /var/log/vbox-install.log to find out what went wrong)

Solution:

Install the kernel-devel package

yum install kernel-devel-$(uname -r)

If yum does not have the installation source, you can download and install it at http://rpmfind.net/linux/rpm2htmlsearch for the desired system.

Step 3: Start VirtualBox services
service vboxdrv setup

When the following running information appears, it indicates that the instance is successfully started, and you can create a virtual machine.

Stopping VirtualBox kernel modules [OK] Uninstalling old VirtualBox DKMS kernel modules [OK] Trying to register the VirtualBox kernel modules using DKMS [OK] Starting VirtualBox kernel modules [OK]

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.