VM ID:VM4
VM Os:centos 6.5
The principle is in fact the same as the front, but the so-called online, is not to shut down the business without affecting the expansion of the situation, hot plug, and the previous new unique step, specifically add hard drive letter. Attach-disk
1. Original disk information
[Email protected] kvm]# Virsh domblklist vm4
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/67/wKiom1W3LWXCh37uAACGG6ork5g955.jpg "title=" 1.jpg " alt= "Wkiom1w3lwxch37uaacgg6ork5g955.jpg"/>
2. Create a disk and add it to the VM
[Email protected] kvm]# qemu-img create-f qcow2 vm4_add.qcow2 2g[[email protected] kvm]# Virsh attach-disk vm4/kvm/vm4_ Add.qcow2 VDB--cache=none--subdriver=qcow2
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/70/67/wKiom1W3LgfS2wG5AAFcwJYO0AE802.jpg "title=" 1.jpg " alt= "Wkiom1w3lgfs2wg5aafcwjyo0ae802.jpg"/>
View system self-recognition status
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/67/wKiom1W3LlqhZvAeAAEDByqeR3g533.jpg "title=" 1.jpg " alt= "Wkiom1w3llqhzvaeaaedbyqer3g533.jpg"/>
3. View the configuration information for the current VM4 and write the disk information of the VM to the configuration file (since the configuration file now comes from memory)
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/67/wKiom1W3Ltmjg_feAAP42KJc4cA957.jpg "title=" 1.jpg " alt= "Wkiom1w3ltmjg_feaap42kjc4ca957.jpg"/>
The red part of the figure to be written to vm4.xml manually
Next you can restart, partition, and in what way you decide
This article is from the "Big Wind" blog, please be sure to keep this source http://lansgg.blog.51cto.com/5675165/1679199
KVM (eight) client VM host disk online expansion