Wednesday, August 21, 2013

How to add shared disks in Virtual Box





VBoxManage createhd --filename G:\VBOX\shared\asm1.vdi --size 1024 --format VDI --variant Fixed
VBoxManage createhd --filename G:\VBOX\shared\asm2.vdi --size 1024 --format VDI --variant Fixed
VBoxManage createhd --filename G:\VBOX\shared\asm3.vdi --size 4096 --format VDI --variant Fixed



VBoxManage.exe storageattach vm31 --storagectl "SATA" --port 1 --device 0 --type hdd --medium "G:\VBOX\shared\asm1.vdi" --mtype shareable
VBoxManage.exe storageattach vm31 --storagectl "SATA" --port 2 --device 0 --type hdd --medium "G:\VBOX\shared\asm2.vdi" --mtype shareable
VBoxManage.exe storageattach vm31 --storagectl "SATA" --port 3 --device 0 --type hdd --medium "G:\VBOX\shared\asm3.vdi" --mtype shareable


VBoxManage.exe storageattach vm32 --storagectl "SATA" --port 1 --device 0 --type hdd --medium "G:\VBOX\shared\asm1.vdi" --mtype shareable
VBoxManage.exe storageattach vm32 --storagectl "SATA" --port 2 --device 0 --type hdd --medium "G:\VBOX\shared\asm2.vdi" --mtype shareable
VBoxManage.exe storageattach vm32 --storagectl "SATA" --port 3 --device 0 --type hdd --medium "G:\VBOX\shared\asm3.vdi" --mtype shareable

No comments: