MARWAN docs NOC knowledge base
DocsVirtualization

Change VMware storage controller to paravirtual

Switch a CentOS 7 VMware VM to the paravirtual SCSI controller by rebuilding the initramfs and moving its disks.

Updated Sami Ait Ali Oulahcen

0. Backup#

Create a snapshot for the VM or a backup before you begin.

1. Adding the Paravirtual Controller and rebuilding the initial ramdisk#

  • Power-off the virtual machine.
  • Add the VMware Paravirtual Controller to the Virtual Machine. Do not change the disk controller assignment yet, only add the storage controller to the VM.
  • Power-on the virtual machine.
  • Login to the VM with an account able to obtain root access.
  • Start rebuilding the initial ramdisk image:
mkinitrd -f -v /boot/initramfs-$(uname -r).img $(uname -r)

2. Assigning disks to the new controller#

  • Power-off the virtual machine.
  • Assign disks to the new paravirtual storage controller and remove the old storage controller.
  • Power-on the virtual machine.
  • Validate that everything is working and disks are mounted.
  • Remove the virtual machine snapshot or backup after you are done.

3. Sauce#

https://be-virtual.net/changing-vmware-storage-controller-to-paravirtual-for-centos-7/