Hello,
I get a big interrogation about being able to add new Hard Disk to a specific SCSI Controller without shutting down the VM.
This is possible to do it by GUI but it seems impossible doing by CLI !
It looks like a non-sense for me but I think that I missed something.
Any of you have any clue of how it would be possible to do it by CLI (without shutting down the VM) ?
Thank you in advance !
Regards
This works for me
$ctrlName = 'SCSI Controller 2'
$vm = Get-VM -Name $vmName
$ctrl = Get-ScsiController -VM $vm -Name $ctrlName
New-HardDisk -Controller $ctrl -VM $vm -StorageFormat Thin -CapacityGB 1
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
This works for me
$ctrlName = 'SCSI Controller 2'
$vm = Get-VM -Name $vmName
$ctrl = Get-ScsiController -VM $vm -Name $ctrlName
New-HardDisk -Controller $ctrl -VM $vm -StorageFormat Thin -CapacityGB 1
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hello,
Looking at this, it seems quite simple but it works like a charm !
I was trying to make something really too complex for this this.
Thank you a lot.
Regards