stepping-stone / vm-manager

The stoney cloud web interface.
http://www.stoney-cloud.org/
Other
0 stars 0 forks source link

Backing file of dynamic VMs always point to the first disk in the template #52

Closed dev-zero closed 10 years ago

dev-zero commented 10 years ago

VmController.php: actionStartVm

                            $goldenimagepath = $vm->devices->getDiskByName('vda')->sstVolumeName . '.qcow2';
                            $names = CPhpLibvirt::getInstance()->createBackingStoreVolumeFile($templatesdir, $storagepool->sstStoragePool, $goldenimagepath, $vmcopy->node->getLibvirtUri(), $disk->sstVolumeCapacity);

A dynamic VM will therefore have as many disks as the golden image but the overlay images point all to the first source image.

dev-zero commented 10 years ago

This bug was reproducible in the version 1.2.10.4 (vm-manager version 1.2.18.9)