2015年11月24日 星期二

Use Oracle VM VirtualBox Creating Shared Drives

cd C:\Program Files\Oracle\VirtualBox

VBoxManage createhd         --filename
                            --size |--sizebyte
                            [--format VDI|VMDK|VHD] (default: VDI)
                            [--variant Standard,Fixed,Split2G,Stream,ESX]


VBoxManage storageattach    
                            --storagectl
                            --port
                            --device
                            [--type dvddrive|hdd|fdd]
                            [--medium none|emptydrive|
                                      ||host:|iscsi]
                            [--mtype normal|writethrough|immutable|shareable|
                                     readonly|multiattach]
                            [--comment ]
                            [--passthrough on|off]
                            [--bandwidthgroup ]
                            [--forceunmount]
                            [--server |]
                            [--target ]
                            [--port ]
                            [--lun ]
                            [--encodedlun ]
                            [--username ]
                            [--password ]
                            [--intnet]

VBoxManage createhd --filename "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\VOTE01.vdi" --size 1024 --format VDI --variant Fixed
VBoxManage createhd --filename "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\VOTE02.vdi" --size 1024 --format VDI --variant Fixed
VBoxManage createhd --filename "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\VOTE03.vdi" --size 1024 --format VDI --variant Fixed
VBoxManage createhd --filename "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\DATA01.vdi" --size 5120 --format VDI --variant Fixed
VBoxManage createhd --filename "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\DATA02.vdi" --size 5120 --format VDI --variant Fixed
VBoxManage createhd --filename "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\DATA03.vdi" --size 5120 --format VDI --variant Fixed
VBoxManage createhd --filename "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\FRA01.vdi" --size 5120 --format VDI --variant Fixed
VBoxManage createhd --filename "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\FRA02.vdi" --size 5120 --format VDI --variant Fixed
VBoxManage createhd --filename "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\FRA03.vdi" --size 5120 --format VDI --variant Fixed

VBoxManage modifyhd "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\VOTE01.vdi" --type shareable
VBoxManage modifyhd "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\VOTE02.vdi" --type shareable
VBoxManage modifyhd "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\VOTE03.vdi" --type shareable
VBoxManage modifyhd "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\DATA01.vdi" --type shareable
VBoxManage modifyhd "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\DATA02.vdi" --type shareable
VBoxManage modifyhd "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\DATA03.vdi" --type shareable
VBoxManage modifyhd "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\FRA01.vdi" --type shareable
VBoxManage modifyhd "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\FRA02.vdi" --type shareable
VBoxManage modifyhd "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\FRA03.vdi" --type shareable

VBoxManage storageattach oracle_11gr2_rac1 --storagectl "SATA" --port 1 --device 0 --type hdd --medium "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\VOTE01.vdi" --mtype shareable
VBoxManage storageattach oracle_11gr2_rac1 --storagectl "SATA" --port 2 --device 0 --type hdd --medium "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\VOTE02.vdi" --mtype shareable
VBoxManage storageattach oracle_11gr2_rac1 --storagectl "SATA" --port 3 --device 0 --type hdd --medium "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\VOTE03.vdi" --mtype shareable
VBoxManage storageattach oracle_11gr2_rac1 --storagectl "SATA" --port 4 --device 0 --type hdd --medium "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\DATA01.vdi" --mtype shareable
VBoxManage storageattach oracle_11gr2_rac1 --storagectl "SATA" --port 5 --device 0 --type hdd --medium "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\DATA02.vdi" --mtype shareable
VBoxManage storageattach oracle_11gr2_rac1 --storagectl "SATA" --port 6 --device 0 --type hdd --medium "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\DATA03.vdi" --mtype shareable
VBoxManage storageattach oracle_11gr2_rac1 --storagectl "SATA" --port 7 --device 0 --type hdd --medium "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\FRA01.vdi" --mtype shareable
VBoxManage storageattach oracle_11gr2_rac1 --storagectl "SATA" --port 8 --device 0 --type hdd --medium "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\FRA02.vdi" --mtype shareable
VBoxManage storageattach oracle_11gr2_rac1 --storagectl "SATA" --port 9 --device 0 --type hdd --medium "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\FRA03.vdi" --mtype shareable

VBoxManage storageattach oracle_11gr2_rac2 --storagectl "SATA" --port 1 --device 0 --type hdd --medium "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\VOTE01.vdi" --mtype shareable
VBoxManage storageattach oracle_11gr2_rac2 --storagectl "SATA" --port 2 --device 0 --type hdd --medium "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\VOTE02.vdi" --mtype shareable
VBoxManage storageattach oracle_11gr2_rac2 --storagectl "SATA" --port 3 --device 0 --type hdd --medium "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\VOTE03.vdi" --mtype shareable
VBoxManage storageattach oracle_11gr2_rac2 --storagectl "SATA" --port 4 --device 0 --type hdd --medium "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\DATA01.vdi" --mtype shareable
VBoxManage storageattach oracle_11gr2_rac2 --storagectl "SATA" --port 5 --device 0 --type hdd --medium "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\DATA02.vdi" --mtype shareable
VBoxManage storageattach oracle_11gr2_rac2 --storagectl "SATA" --port 6 --device 0 --type hdd --medium "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\DATA03.vdi" --mtype shareable
VBoxManage storageattach oracle_11gr2_rac2 --storagectl "SATA" --port 7 --device 0 --type hdd --medium "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\FRA01.vdi" --mtype shareable
VBoxManage storageattach oracle_11gr2_rac2 --storagectl "SATA" --port 8 --device 0 --type hdd --medium "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\FRA02.vdi" --mtype shareable
VBoxManage storageattach oracle_11gr2_rac2 --storagectl "SATA" --port 9 --device 0 --type hdd --medium "F:\Oracle VM VirtualBox\oracle_11gr2_rac_hd\FRA03.vdi" --mtype shareable

沒有留言: