Virtual machine installation and configuration 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0071.gif "alt=" J_0071.gif "/>
Graphical installation of virtual machines
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/88/F8/wKioL1gDdfeSfsN3AABtgUaPd4c035.png-wh_500x0-wm_3 -wmp_4-s_375962499.png "style=" Float:none; "title=" 1.png "alt=" Wkiol1gddfesfsn3aabtguapd4c035.png-wh_50 "/>
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/88/FB/wKiom1gDdgDC3XoIAAF3P69Ff0c619.png-wh_500x0-wm_3 -wmp_4-s_4264693317.png "style=" Float:none; "title=" 2.png "alt=" Wkiom1gddgdc3xoiaaf3p69ff0c619.png-wh_50 "/>
always point Forward650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0074.gif "alt=" j_0074.gif "/>
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/88/F8/wKioL1gDdheitArVAAClBRj70fM908.png-wh_500x0-wm_3 -wmp_4-s_2913897700.png "style=" Float:none; "title=" 3.png "alt=" Wkiol1gddheitarvaaclbrj70fm908.png-wh_50 "/>
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/88/FB/wKiom1gDdhnzKRJ7AABU1Ry4I84696.png-wh_500x0-wm_3 -wmp_4-s_1035681737.png "style=" Float:none; "title=" 4.png "alt=" Wkiom1gddhnzkrj7aabu1ry4i84696.png-wh_50 "/>
Installing the Graphical interface
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/88/F8/wKioL1gDdjGQ4Pq5AAAnwPUMuyg332.png-wh_500x0-wm_3 -wmp_4-s_1003580722.png "title=" 5.png "alt=" wkiol1gddjgq4pq5aaanwpumuyg332.png-wh_50 "/> own configuration
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/88/FB/wKiom1gDdj7y5N0aAABvn3m9bp4267.png-wh_500x0-wm_3 -wmp_4-s_3514653319.png "title=" 6.png "alt=" Wkiom1gddj7y5n0aaabvn3m9bp4267.png-wh_50 "/>
Command mode, Shell Script Install Virtual machine 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0076.gif "alt=" j_0076.gif "/>
# ! /bin/bash// command Run environment specified
virt-install \// Installing virtual machines
--name \// Virtual machine name designation, $ represents the first of the scripts a parameter
--ram \// hard disk File size
--file/var/lib/libvirt/images/$1.img \// Hard disk files
--Cdrom/home/kiosk/desktop/rhel-server-7.1-x86_64-dvd.iso &
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/88/F8/wKioL1gDdlujTrKoAAFTUUrMpOM236.png-wh_500x0-wm_3 -wmp_4-s_2525460496.png "style=" Float:none; "title=" 7.png "alt=" Wkiol1gddlujtrkoaaftuurmpom236.png-wh_50 "/>
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/88/FB/wKiom1gDdnPD1izlAAKNtq_Zx14732.png-wh_500x0-wm_3 -wmp_4-s_179836063.png "style=" Float:none; "title=" 8.png "alt=" Wkiom1gddnpd1izlaakntq_zx14732.png-wh_50 "/>
Virtual Machine management 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0076.gif "alt=" J_0076.gif "/>
Virt-manager// turn on the Graphics management tool
virt-viewer vmname// Display the virtual machine, Vmname represents a virtual machine
The name
Virsh List// Lists the running VMS
Virsh list--all// List all VMS
Virsh startvmname// Run the specified VMS
Virsh shutdowmvmname// normal shutdown specified VMS
Virsh destoryvmname// Force end specified VMS
Virsh createvmname.xml// temporarily restores the specified VMs,vmname.xml represents a front-end management file
Virsh definevmname.xml// Permanent Recovery VMS
Virsh undefinevmname.xml// Delete VMS front-end management, does not delete the hard drive
Removed the virtual machine how to restore it back? 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0080.gif "alt=" J_0080.gif "/>
Cd/lib
Cd/etc/libvirt/qemu
Ls
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/88/FB/wKiom1gDdq3ROllfAAAptANBYcs878.png-wh_500x0-wm_3 -wmp_4-s_3545921659.png "title=" 9.png "alt=" Wkiom1gddq3rollfaaaptanbycs878.png-wh_50 "/>
Cp–p dd.xml/mnt/
mv/var/lib/libvirt/images/dd.img/mnt/
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/88/FB/wKiom1gDdxvxNFIDAABo3XlwmHg466.png-wh_500x0-wm_3 -wmp_4-s_1094080027.png "title=" 10.png "alt=" Wkiom1gddxvxnfidaabo3xlwmhg466.png-wh_50 "/>
this removes DD Virtual Machines
Cd/mnt
MV Dd.img/var/lib/libvirt/images
Virsh define/mnt/dd.xml// Permanent reply
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/88/F8/wKioL1gDdzGSkYCqAAB3HxR8qnk464.png-wh_500x0-wm_3 -wmp_4-s_804941981.png "title=" 11.png "alt=" Wkiol1gddzgskycqaab3hxr8qnk464.png-wh_50 "/>
here we have to tell a very important question, if I accidentally put my virtual machine play "Hang Up" later,rebootlater found,virtual machines are starting to come. Re-install the trouble, yes.~what to do now. Haha, the following method can help careless "hand-mutilated" small pots of friends~650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0082.gif "alt=" j_0082.gif "/>
Storage (hard disk) virtual machine snapshot
qemu-img create-f qcow2-b dd.img xx.img650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0079.gif "alt=" j_0079.gif "/>
Virsh undefineddd// Delete VMS front End manager, does not delete the hard drive
cd/var/lib/libvirt/
Ls
CD images/
LS// will find DD virtual machine's hard disk
Qemu-img create–fqcow2–b dd.img xx.img
LS// you'll find one more. xx.img
Similarly, this virtual machine snapshot can also be written Shell script, easy and quick to use it yo ~650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0078.gif "alt=" j_0078.gif "/>
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/88/FB/wKiom1gDd0fAJ0V0AADe18RGIfE789.png-wh_500x0-wm_3 -wmp_4-s_169098521.png "style=" Float:none; "title=" 12.png "alt=" Wkiom1gdd0faj0v0aade18rgife789.png-wh_50 "/>
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/88/F8/wKioL1gDd02inuZDAAExZ7WOHvA319.png-wh_500x0-wm_3 -wmp_4-s_4018039227.png "style=" Float:none; "title=" 13.png "alt=" Wkiol1gdd02inuzdaaexz7wohva319.png-wh_50 "/>
Installation and configuration of virtual machines under Red Hat Linux system