diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-08-19 10:23:31 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-08-19 10:23:31 +0000 |
commit | f0800ade5348fd632d7c49307e55e32746d073a7 (patch) | |
tree | 892eb354a7cbe1ffe448ea9eeed728adc4240628 | |
parent | 7f10cd9a320664609f83dc24f6d25e79b49cb7d2 (diff) | |
download | definitions-f0800ade5348fd632d7c49307e55e32746d073a7.tar.gz |
Fix naming of SATA Controller in VirtualBox deployments
Patch from Paul Sherwood.
-rwxr-xr-x | virtualbox-ssh.write | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/virtualbox-ssh.write b/virtualbox-ssh.write index 1abe233e..2374db31 100755 --- a/virtualbox-ssh.write +++ b/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', |