In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly shows you "how to compile qemu and libvirt to support SDL", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to compile qemu and libvirt to support SDL" this article.
Log in to the centos official website and download the version of the source code package:
Qemu-kvm-1.5.3-60.el7.src.rpm
Libvirt-1.1.1-29.el7.src.rpm
To install the package rpmbuild
Compile and install qemu:
First, install the source code: rpm-ivh qemu-kvm-0.12.1.2-2.415.el6.src.rpm
The source code to be compiled and the required spec files are automatically placed in the / root/rpmbuild/ directory.
Then: modify the file / root/rpmbuild/SPECS/qemu-kvm.spec and change the two places (--disable-sdl) to (--enable-sdl).
After: compile the rpm package: rpmbuild-- target=x86_64-bb / root/rpmbuild/SPECS/qemu-kvm.spec compiled rpm package in / root/rpmbuild/RPMS/x86_64/
Finally: install the generated rpm package. If there is an old version in the system, the forced installation can replace the previous version (rpm-ivh *. Rpm-- force). Generally, you only need to install the rpm package related to qemu.
When you run / usr/libexec/qemu-kvm after installation, you should see the SDL window of qemu directly. If you are prompted that there is a lack of dependent packages or libraries, you can install it in turn.
Compile and install libvirt:
The process is the same as qemu. Modify the spec file of libvirt to delete the following two lines:
-- with-qemu-user=% {qemu_user}
-- with-qemu-group=% {qemu_group}
It can be compiled and installed (some generated packages are not required and may not be installed).
You can now use the SDL window to open the virtual machine, but you need to make some settings before opening it.
If you use the virt-manager tool, delete the Display hardware you are using now, then add Graphics hardware, select the local SDL option, and run the virtual machine to see the virtual machine directly in SDL.
If the virt-manager link is not SDL, print something like Could not initialize SDL, setenforce 0 first.
If you do not use the virt-manager software and use libvirt in shell to open sdl, you need to add or modify the graphics tag in the xml file of the local virtual machine:
The values of display and xauth can be obtained from the current terminal:
Enter the command: env, which will have two lines:
DISPLAY=:0
XAUTHORITY=/run/gdm/auth-for-root-oAEUYz/database
Set it to the graphics tab. If you want to open it in full screen, add the option fullscreen= "yes".
If the virt-manager link is not SDL, print something like Could not initialize SDL, setenforce 0 first.
The above is all the content of the article "how to compile qemu and libvirt to support SDL". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.