Package uploaded to -proposed, awaiting SRU team approval.

** Description changed:

- I tried the cloning feature of virt-manager. First I created a VM with
- qcow2 disk and installed Ubuntu on it. Then I shutdown the VM and
- created a clone of it. The clone was successfully created, but the
- configuration of the disk is invalid. The disk type in the cloned VM is
- raw, not qcow2. The actual format of the cloned disk image is qcow2,
- only the config is wrong. After changing the type of the disk back to
- qcow2, the cloned VM can see the disk just fine.
+ SRU:
+ 
+ [Impact]
+ Precise users aren't able to use the virt-clone command, or the clone 
functionnality in virt-manager to create successful clones of VMs using qcow2 
images, as the disk image format is not being transferred properly to the clone.
+ 
+ [Test Case]
+ 1- Create VM with qcow2 disks
+ 2- Clone VM with virt-manager
+ 3- Inspect clone xml file to make sure qcow2 image format is set correctly
+ 
+ [Regression Potential]
+ This change is limited to the clone code path. If something breaks, it will 
be VM cloning.
+ 
+ 
+ I tried the cloning feature of virt-manager. First I created a VM with qcow2 
disk and installed Ubuntu on it. Then I shutdown the VM and created a clone of 
it. The clone was successfully created, but the configuration of the disk is 
invalid. The disk type in the cloned VM is raw, not qcow2. The actual format of 
the cloned disk image is qcow2, only the config is wrong. After changing the 
type of the disk back to qcow2, the cloned VM can see the disk just fine.
  
  Here's the libvirt XML config snippet for the disk on the VM to be cloned:
  <disk type='file' device='disk'>
-   <driver name='qemu' type='qcow2'/>
-   <source file='/var/lib/libvirt/images/test.img'/>
-   <target dev='vda' bus='virtio'/>
-   <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
+   <driver name='qemu' type='qcow2'/>
+   <source file='/var/lib/libvirt/images/test.img'/>
+   <target dev='vda' bus='virtio'/>
+   <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
  </disk>
  
  And the same config for the clone VM before fixing the type manually:
  <disk type='file' device='disk'>
-   <driver name='qemu' type='raw'/>
-   <source file='/var/lib/libvirt/images/test-clone.img'/>
-   <target dev='vda' bus='virtio'/>
-   <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
+   <driver name='qemu' type='raw'/>
+   <source file='/var/lib/libvirt/images/test-clone.img'/>
+   <target dev='vda' bus='virtio'/>
+   <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
  </disk>
  
  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: virt-manager 0.9.1-1ubuntu2
  ProcVersionSignature: Ubuntu 3.2.0-18.29-generic 3.2.9
  Uname: Linux 3.2.0-18-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 1.94.1-0ubuntu2
  Architecture: amd64
  Date: Tue Mar 13 12:54:01 2012
  PackageArchitecture: all
  ProcEnviron:
-  TERM=xterm
-  LANG=en_US.UTF-8
-  SHELL=/bin/bash
+  TERM=xterm
+  LANG=en_US.UTF-8
+  SHELL=/bin/bash
  SourcePackage: virt-manager
  UpgradeStatus: No upgrade log present (probably fresh install)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/953922

Title:
  When cloning a VM with qcow2 disk, the cloned VM will have its disk
  defined as raw format in its config

To manage notifications about this bug go to:
https://bugs.launchpad.net/virtinst/+bug/953922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to