Check out this script. I believe it has the function. This is for the VI-ToolKit.
*New-HardDisk -VM $vm -DiskType rawPhysical -DeviceName $lun.DeviceName | Out-File -Append "RDMMapper.txt"*
This tool must be installed on the server virtual center or on any car windows?
Also manages the Linux virtual machines?
Thanks a lot to give this info.
It can be on any windows box. It is a toolkit for both ESX hosts and Virutal Center functions.
The VMware Infrastructure (VI) Toolkit (for Windows) 1.0 includes more than 120 cmdlets, a set of sample scripts, and a function library that make managing and automating the VMware Infrastructure easier than ever before.
The VI Toolkit (for Windows) is a command-line and scripting tool based on PowerShell that provides useful functionality for virtual infrastructure management.
The first thing you need to do after launching the VI Toolkit (for Windows) is to get a connection to a VirtualCenter or ESX server. To get started, call the Connect-VIServer cmdlet and specify the IP address or DNS name of your VirtualCenter or ESX server, the protocol (http or https), user name, and password.
Connect-VIServer -Server 10.22.36.36 -protocol https -user admin -password mypass
Ok, very thanks,
but is not possible with command line to esx host?
You may be able to use vmware-vim-cmd vmsvc/device.diskadd. You will need the vmid, you can get that with vm-support -x.
but when i run this command , i have this info
Usage: device.diskadd vmid size controller number unit number datastore
when 32 is the vmid the VM but size controller number unit number datastore ?
do you write a example for me?