If user specifies an installation CD image, use ide instead of virtio device type.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/98623468 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/98623468 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/98623468 Branch: refs/heads/trunk Commit: 98623468870b6afe2f1719eccd36612c9cb15614 Parents: 5d0123c Author: Tomaz Muraus <[email protected]> Authored: Fri Jan 31 22:47:03 2014 +0100 Committer: Tomaz Muraus <[email protected]> Committed: Fri Jan 31 22:47:03 2014 +0100 ---------------------------------------------------------------------- libcloud/compute/drivers/cloudsigma.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/98623468/libcloud/compute/drivers/cloudsigma.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/cloudsigma.py b/libcloud/compute/drivers/cloudsigma.py index 110ace7..647ac39 100644 --- a/libcloud/compute/drivers/cloudsigma.py +++ b/libcloud/compute/drivers/cloudsigma.py @@ -1150,10 +1150,16 @@ class CloudSigma_2_0_NodeDriver(CloudSigmaNodeDriver): } nics.append(nic) + # Need to use IDE for installation CDs + if isinstance(image, CloudSigmaDrive) and image.media == 'cdrom': + device_type = 'ide' + else: + device_type = 'virtio' + drive = { 'boot_order': 1, 'dev_channel': '0:0', - 'device': 'virtio', + 'device': device_type, 'drive': drive.id }
