virtualbox创建共享磁盘

d:
cd D:\ls\vm\Virtual Machines\3

"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" createhd -filename asm1.vdi  -size 1024 -format VDI -variant Fixed
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" createhd -filename asm2.vdi  -size 1024 -format VDI -variant Fixed
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" createhd -filename asm3.vdi  -size 1024 -format VDI -variant Fixed
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" createhd -filename asm4.vdi  -size 1024 -format VDI -variant Fixed
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" createhd -filename asm5.vdi  -size 1024 -format VDI -variant Fixed
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" createhd -filename asm6.vdi  -size 1024 -format VDI -variant Fixed
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" createhd -filename asm7.vdi  -size 1024 -format VDI -variant Fixed
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" createhd -filename asm8.vdi  -size 1024 -format VDI -variant Fixed
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" createhd -filename asm9.vdi  -size 1024 -format VDI -variant Fixed
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" createhd -filename asm10.vdi -size 1024 -format VDI -variant Fixed

"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe"  modifyhd asm1.vdi  --type shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe"  modifyhd asm2.vdi  --type shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe"  modifyhd asm3.vdi  --type shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe"  modifyhd asm4.vdi  --type shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe"  modifyhd asm5.vdi  --type shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe"  modifyhd asm6.vdi  --type shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe"  modifyhd asm7.vdi  --type shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe"  modifyhd asm8.vdi  --type shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe"  modifyhd asm9.vdi  --type shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe"  modifyhd asm10.vdi --type shareable

"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach 10g_rac_1 --storagectl "SATA" --port 1  --device 0 --type hdd --medium asm1.vdi  --mtype shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach 10g_rac_1 --storagectl "SATA" --port 2  --device 0 --type hdd --medium asm2.vdi  --mtype shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach 10g_rac_1 --storagectl "SATA" --port 3  --device 0 --type hdd --medium asm3.vdi  --mtype shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach 10g_rac_1 --storagectl "SATA" --port 4  --device 0 --type hdd --medium asm4.vdi  --mtype shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach 10g_rac_1 --storagectl "SATA" --port 5  --device 0 --type hdd --medium asm5.vdi  --mtype shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach 10g_rac_1 --storagectl "SATA" --port 6  --device 0 --type hdd --medium asm6.vdi  --mtype shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach 10g_rac_1 --storagectl "SATA" --port 7  --device 0 --type hdd --medium asm7.vdi  --mtype shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach 10g_rac_1 --storagectl "SATA" --port 8  --device 0 --type hdd --medium asm8.vdi  --mtype shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach 10g_rac_1 --storagectl "SATA" --port 9  --device 0 --type hdd --medium asm9.vdi  --mtype shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach 10g_rac_1 --storagectl "SATA" --port 10 --device 0 --type hdd --medium asm10.vdi --mtype shareable


"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach 10g_rac_2 --storagectl "SATA" --port 1 --device 0  --type hdd --medium asm1.vdi  --mtype shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach 10g_rac_2 --storagectl "SATA" --port 2 --device 0  --type hdd --medium asm2.vdi  --mtype shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach 10g_rac_2 --storagectl "SATA" --port 3 --device 0  --type hdd --medium asm3.vdi  --mtype shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach 10g_rac_2 --storagectl "SATA" --port 4 --device 0  --type hdd --medium asm4.vdi  --mtype shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach 10g_rac_2 --storagectl "SATA" --port 5 --device 0  --type hdd --medium asm5.vdi  --mtype shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach 10g_rac_2 --storagectl "SATA" --port 6 --device 0  --type hdd --medium asm6.vdi  --mtype shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach 10g_rac_2 --storagectl "SATA" --port 7 --device 0  --type hdd --medium asm7.vdi  --mtype shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach 10g_rac_2 --storagectl "SATA" --port 8 --device 0  --type hdd --medium asm8.vdi  --mtype shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach 10g_rac_2 --storagectl "SATA" --port 9 --device 0  --type hdd --medium asm9.vdi  --mtype shareable
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach 10g_rac_2 --storagectl "SATA" --port 10 --device 0 --type hdd --medium asm10.vdi --mtype shareable












来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26239116/viewspace-1075986/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/26239116/viewspace-1075986/

你可能感兴趣的:(virtualbox创建共享磁盘)