VMware Cloud Community
AshuC
Contributor
Contributor
Jump to solution

Add raw device(storage volume) to vairtual machine via command line

How can I add a physical raw device( which is the volumes in my external storage system) to my virtual machine via comand line ?

I am running vmware 5.1esxi.

Any kind of help will be appreciated. Thanx in advance!!

Tags (4)
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

You can use the New-Harddisk cmdlet with the DeviceName parameter.

See example 2


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
5 Replies
LucD
Leadership
Leadership
Jump to solution

You can use the New-Harddisk cmdlet with the DeviceName parameter.

See example 2


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
AshuC
Contributor
Contributor
Jump to solution

Hey LucD thanks for the help, but can we also do this via making an ssh connection to esxi  ?

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Although I have no experience in doing it that way, it should be possible.

Have a look at Re: Hot add RDM to a VM NOT using windows powershell


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
AshuC
Contributor
Contributor
Jump to solution

I am trying the command line argument :

vim-cmd vmsvc/device.diskaddexisting VMID path_to disk/rdm1.vdmk 0 1

but i am getting an error saying

Reconfigure Failed

can somebody guide me with what am I doing wrong ??

Thanks in advance!!

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Thread moved to the CLI Community


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos