In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Embed into the linux kernel
A virtual machine is a process
SPICE is an open source dedicated desktop virtualization data transfer protocol developed by redhat.
QEMU is a tool that can manage KVM virtual machines graphically, specifically for managing KVM, so it usually appears at the same time as KVM.
The following features are added to centos7KVM:
Cpu Hot add
Memory hot addition
1. Centos7.x system requirements
More than 4GB of memory
Processor needs to turn on virtualization function
Add stand-alone disks for use by KVM virtual machines
2. Format stand-alone disk
Fdisk-l
View the name of the 40g hard drive
Mkfs-t xfs / dev/sdb
Format the hard disk
Create directory and mount hard disk
3. Install the KVM-related environment package yum install qemu-kvm qemu-kvm-tools virt-manager libvirt virt-install-y4 and create the domain space of the virtual machine.
Qemu-img create-f raw / vdir/c7-1.img 10G
5. Put the system image that needs to be installed locally for use during installation
Systemctl start libvirtdsystemctl status libvirtd6. Execute virtual machine installation vim kvm.shvirt-install-- name c7-1-- virt-type kvm-- memory=2048-- location=/opt/CentOS-7.6-x86_64-DVD-1810.iso-- disk path=/vdir/c7-1.img-- network network=default-- graphics vnc,listen=0.0.0.0-- noautoconsolechmod + x kvm.sh
7. Vnc connects to the virtual machine ip to see the installation interface. After the installation is completed, it is as follows
8. View and switch operation
Virsh shutdown c7-1 / / shut down the virtual machine
Virsh start c7-1 / / start the virtual machine
Virsh list-- all / / View virtual machine status
Delete a virtual machine
Virsh shutdown c7-1 / / shut down first
Virsh undefine c7-1 / / delete again
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.