Reply to Message

View discussion in a popup

Replying to:
js40687
Contributor
Contributor

Automate add Windows Hard Disk

Hi

I'm trying to automate adding a new Hard Disk to a Windows 2008R2 VM

The VM already exists and has 2 disks already on the default SCSI Controller (LSI Logic SAS) as SCSI 0:0 and SCSI 0:1

I want to add a 3rd disk on a new ParaVirtual Controller

This I can do easily enough with the following

Get-VM $VM_Name | New-HardDisk -CapacityKB $Drive_Size -Datastore $datastore2 | New-ScsiController -Type ParaVirtual

but.......it comes in on SCSI 1:2, not a massive problem but to follow our standards I ideally want it on SCSI 1:0, how can I change that via PowerCLi?

not too concerned if it is create it and let it default to SCSI 1:2 and then change it or create it directly on SCSI 1:0 in the first place

Any ideas please?

Thanks

Jim


Reply
0 Kudos