Link to home
Start Free TrialLog in
Avatar of dougdog
dougdog

asked on

how to mount a vmdk file located on a san

i want to be able to copy a file to a virtual server without powering it on.
i can see how to mount a vmdk file if it was locvated on local storage but how do i do it if its located on a san
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

You have a VMDK file that is located on a SAN connected to VMWare ESX?
you want to inject a file into a VMDK file without powering on the Virtual Machine, and the Virtual Machine is stored on the SAN?
Avatar of dougdog
dougdog

ASKER

yes
Avatar of dougdog

ASKER

fast scp only lets me access local storage on the esx server
Avatar of dougdog

ASKER

vsphere 4.1 esx server
virtual centre server
The only way I know is using the Virtual Disk Development Kit

http://www.vmware.com/support/developer/vddk/

Check Mounting a Remote Disk in the following pdf document

http://www.vmware.com/support/developer/vddk/vddk12_diskmount.pdf
Either mount on Windows host remotely or mount directly on ESX 4.1.

Windows command line

e.g.

vmware-mount K: “[storage1] WinXP/WinXP.vmdk” /i:ha-datacenter/vm/WinXP /h:esx3 /u:root /s:secret
Avatar of dougdog

ASKER

what do i need to install?
is storage1 the datastore name?
Avatar of dougdog

ASKER

and what is ha-datacenter/?
Avatar of dougdog

ASKER

is this correct

vmware-mount K: “[datastorename] servername/servername.vmdk” /i:ha-datacentrename/vm/vmname /h:esx4 /u:root /s:password
Avatar of dougdog

ASKER

ha-datacentrename/vm/vmname
is vm and vmname the virtualserver name
yes, in the manual, there full explaination how to find the actual values, strings for your environment starting on Page 8/9, because the actual values need to match exactly.
Just FYI - If your SAN storage is something that is either connected to the host, or if it's a mapped drive to your local workstation, you could use WinSCP or Veeam FastSCP to copy the VMDK to the datastore of your VM since both can 'see' local storage of the workstation the app (WinSCP or FastSCP) is installed on.

~coolsport00
Avatar of dougdog

ASKER

sorry for being stupid what is the exact command if my server name is serverabc and my datacenter name is companyz
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dougdog

ASKER

perfect
Avatar of dougdog

ASKER

sorry is there a correct procedure to dismount it??
Avatar of dougdog

ASKER

sorted just used /d
yes, you got it. Don't forget to Unmount!

otherwise the VM willbe locked and you'll not be able to start it!