Linux Getting Started Tutorial: The VirtualBox of the virtual machine experience __linux

Source: Internet
Author: User
Tags intel core i7

Original address: Click on the Open link

The top two experiences of QEMU and KVM-accelerated qemu, and the experience of Third-party virtual machine management tools Virt-manager, give us insight into the high quality and high performance of the open source community's powerful and open source virtual machine software. This one, I will dissect the VirtualBox. VirtualBox claims to be the most powerful virtual machine products in the open source world, on Linux platform, is basically chosen as the preferred virtual machine software. VirtualBox's strength is not covered, after all, the Taiwan is a super rich Oracle company. VirtualBox's Caprice is not covered, it simply does not use the above I mentioned the Qemu, KVM, Libvirt, etc. by the various virtual machines used by the open source components, its front-end, back-end and kernel acceleration modules are their own development, Only the VNC required by remote desktops uses Libvncserver.

Related article: Http://www.linuxidc.com/Linux/2015-03/114461.htm http://www.linuxidc.com/Linux/2015-03/114462.htm

I said in the title that Virutalbox is the classic architecture used. The so-called classics, mainly embodied in the following aspects:

1. The system in virtual machines and virtual machines (Guest system) is still running on the main operating system (host system) and is only accelerated through the kernel module of the main operating system;

The classical architecture of front-end mode in 2.Unix system, in VirtualBox, the VirtualBox graphical interface is only the graphical packaging of the virtual machine software vboxmanage the command line interface, and it also provides VBOXSDL, vboxheadless command line tools. For example, Vboxheadless can run a virtual machine that does not display the virtual machine desktop, and if you want to display the desktop, you can run a Remote Desktop connection to it. The advantage of the front-end separation is that for desktop users, you can use the graphical interface of the front end to simplify operations, and for enterprise users, you can use command-line tools to build automated scripts and even run virtual machines automatically when the system starts.

I didn't like VirtualBox at first, a little episode almost made me miss such a good virtual machine software. I was beginning to see the VirtualBox in every Linux forum, rather than the overwhelming KVM and Xen in the news, and I thought virutalbox might be a little unprofessional, plus the first time I used VirtualBox, found that it could not be perfectly forwarded ctrl+alt+fx (X=1~12), found that some of its configurations could not be set entirely in the graphical interface, needed to manually change the configuration file, and then I gave up. Until I mastered the right toss of the Linux methodology, after reading its 369 pages of user manual, I really understand its strong, and deeply in love with it.

First of all, installing Virutalbox in Ubuntu is very easy and requires only a sudo apt-get install VirtualBox.

After installing VirtualBox, you can examine the "classic architecture" that I mentioned earlier, and the command and run results are as follows:

The Lsmod command can see that after the installation of VirtualBox, several kernel modules have been installed in the main operating system to speed up the virtual machine. As for the use of kernel modules to speed up the virtual machine I will not be posted here, please refer to my last article. The Dpkg-l command allows you to examine which command-line tools VirtualBox provides. Finally, the Dpkg-s command can be seen, VirtualBox this executable program is actually belong to the VIRTUALBOX-QT software package, it is just a graphical interface encapsulation.

Start VirtualBox, create a new virtual machine and install the operating system I will not say that the graphical interface is very powerful, step-by-step implementation of the correct. After installing the WinXP, the operation effect is as follows:

As can be seen from this figure, the WinXP system recognizes the CPU as the exact Intel Core i7-4770k, although I have only allocated two cores to it. But the graphics card does not accurately identify. This is because the WinXP system does not have a corresponding driver, so you need to install the VirtualBox Customer System Enhancements tool. Select Install enhancements in the menu bar, as shown in the following figure:

Then VirtualBox will install a virtual CD-ROM to WinXP, double-click the disc to install the Client System Enhancement tool in the WinXP system, as shown in the following figure:

Customer System enhancements are installed in the guest system, and you can assume that the customer systems enhancements are primarily comprised of the drivers needed in the customer's operating system, because without these drivers, the client operating system may not be able to recognize those virtual hardware, such as virtual video cards or something. Of course, the capabilities of the customer system enhancements are much more than that, such as graphics 3D acceleration, the main operating system and the client operating system share folders, and one of the most B, which is to get the customer operating system into seamless mode. For example, after installing the User Enhancement tool, you can identify the type of video card and have different resolution options, as shown below:

By pressing Host+l, you can type seamless mode, as shown in the following illustration, where Ubuntu-style windows and WinXP-style windows coexist in the Ubuntu system:

Thus, it is no longer a dream to use Windows software in a Linux system. Then press the Host+l key, the virtual opportunity to return to the window mode.

VirtualBox is very powerful and it is impossible for me to learn this blog post alone. Well, it's me. This series has always been adhering to the principle of "giving people a fish as a fisherman", has always been a guide to the methodology of the Linux system, and mapping so that people who do not have hands-on opportunities on the Linux system has an intuitive feeling, but also has been pointed out where to find the appropriate learning materials. With the Dpkg-l command, you can find the 369-page document I mentioned earlier, and read it with the evince reader from Ubuntu, as shown in the following figure:

As for the VirtualBox I said earlier, it can't be anything, it's all my own unrealistic nonsense, and when you've finished reading its documents, you'll find that it can do everything. VirtualBox on my machine to see the effect of the flow of more than the previous QEMU+KVM combination, graphics performance will be more powerful. Its documentation also has more advanced gameplay, read it carefully, command line and configuration files are not dreams, and VirtualBox not only for desktop users, but also for enterprise-class applications.


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.