Fedora 18 KVM online snapshot function experience

Source: Internet
Author: User

Fedora 18 KVM online snapshot experience fedora 18 has been released. One of the most exciting features in virtualization is online snapshot. In the past, KVM used to take snapshots and the virtual opportunity was automatically paused. Now, this problem has been overcome. Www.2cto.com lab environment: hardware Intel (R) Xeon (R) CPU E5540 @ 2.53 GHz 6G memory 80G sata hard drive software fedora 18 kernel 3.7.2-204. fc18.x86 _ 64 currently, virt-manager does not support snapshots and can only be operated through the virsh command line. Online snapshots only support virtual machines with raw and qcow2 disks. During the test, two virtual machines are created, w, test1, and w are in raw format, and test1 is in qcow2 format. Run the following command to create a snapshot and ping the VM all the time, snapshots are generated in an instant without packet loss. Virsh snapshot-create-as w snapshot1 "snapshot1 description" -- disk-only-atomicvirsh snapshot-create-as test1 snapshot1 "snapshot1 description" -- disk-only -- snapshots created by atomic and virtual machines disk image files together, snapshots are in qcow2 format. [Root @ localhost datapool] # export test01.snapshot1 [root @ localhost datapool] # qemu-img info test01.snapshot1image: test01.snapshot1file format: qcow2virtual size: 60G (64424509440 bytes) disk size: bytes: 65536 backing file:/datapool/test01.qcow2 [root @ localhost images] # qemu-img info w. snapshot1image: w. snapshot1file format: qcow2virtual size: 8.0G (8589934592 bytes) disk size: 6.6Mcluster _ size: 65536 backing file:/var/lib/libvirt/images/w. imgSnapshot list: id tag vm size date vm CLOCK1 snapshot2 6.3 M 14:29:06. 854 [root @ localhost images] # qemu-img info w. imgimage: w. imgfile format: rawvirtual size: 8.0G (8589934592 bytes) disk size: 0 [root @ localhost images] # Common commands: run www.2cto.com to list the Virtual Machine snapshot virsh # snapshot-list w Name Creation Time status snapshot snapshot1 13:29:32 + 0800 disk-snapshot snapshot2 2013-01-22 14:29:06 + 0800 running to roll back the virtual machine to the previous snapshot virsh snapshot-revert w snapshot2 changes the image of the VM, merge to the snapshot virsh blockpull -- domain w -- path/var/lib/libvirt/images/w. snapshot1 delete snapshot virsh snapshot-delete w snapshot2

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.