VirtualBox: Add Windows Disk
Create Disk Images in VirtualBox
The following examples use SQL Server disk requirements as their basis and assume that the C: drive was created during VM creation and the Host OS is Linux.Create Disk Images in VirtualBox
VBoxManage createmedium disk --filename /${path}/D.vdi --size 10240 --variant Standard
VBoxManage createmedium disk --filename /${path}/E.vdi --size 5120 --variant Standard
VBoxManage createmedium disk --filename /${path}/G.vdi --size 5120 --variant Standard
VBoxManage showvminfo ${myVMname} | grep SATA
VBoxManage storageattach ${myVMname} --storagectl "SATA" --port 4 --device 0 --type hdd --medium /${path}/D.vdi
VBoxManage storageattach ${myVMname} --storagectl "SATA" --port 2 --device 0 --type hdd --medium /${path}/E.vdi
VBoxManage storageattach ${myVMname} --storagectl "SATA" --port 3 --device 0 --type hdd --medium /${path}/G.vdi
If you don't have enough ports (default is 4) then...
VBoxManage storagectl ${myVMname} --name "SATA" --portcount 5
Next Steps
Next Steps
Add disks in Windows