kvm学习
作者:互联网
1. 查看cpu是否支持kvm
[root@sorl1 ~]$ grep -E 'vmx|svm' /proc/cpuinfo
2. 查看yum kvm
[root@sorl1 ~]# yum list | grep kvm libvirt-daemon-kvm.x86_64 1.2.17-13.el7 @anaconda pcp-pmda-kvm.x86_64 3.10.6-2.el7 @anaconda qemu-kvm.x86_64 10:1.5.3-105.el7 @anaconda qemu-kvm-common.x86_64 10:1.5.3-105.el7 @anaconda libvirt-daemon-kvm.x86_64 4.5.0-36.el7_9.5 updates oci-kvm-hook.x86_64 0.3-1.el7 epel qemu-kvm.x86_64 10:1.5.3-175.el7_9.5 updates qemu-kvm-common.x86_64 10:1.5.3-175.el7_9.5 updates qemu-kvm-tools.x86_64 10:1.5.3-175.el7_9.5 updates
3. 安装kvm
[root@sorl1 ~]# yum -y install qemu-kvm qemu-kvm-tools libvirt
4. 启动libvirtd
[root@sorl1 ~]# systemctl start libvirtd
5.下载tightvnc工具
https://www.tightvnc.com/download/2.8.63/tightvnc-2.8.63-gpl-setup-64bit.msi
6. 创建虚拟机硬盘
qemu-img create -f raw ./Centos6-x86_64.raw 10G
7. 安装virt-install
yum -y install virt-install
8.创建
virt-install --virt-type kvm --name Centos-7-x86_64 --ram 2048 --cdrom=/opt/centos-7-x86_64-DVE-1503-01.iso --disk path=/opt/Centos-7-x86_64.raw --network network=default --graphics vnc,listen=0.0.0.0 --noautoconsole
9. 使用vpn 连接到虚拟机中
标签:x86,--,kvm,学习,64,qemu,el7 来源: https://www.cnblogs.com/fengjian2016/p/16439690.html