issues with virtual machines and using named images fixed and tested with multiple endpoints and data disks

Signed-off-by: Richard Conway <richard@elastacloud.com>