Hi all,
Just getting into using the toolkit - major interest is in hot plugging disks into virtual machines.
After allocating disk to the esx server (using san disk), I can rescan the hba, to see the available lun - eg vmhba1:0:101 is now available.
I now want to allocate this directly to a virtual machine - in this case "Windows 2003 Ent Orig"
get-vm -name "windows 2003 ent orig":new-harddisk -capacitykb 2097152 -disktype rawphysical -lunid vmhba1:0:101
This errors woth "incompatible device backing"
Any pointers?
Thanks
Don't you have to pass a datastore so the system knows where to create the mapping file for the raw disk ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
guess you would need to pass a store paramter somewher,
In vmkfstools, I would pass that in the path of creating the mapping vmdk (ie the location was datastore anyway)
will keep looking cheers for the pointer
The new-harddisk cmdlet has a -Datastore parameter.
Did you try using that ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference