Installing and using VirtualBox on CentOS

Source: Internet
Author: User
Tags oracle vm virtualbox vm virtualbox vmware server

virtualbox-4.0(currently virtualbox-4.0-4.0.28_97686), virtualbox-4.1(now virtualbox-4.1-4.1.36_ 97684), virtualbox-4.2(currently virtualbox-4.2-4.2.28_97679) and virtualbox-4.3(currently virtualbox-4.3-4.3.22_98236) has been published. To have all features of the 4.x version, you also need to VirtualBox Extension Pack, which supports USB 2.0 devices, RDP, and PXE boot with an Intel network card.

For information on using CentOS as a client of VB, refer to CentOS as the guest operating system for VirtualBox.

Please note that VirtualBox is the product of Oracle Corporation (which acquires Sun Microsystems). The CentOS program is not available and does not support it, but asking questions on the forums or virtualized mailing lists may be answered.

Contents

    1. What is VirtualBox?
    2. Why use VirtualBox?
    3. Installing VirtualBox
    4. Executive VirtualBox
    5. USB is used within the VirtualBox
1. What is VirtualBox?

VirtualBox is a set of x86 virtualization products for different operating systems. It is a machine/hardware virtualization product, which is the watchdog, functionally similar to VMware Server, Parallels Workstation, QEMU, KVM, and Xen, and supports a variety of guest operating systems, including Windows (NT 4.0, 2000, XP, Server 2003, Vista), Dos/windows 3.x, Linux (2.4 and 2.6), Solaris/opensolaris, and OpenBSD. Its supporters claim that it is "the only professional solution under the GNU general public License (GPL) that is free from open source programs".

VirtualBox are provided to different architectures in the form of native components. They have i386 and AMD64 (x86_64) RPM components for rhel4/rhel5/rhel6, which can be used on CENTOS-4/5/6 (or scientific and other distributions derived from RHEL), in addition to Debian, Ubun Tu and its derived. Deb components, Mac Os-x,windows,solaris and OpenSolaris, and source code.

2. Why use VirtualBox?

It is easy to install and use, although it is less efficient than the OS-level virtualization programs that modify the Linux kernel, such as Xen, KVM, OpenVZ, or Vserver. Benefits include:

    1. RPM Components available
    2. Active Community Support

    3. Perform a variety of guest operating systems
    4. Good hardware access support, including sound, USB, and serial port
    5. Support for many main operating systems
    6. Allows you to execute Microsoft's operating system and applications without messing up your computer or double- booting
3. Installing VirtualBox

VirtualBox's Web site contains a number of high quality documents, including:

    • User documentation
    • Technical documents
    • Timesheet for source code library
    • List of changes (change log)

This article provides a brief introduction to the installation process. The i386 and AMD64 (x86_64) versions are now available.

You need to complete the following steps as root. Please log in to Root's command shell, or enter "Su-" in a terminal window.

Please download the configuration file for the RHEL Software library.

    • Note: You can also choose to download and install individual RPM without setting up the software library. This method has been recorded in the VB website, so it will not be included here.

    • If you don't want the library to be enabled by default, you can choose to join the Enabled=0 line. This will require you to add--enablerepo VirtualBox to the Yum command to access the Software library.

When installing VB, you need to create a kernel module. If DKMS (Dynamic Kernel Module support) has been installed, it will be applied and will simplify kernel upgrades. We recommend that you first install the DKMS from the Rpmforge or EPEL software library before installing VirtualBox. Never forget to set up the Yum-priorities plugin. Installing the DKMS will automatically bring in the required development-dependent components:

"Height=", "src=", "Http://static.oschina.net/uploads/img/201503/03134429_M8Em.png", "title=" "width=" > "The Theory of position" Altar users claim that all new DKMS from Dell may have errors.

If you do not use DKMS, the development environment and the source code for the kernel are still not installed:

You can also choose to install only the smallest number of individual development tool components (with minimum gcc and make) instead of groupinstall that some people consider too heavy. If you use the PAE kernel, replace kernel-devel with Kernel-pae-devel. If you are not using the standard CentOS kernel, you must obtain and install the kernel source code from the place where the kernel is provided to you. Do not attempt to use VirtualBox on the Xen kernel, or install a Xen kernel in the guest operating system.

    • Note: If CentOS is the guest operating system, these components will also be used to create the "guest additions" driver.

Install RPM:

If you install an older version:

Or:

If the development environment is set up correctly, the installer will create the Vboxusers group and the kernel modules it requires.

Please execute for each user who will execute the VirtualBox:

Or use the Users and Groups tools in the image interface.

4. Executive VirtualBox

Please execute VB as a member of the Vboxusers group. In VirtualBox-4.0 or 4.1 you can choose to install VirtualBox Extension Pack via the file/preferences/extensions option of the image interface. This program requires the root password.

    • Enter "VirtualBox &" in the command line of the terminal machine

    • Execute "application/System Tools/oracle VM virtualbox" in GNOME or KDE

Accept authorization, choose whether to register, and then create a new virtual machine. VMware's virtual machines should be available on the VirtualBox. Please use "VMware to VirtualBox" in Google to find information.

You can get help from the menu or online.

5. Use USB in VirtualBox

VirtualBox requires the user to have write access to the USBFS device when accessing USB. Please execute the following command as root:

Mount-a

Installing and using VirtualBox on CentOS

Related Article

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.