mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-25 02:50:08 +03:00
feature #1307: Add oned.conf options for attach disk in VMware
Modify scripts to abide to new parameter signature
This commit is contained in:
parent
1f12736fac
commit
da5a18a886
@ -154,7 +154,7 @@ IM_MAD = [
|
||||
#IM_MAD = [
|
||||
# name = "im_vmware",
|
||||
# executable = "one_im_sh",
|
||||
# arguments = "-t 15 -r 0 vmware" ]
|
||||
# arguments = "-c -t 15 -r 0 vmware" ]
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
|
@ -21,6 +21,7 @@ source $PWD/scripts_common_sh.sh
|
||||
DEPLOYID="$1"
|
||||
SOURCE="$2"
|
||||
TARGET="$3"
|
||||
TARGET_NUMBER="$4"
|
||||
CONTROLLER_NUMBER=0 # Only one controller at the moment (up to 16 devices)
|
||||
|
||||
|
||||
@ -35,8 +36,6 @@ DISK_PATH="/vmfs/volumes/$DATASTORE/$VM_ID/$DISK_NAME/disk.vmdk"
|
||||
# Get the VMware ID corresponding to the deploy_id
|
||||
VMWAREID=`vim-cmd vmsvc/getallvms|grep $DEPLOYID|cut -d' ' -f 1`
|
||||
|
||||
TARGET_NUMBER=1
|
||||
|
||||
ATTACH_PARAMS="$VMWAREID $DISK_PATH $CONTROLLER_NUMBER $TARGET_NUMBER $DATASTORE"
|
||||
|
||||
exec_and_log "$SUDO vim-cmd vmsvc/device.diskaddexisting $ATTACH_PARAMS" \
|
||||
|
@ -20,7 +20,8 @@ source $PWD/scripts_common_sh.sh
|
||||
|
||||
DEPLOYID="$1"
|
||||
IMAGE_PATH="$2"
|
||||
UNIT_NUMBER="$3"
|
||||
UNIT="$3"
|
||||
UNIT_NUMBER="$4"
|
||||
|
||||
CONTROLLER_NUMBER=0 # Only one controller at the moment (up to 16 devices)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user