Empty the Yum source cache and view the Yun source
[Email protected] ~]#YumClean allloaded plugins:fastestmirror, langpackscleaning repos:vcdcleaning up everythingcleaning up list of fastest Mirrors[[email protected]~]#Yumrepolist Loaded Plugins:fastestmirror, LANGPACKSVCD |3.6Kbxx:xx:xx (1/2): Vcd/group_gz |155Kbxx:xx:xx (2/2): vcd/primary_db |2.8MBxx:xx:xxDetermining fastest MirrorsrepoIDRepo name STATUSVCD Local-vcd3,723repolist:3,723[[Email protected]~]#
The tool is not found on the virtual machine until the KVM GUI management tool is installed
Installing the Software
Yum Install QEMU-KVM qemu-kvm-tools virt-manager libvirt virt-Install openssh-askpass-y
Copy the WinXP ISO to the machine
SCP 192.168. 80.114:/opt/[email protected]192.168. 80.114 ' Win-xp.iso
Because the disk format is QCOW2, it does not immediately allocate 40G that big
Installation Step reference: Build a KVM environment--06 create a virtual machine
This kind of installation is not afraid of restarting, after restarting without modifying the configuration file.
Using the graphical interface installation method, the virtual machine disk files are located:
[Email protected] ~]# cd/var/lib/libvirt/images/lswinxp.qcow2
Test the CentOS virtual machine disk on the 113 virtual machine to 114
SCP centos-7.2192.168. 80.114:/var/lib/libvirt/images/[email protected]192.168. 80.114 ' centos-7.2-x86_64.raw
114 on the virtual machine disk file
LSlsCentOS-7.2-x86_64.raw Winxp.qcow2
Convert the format of a newly entered disk file
[Email protected] images]# qemu-img convert-f Raw centos-7.2-x86_64.raw-o Qcow2 centos-7.2-X86_64.qcow2[[email protected] images]# ll-htotal 14G-rw-r--r--1Root root1.1G May at the: thecentos-7.2-X86_64.qcow2-rw-r--r--1Root root 10G May at the: $centos-7.2-X86_64.raw-RW-------1Root root 41G May at on: -Winxp.qcow2
Create a virtual machine with the newly-entered disk below
2 virtual machines are visible in the KVM graphical management tool
Build a KVM Environment--07 install KVM graphical interface management tools on Linux with GUI