In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article will explain in detail how to start the aarch64 virtual machine with KVM on x86 machines. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
1. Download prerequisite files 1.1 and download virtual machine iso image files
Download link http://isoredirect.centos.org/altarch/7/isos/aarch74/ on the official website
Upload the downloaded iso file CentOS-7-aarch74-Everything-1810.iso to the server
Download the edk2 rpm package
Https://www.kraxel.org/repos/jenkins/edk2/edk2.git-aarch74-0-20190704.1238.g5a9db85880.noarch.rpm
Upload the edk2.git-aarch74.rpm package to the server
Download qemu-4.1.0.tar.xz installation package # wget https://download.qemu.org/qemu-4.1.0.tar.xz2, prepare for 2.1, install high version qemua, create VM before installing qemu-system-aarch74
Decompression
# xz-d qemu-4.1.0.tar.xz # tar-xvf qemu-4.1.0.tar
Compile qemu-system-aarch74
If only qemu-kvm is installed on the host, the host can only run virtual machines with X86 architecture and can use kvm acceleration, but cannot translate arm instructions into X86 instructions to run. All also need to install qemu-system-aarch74, which provides support for running aarch74 architecture virtual machines on x86 architecture.
# yum install zlib-devel glib2-devel pixman-devel-y # cd qemu-4.1.0#. / configure-- target-list=aarch74-softmmu# make & & make installb, install qemu-system-aarch74, create vm, and select the architecture
C. Choose aarch74 and warning will appear.
Install UEFI firmware # yum install dnf# dnf install edk2.git-aarch74-0-20190704.1238.g5a9db85880.noarch.rpm# vim / etc/libvirt/qemu.confnvram = ["/ usr/share/edk2.git/aarch74/QEMU_EFI-pflash.raw:/usr/share/edk2.git/aarch74/vars-template-pflash.raw"] # systemctl restart libvirtdd. After installing UEFI firmware, you can select aarch74 architecture normally.
Install virtual machine 3.1, create volume # virsh vol-create-as data Centos-7.6-aarch74.img 50G-format qcow23.2, create virtual machine e, VNC connect to the server, create a new VM, select aarch74 architecture, everything else is the same as the centos installation of X86
F. Select iso image file
G. Select the created volume file
H, create the name of the VM
Complete the preparatory work and begin to install the operating system
You can choose to install directly without testing media.
J. After waiting for some time to boot, prepare to enter the installation interface
K. Graphical installation interface failed and can only be installed on the command line
L. Default language, skip directly and choose Shanghai time zone.
M, the installation media and software can be selected by default, and the system installation location can be selected.
O, all the way c can continue to automatically generate disk partitions
P, specify the password of root
Q, type b to start installing the system
R, wait a long time for the installation to complete, hit enter to restart the virtual machine
S, enter the password, log in to the virtual machine, configure ip to connect, and be careful not to hit Q during the whole installation process.
This is the end of the article on "how to start the aarch64 virtual machine with KVM on an X86 machine". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please 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.
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.