In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the example analysis of Linux virtualization technology KVM, which is very detailed and has certain reference value. Friends who are interested must finish it!
KVM is an open source virtualization technology built into Linux ®. Specifically, KVM helps you turn Linux into a hypervisor, enabling host computers to run multiple isolated virtual environments, that is, virtual clients or virtual machines (VM).
Image-20211203153455759 experiment
Environment: turn on the virtualization engine in redhat 7.4 virtual machine shutdown mode and then boot
View
[root@localhost ~] # lscpu | grep vmx
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc eagerfpu pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid rdseed adx smap xsaveopt arat [root@localhost ~] #
After installing virt-manager libvirt, turn on libvirtd
[root@localhost ~] # mount / dev/sr0 / mnt [root@localhost ~] # yum install virt-manager libvirt [root@localhost ~] # systemctl enable libvirtd [root@localhost ~] # systemctl start libvirtd
View
[root@localhost test] # lsmod | grep kvmkvm_intel 170086 0kvm 566340 1 kvm_intelirqbypass 13503 1 kvm
Upload the image to a directory and upload it to / root/test
[root@localhost test] # total amount of ll 3963904 RW / RW / R / M / R / M / R / R / R / 1 root root 4059037696 August 6 09:49 rhel-server-7.4-x86_64-dvd.iso
Create a virtual machine using virt-manager to create a virtual machine in a graphical interface (not in xshell), install the system
[root@mail ~] # virt-manager
Select File / New Virtual Machine / Local installation Media (iso) / use ISO Image /
It is best to install the command line interface for system installation
If you want to open it, use virt-manager to enter the graphical interface and right-click to open it to ok.
2.5 Command Line Interface installation system
2.5.1 add a bridged network
[root@localhost ~] # nmcli connection add type bridge con-name br1 ifname br11
Add from device to bridging network
[root@localhost ~] # nmcli connection add type bridge-slave con-name br1-port1 ifname ens33 master br1 [root@localhost ~] # nmcli connection show12
2.5.2 install the necessary software
[root@localhost ~] # mount / dev/sr0 / mntmount: / dev/sr0 write protection, [root@localhost ~] # yum install virt-install virt-viewer123 will be mounted read-only
2.5.3 the virtual machine is powered on after manually adding a disk after shutdown
[root@localhost ~] # fdisk / dev/sdb1
NP enter enter W
[root@localhost ~] # partprobe [root@localhost ~] # fdisk-l / dev/sdb12
2.3.6 execute the installation command Note: image name, image directory, disk path
[root@localhost ~] # virt-install-- name rhel-server-7.4-x86_64-dvd.iso-- disk path=/dev/sdb1-- check path_ is all the contents of the article "sample Analysis of Linux Virtualization Technology KVM". Thank you for reading! Hope to share the content to help you, more related 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.