summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-08-19 10:23:31 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-08-19 10:23:31 +0000
commit89a019af088ff62459699a6efdadf8ac8fe35dd9 (patch)
tree0684faa1fa1bf1a109f479eb9e09e7ed5234194a
parent76f2294a749b186f729f9d3634a43ea9268437b0 (diff)
downloadmorph-89a019af088ff62459699a6efdadf8ac8fe35dd9.tar.gz
Fix naming of SATA Controller in VirtualBox deployments
Patch from Paul Sherwood.
-rwxr-xr-xmorphlib/exts/virtualbox-ssh.write6
1 files changed, 3 insertions, 3 deletions
diff --git a/morphlib/exts/virtualbox-ssh.write b/morphlib/exts/virtualbox-ssh.write
index 1abe233e..2374db31 100755
--- a/morphlib/exts/virtualbox-ssh.write
+++ b/morphlib/exts/virtualbox-ssh.write
@@ -124,9 +124,9 @@ class VirtualBoxPlusSshWriteExtension(morphlib.writeexts.WriteExtension):
'--memory', ram_mebibytes, '--cpus', vcpu_count,
'--nic1', 'hostonly', '--hostonlyadapter1', hostonly_iface,
'--nic2', 'nat', '--natnet2', 'default'],
- ['storagectl', vm_name, '--name', '"SATA Controller"',
+ ['storagectl', vm_name, '--name', 'SATA Controller',
'--add', 'sata', '--bootable', 'on', '--sataportcount', '2'],
- ['storageattach', vm_name, '--storagectl', '"SATA Controller"',
+ ['storageattach', vm_name, '--storagectl', 'SATA Controller',
'--port', '0', '--device', '0', '--type', 'hdd', '--medium',
vdi_path],
]
@@ -134,7 +134,7 @@ class VirtualBoxPlusSshWriteExtension(morphlib.writeexts.WriteExtension):
attach_disks = self.parse_attach_disks()
for device_no, disk in enumerate(attach_disks, 1):
cmd = ['storageattach', vm_name,
- '--storagectl', '"SATA Controller"',
+ '--storagectl', 'SATA Controller',
'--port', str(device_no),
'--device', '0',
'--type', 'hdd',