cloudstack/plugins
Rohit Yadav 12c395b560 CLOUDSTACK-9083: Add disk serial to kvm virt xml
Adds disk serial ids based on volume uuids to the virt xml. This may be useful
for appliances/software that needs some serial ids on the VM disks. This does not
impact existing/running VMs, the vm virt xmls will be updates for running VMs
the next time they are stopped/started.

For testing, disk serial (of debian based systemvm) in the virt xml matched that
in /sys/devices/pci0000:00:0000:00:07.0/virtio4/block/vda/serial.

We currently don't support scsi-blcok devices for which serial is not supported,
for this we've added a DeviceType (LUN) which may be used in future and a check
to not add the serial to the xml if disk type is LUN.
Refer: https://libvirt.org/formatdomain.html#elementsDisks

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-11-25 14:58:42 +05:30
..
acl/static-role-based Updating pom.xml version numbers for release 4.6.1-SNAPSHOT 2015-11-13 21:27:57 +01:00
affinity-group-processors Updating pom.xml version numbers for release 4.6.1-SNAPSHOT 2015-11-13 21:27:57 +01:00
alert-handlers Updating pom.xml version numbers for release 4.6.1-SNAPSHOT 2015-11-13 21:27:57 +01:00
api Updating pom.xml version numbers for release 4.6.1-SNAPSHOT 2015-11-13 21:27:57 +01:00
database/mysql-ha Updating pom.xml version numbers for release 4.6.1-SNAPSHOT 2015-11-13 21:27:57 +01:00
dedicated-resources Updating pom.xml version numbers for release 4.6.1-SNAPSHOT 2015-11-13 21:27:57 +01:00
deployment-planners Updating pom.xml version numbers for release 4.6.1-SNAPSHOT 2015-11-13 21:27:57 +01:00
event-bus Updating pom.xml version numbers for release 4.6.1-SNAPSHOT 2015-11-13 21:27:57 +01:00
file-systems/netapp Updating pom.xml version numbers for release 4.6.1-SNAPSHOT 2015-11-13 21:27:57 +01:00
ha-planners/skip-heurestics Updating pom.xml version numbers for release 4.6.1-SNAPSHOT 2015-11-13 21:27:57 +01:00
host-allocators/random Updating pom.xml version numbers for release 4.6.1-SNAPSHOT 2015-11-13 21:27:57 +01:00
hypervisors CLOUDSTACK-9083: Add disk serial to kvm virt xml 2015-11-25 14:58:42 +05:30
network-elements Updating pom.xml version numbers for release 4.6.1-SNAPSHOT 2015-11-13 21:27:57 +01:00
storage Updating pom.xml version numbers for release 4.6.1-SNAPSHOT 2015-11-13 21:27:57 +01:00
storage-allocators/random Updating pom.xml version numbers for release 4.6.1-SNAPSHOT 2015-11-13 21:27:57 +01:00
user-authenticators Updating pom.xml version numbers for release 4.6.1-SNAPSHOT 2015-11-13 21:27:57 +01:00
pom.xml Updating pom.xml version numbers for release 4.6.1-SNAPSHOT 2015-11-13 21:27:57 +01:00