Virtual Machine Q&a

Source: Internet
Author: User

Q1: After a virtual machine has been running for a period of time, the capacity of each version of the first virtual machine becomes larger and capacity is acceptable

Reason: Unknown

Workaround: Replace the current mirror with a backup image

1.1G June 17:07 Win7_sp1_32_0.qcow2
1.5G June 17:07 Win7_sp1_32_1.qcow2
1.2G June 17:07 Win7_sp1_32_2.qcow2
651M June 17:07 Win7_sp1_32_3.qcow2
3.6G June 17:08 Win7_sp1_32_backup.qcow2
631M June 17:08 Winxp_sp2_0.qcow2
1.1G June 17:08 Winxp_sp2_1.qcow2
1.1G June 17:09 Winxp_sp2_2.qcow2
1.1G June 17:09 Winxp_sp2_3.qcow2
1.1G June 17:09 Winxp_sp2_4.qcow2
1.1G June 17:09 Winxp_sp2_5.qcow2
2.4G June 17:09 Winxp_sp2_cn_backup.qcow2
350M June 17:10 Winxp_sp3_0.qcow2
1.1G June 17:10 Winxp_sp3_1.qcow2
1.1G June 17:10 Winxp_sp3_2.qcow2
1.1G June 17:10 Winxp_sp3_3.qcow2
1.1G June 17:10 Winxp_sp3_4.qcow2
1.1G June 17:10 Winxp_sp3_5.qcow2
2.4G June 17:11 Winxp_sp3_cn_backup.qcow2

Root 1.3G jul  7 10:48 win7_sp1_32_0.qcow2
Root 1.5G jul  7 10:45 win7_sp1_32_1.qcow2
Root 1.2G jul&n Bsp 7 10:46 win7_sp1_32_2.qcow2
Root 659M jul  7 10:46 win7_sp1_32_3.qcow2
kvm  3.6G June 10:14 win7_sp1_3 2_backup.qcow2
Root 1.1G jul  7 15:06 winxp_sp2_0.qcow2
Root 1.1G jul  7 15:06 winxp_sp2_1.qcow2
Roo T 1.1G jul  7 15:06 winxp_sp2_2.qcow2
Root 1.1G jul  7 15:06 winxp_sp2_3.qcow2
Root 1.1G jul  7 15: Winxp_sp2_4.qcow2
Root 1.1G jul  7 15:08 winxp_sp2_5.qcow2
kvm  2.4G June 10:15 Winxp_sp2_cn_backup . qcow2
Root 369M jul  7 14:28 winxp_sp3_0.qcow2
Root 1.1G jul  7 14:27 winxp_sp3_1.qcow2
Root 1.1G J ul  7 14:28 winxp_sp3_2.qcow2
Root 1.1G jul  7 10:49 winxp_sp3_3.qcow2
Root 1.1G jul  7 10:48 winxp _sp3_4.qcow2
Root 1.1G jul  7 10:47 winxp_sp3_5.qcow2
kvm  2.4G June 10:18 winxp_sp3_cn_backup.qcow2

Q2: After a virtual machine executes for a period of time (Snapshot-revert operation), the recovery snapshot is getting slower, slowing from 5 seconds to 2min

Reason: Unknown

Workaround: Re-define the virtual machine (without replacing the mirror)

DELETE () {
For i in {0..5}
Do
Virsh Snapshot-delete Winxp_sp2_${i}--current
Virsh undefine Winxp_sp2_${i}
Virsh Snapshot-delete Winxp_sp3_${i}--current
Virsh undefine Winxp_sp3_${i}
Done

For i in {0..3}
Do
Virsh Snapshot-delete Win7_sp1_32_${i}--current
Virsh undefine Win7_sp1_32_${i}
Done
# rm-f *
}

DEFINE () {
For i in {0..5}
Do
Virsh Define Winxp_sp2_${i}.xml
Virsh snapshot-create winxp_sp2_${i} winxp_sp2_${i}_snapshot.xml--redefine--current
Virsh Define Winxp_sp3_${i}.xml
Virsh snapshot-create winxp_sp3_${i} winxp_sp3_${i}_snapshot.xml--redefine--current
Done

For i in {0..3}
Do
Virsh Define Win7_sp1_32_${i}.xml
Virsh snapshot-create win7_sp1_32_${i} win7_sp1_32_${i}_snapshot.xml--redefine--current
Done
}

Virtual Machine Q&a

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.