Fixes a bug with filename extension during .vdi creation.
Change-Id: Ib1a7b0256d8961946e844f265667053e5e422d9b Closes-Bug: 1376429
This commit is contained in:
parent
f38e6f194c
commit
d853bd7f72
|
@ -119,7 +119,7 @@ add_disk_to_vm() {
|
|||
vm_disk_path="$(get_vm_base_path)/$vm_name/"
|
||||
disk_name="${vm_name}_${port}"
|
||||
disk_filename="${disk_name}.vdi"
|
||||
VBoxManage createhd --filename "$vm_disk_path/$disk_name" --size $disk_mb --format VDI
|
||||
VBoxManage createhd --filename "$vm_disk_path/$disk_filename" --size $disk_mb --format VDI
|
||||
VBoxManage storageattach $vm_name --storagectl 'SATA' --port $port --device 0 --type hdd --medium "$vm_disk_path/$disk_filename"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue