Public bug reported:

Both hosts configuration:
OS: Ubuntu 14.04.1 LTS
libvirtd (libvirt) 1.2.2
qemu-kvm 2.0.0+dfsg-2ubuntu1.3

Steps to reproduce:
(on Host-1)
1. Create VM with next configuration: http://pastebin.com/bsfG5tFZ
2. Setup CentOS 6.5
3. Create snapshot of running VM using next command:
        $ virsh snapshot-create-as [vm-name] [snapshot-name] --memspec 
snapshot=internal
4. Backup VM xml:
        $ virsh dumpxml [vm-name] > [vm-name].xml 
5. Backup VM snapshot xml:
        $ virsh snapshot-dumpxml [vm-name] [snapshot-name] > 
[snapshot-name].xml 
6. Backup networks used by VM:
        $ virsh net-dumpxml [net-name] > [net-name].xml
7. Backup images used by VM.
8. Copy all backup data to Host-2
(on Host-2)
1. Restore networks:
        $ virsh net-define [net-name].xml
        $ virsh net-start [net-name]
        $ virsh net-autostart [net-name]
2. Restore images to appropriate directories.
3. Restore VM:
        $ virsh define [vm-name].xml
4. Restore snapshot:
        $ virsh snapshot-create --redefine [vm-name] [snapshot-name].xml
5. Revert snapshot:
        $ virsh snapshot-revert [vm-name] [snapshot-name]

Expected result:
Snapshot is in running state, VM is in the exact state of snapshot taken on 
Host-1 after revert.

Actual result:
Snapshot is in running state, VM is in running state, BUT is in just started 
state and is booting.

** Affects: libvirt (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: libvirt snapshot trusty virsh

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in Ubuntu.
https://bugs.launchpad.net/bugs/1373334

Title:
  Fail to revert VM snapshot properly after copying to the other host

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1373334/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to