Merge "Fixes a bug with filename extension during .vdi creation."

This commit is contained in:
Jenkins 2014-10-08 19:29:23 +00:00 committed by Gerrit Code Review
commit 66b624b472
1 changed files with 1 additions and 1 deletions

View File

@ -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"
}