Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the classic architecture of VirtualBox in Linux?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces how the classic architecture of VirtualBox in Linux is. The content is very detailed. Interested friends can use it for reference. I hope it will be helpful to you.

VirtualBox is claimed to be the most powerful virtual machine product in the open source world, and it is basically chosen as the preferred virtual machine software on the Linux platform. The strength of VirtualBox is not built, after all, its background is the super-rich Oracle company. VirtualBox's capriciousness is not covered, it simply does not use the qemu, kvm, libvirt and other open source components that I mentioned earlier are used by various virtual machines, its front-end, back-end and kernel acceleration modules are developed by themselves, and only the VNC needed for remote desktop uses libvncserver.

I mentioned in the title that VirutalBox is the classic architecture used. The so-called classics are mainly reflected in the following aspects:

1. The virtual machine and the system in the virtual machine (Guest System) still run on the main operating system (Host System), only accelerated by the kernel module of the main operating system.

The classic architecture of Front-End mode in 2.Unix system, in VirtualBox, the graphical interface of VirtualBox is only the graphical packaging of virtual machine software VBoxManage with command line interface. At the same time, it also provides command line tools such as VBoxSDL, VBoxHeadless and so on. 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 to connect to it. One advantage of front-end separation is that for desktop users, the front-end graphical interface can be used to simplify operations, while for enterprise users, command-line tools can be used to build automated scripts and even run virtual machines automatically at system startup.

I didn't like VirtualBox from the beginning. A little episode almost made me miss out on such good virtual machine software. Originally, I just began to see that VirtualBox will be put in the first place in various Linux forums, rather than in the news of KVM, Xen, I think VirutalBox may be a little unprofessional, coupled with the first time using VirtualBox, I found that it can not be perfectly forwarded to Ctrl+Alt+Fx (xdye 1f12), found that some of its configuration can not be completely set in the graphical interface, the need to manually change the configuration file, and then I gave up. It wasn't until I mastered the correct methodology for messing with Linux and read its 369-page user manual that I really understood its power and fell in love with it.

First of all, it's very easy to install VirutalBox in Ubuntu, and all you need is a sudo apt-get install virtualbox.

After installing VirtualBox, you can take a look at the "classic architecture" I mentioned earlier. The command and run results are shown below:

The lsmod command can see that after VirtualBox is installed, several kernel modules are installed in the main operating system to accelerate the virtual machine. As for the pictures of using kernel modules to accelerate virtual machines, I will no longer post them here. Please refer to my previous article. The dpkg-L command allows you to examine which command-line tools VirtualBox provides. Finally, through the dpkg-S command, you can see that the executable program VirtualBox actually belongs to the virtualbox-qt package, it is just a graphical interface package.

I won't say much about the process of starting VirtualBox, creating a new virtual machine and installing the operating system. The graphical interface is very powerful, and you can do it step by step. After installing WinXP, the running effect is as follows:

As you can see from this figure, the CPU recognized by the WinXP system is the exact Intel Core i7-4770K, although I only assigned it two cores. But the video card cannot be accurately identified. The reason for this is that there is no corresponding driver in the WinXP system, so you need to install VirtualBox's customer system enhancement tools. Select install enhancements in the menu bar, as shown below:

VirtualBox will then install a virtual CD for WinXP, and double-click the CD to install customer system enhancement tools on the WinXP system, as shown below:

Customer system enhancement tools are installed in Guest System, it can be considered that customer system enhancement tools mainly include the drivers needed in the guest operating system, because without these drivers, the guest operating system may not be able to recognize the virtual hardware, such as virtual graphics cards. Of course, the functions of customer system enhancement tools are much more than these, such as 3D acceleration of graphics cards, shared folders between the main operating system and the guest operating system, and the best thing is to put the guest operating system into seamless mode. For example, after installing the user enhancement tool, you can identify the type of video card, and there are different resolution options, as shown below:

Press the Host+ L key to type the seamless mode, as shown in the following figure, you can see that Ubuntu-style windows and WinXP-style windows coexist in Ubuntu systems:

To play a little bigger, use the IE browser to visit the blog park, as shown below:

Thus it can be seen that it is no longer a dream to use Windows software to work in the Linux system, as there are no obstacles such as Internet banking and QQ. Press the Host+ L key again, and the virtual machine returns to window mode.

VirtualBox is so powerful that it is impossible for me to learn it with this blog post. Fortunately, my series has always been adhering to the principle of "it is better to teach people to fish than to teach people to fish", it has always been the methodology of guiding and messing with the Linux system, and mapping so that people who do not have the opportunity to do it themselves also have an intuitive feeling to the Linux system, and have always pointed out where to find the corresponding learning materials. Using the dpkg-L command, you can find the 369-page document that comes with VirtualBox that I mentioned earlier, and read it using the evince reader that comes with Ubuntu, as shown below:

As for the VirtualBox I said earlier, it can't be anything. It's all my own unrealistic nonsense. When you finish reading its documents, you will find that there is nothing impossible about it. From the point of view of the running effect of VirtualBox on my machine, the fluency is better than the previous QEMU+KVM combination, and the graphics performance is more powerful. There are more and more advanced ways to play in its documentation, read carefully, proficient in command line and configuration files is not a dream, and VirtualBox is not only for desktop users, but also for enterprise applications.

About how the classic architecture of VirtualBox in Linux is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report