Install VirtualBox Virtual Machine in Ubuntu

Source: Internet
Author: User
Article Title: Install VirtualBox Virtual Machine on Ubuntu. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

As an important virtual machine in the open-source camp, virtual box has been favored by many source fans. The new ubuntu version has met with you. Many friends are familiar with windows, for ubuntu with strong performance, it becomes the first choice for many friends. You can use ubuntu7.04 (host) + windows (guest) mode to experience the powerful performance of ubuntu, at the same time, it will not give up the windows system that has been used for many years at once, so that you can have both fish and cake.

Virtual box has a lot of friends who test the results, said, the speed is good, the operation is very smooth, even if the machine configuration is not very high, can also make, so I am the first time, get the latest virtual box deb package installation as soon as possible, but there are some problems during the installation process. Here, I will show you the entire installation process, I hope this will be helpful to my friends who are using virtual box for the first time!

1. First download the deb package of virtual box (1.3.8 for linux host) on the ubuntu terminal:

Wget: http://www.virtualbox.org/download/1.3.8/VirtualBox_1.3.8_Ubuntu_feisty_i386.deb
2. When you install virtual box, it depends on libxalan110 and the libqt3-mt, so you need to download and install these two packages. Use the following command to download and install it all at once!

Sudo apt-get install libxalan110 libqt3-mt

Note: This step can only be completed with the administrator privilege.

If the libxercer27 dependency library is missing after the download and installation process, use this operation:

 

Sudo apt-get install libxerces27 libxalan110 libqt3-mt

Note: administrator permissions are also required.

3. In this step, install virtual box directly. Run the following command to complete the installation:

Sudo dpkg-I VirtualBox_1.3.8_Ubuntu_feristy_i386.deb

If you successfully complete this step, congratulations, you can basically create a virtual machine. I installed virtualbox three times on winodws and linux OS respectively. The result is that, in windows (host) + linux (guest (host) + windows (guest (host (guest), a windows virtualbox is installed on windows, then install ubuntu7.04 on virtualbox, and then install virtualbox for linux on ubuntu7.04. However, an error occurred while installing ubuntu 7.04 on the physical machine and then installing virtualbox! An error similar to the following occurs:

(Reading database... 93619 files and directories currently installed .)
Preparing to replace virtualbox 1.3.8 _ Ubuntu_feisty (using VirtualBox_1.3.8_Ubuntu_feisty_i386.deb )...
* Stopping VirtualBox kernel module vboxdrv [OK]
Virtualbox-puel-1-2 license has already been accepted.
Unpacking replacement virtualbox...
Setting up virtualbox (1.3.8 _ Ubuntu_feisty )...
* Starting VirtualBox kernel module vboxdrv
FATAL: Error inserting vboxdrv (/lib/modules/2.6.20-15-generic/kernel/ubuntu/misc/vbox/vboxdrv. ko): Invalid argument
* Modprobe vboxdrv failed. Please use 'dmesg' to find out why.
Invoke-rc.d: initscript vboxdrv, action "start" failed.
Dpkg: error processing virtualbox (-- install ):
Subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
Virtualbox

If the above error or similar error occurs, we need to take the following two steps to solve the problem: first, modify/etc/init. d/virtualbox. Change exit 1 to exit 0 in the following file:

Failure ()
{
Echo ""
Log_failure_msg "$1"
Exit 1
}

Change

Failure ()
{
Echo ""
Log_failure_msg "$1"
Exit 0
}

Second, modify the Startup File because nmi_watchdog is not disabled during the security process. You must set nmi_watchdog to 0. Therefore, you need to perform the following operations:

Sudo gedit/boot/grub/menu. lst

Then modify this part in menu. list:

 

#### End Default Options ##
Title Ubuntu, kernel 2.6.20-15-generic
Root (hd0, 6)
Kernel/boot/vmlinuz-2.6.20-15-generic
Root = UUID = e57b46e0-66b2-4c25-aa87-862110201036 ro quiet splash nmi_watchdog = 0
Initrd/boot/initrd. img-2.6.20-15-generic
Quiet
Savedefault

That is, in

Root = UUID = e57b46e0-66b2-4c25-aa87-862110201036 ro quiet splash nmi_watchdog = 0
Root = UUID = e57b46e0-66b2-4c25-aa87-862110201036 ro quiet splash

Add

Root = UUID = e57b46e0-66b2-4c25-aa87-862110201036 ro quiet splash nmi_watchdog = 0
Note: After completing the preceding steps, you must restart your computer. Otherwise, an installation error will still occur!

In this way, you only need to re-execute the above virtualbox installation operation to install it smoothly!

After all this is done, you cannot use it immediately, because you have not added your account to virtualbox! In this way, you can use virtualbox smoothly and add an account using the following command:

Sudo usermod-G vboxusers-a youraccount
In this way, the installation of virtual in ubuntu is very simple, and the most common problems are the above! The above operations can generally solve the problem during the installation process!

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.