PowerCLI

 View Only
  • 1.  Create vmguest with LSI controller

    Posted Oct 10, 2025 07:59 PM

    Hi.

    Since upgrading to vSphere8, the New-VM Powercli command has started to create vms with VMware paravirtual controller by default.

    Before upgrade to vSphere8, LSI Logic SAS was the default disk controller.

    It seems like the only way get out of this mess, is to have the New-VM script first create the with VMware Paravirtual controller, then delete disk and controller, and then set the new LSI Logic controller and the create the disk.

    Am I right or wrong?



    ------------------------------
    Best Regards,
    Tore
    ------------------------------


  • 2.  RE: Create vmguest with LSI controller

    Posted 28 days ago

    Yes you are right (as I know), it's not possible. The only way to achieve this is to create the VM without a disk, remove the default controller, and then add the desired controller type and create a new disk, the process is something like this.

    $vm = New-VM -Name "newVm" -VMHost $vmHost -Datastore $datastore -DiskGB 0 -GuestId ... # (-DiskGB 0) means no disk
    $oldAdapter = Invoke-ListVmHardwareAdapterScsi -Vm $vm.Id
    Invoke-DeleteVmAdapterHardwareScsi -Vm $vmId -Adapter $oldAdapter
    New-ScsiController -VM $vm -Type VirtualLsiLogicSAS
    -------------------------------------------