How to move harddisk from SATA to SCSI or SAS controller on Virtual Box

  • Open Virtual Box settings and open File -> Virtual Media Manager

screen-shot-2018-07-30-at-11-20-32-pm.png

  • Identify the hard disk under the tab “Hard Disks“.
  • Click on it and select Copy from the options above.Screen Shot 2018-07-30 at 11.26.32 PM
  • The Disk Image to Copy wizard opens and select appropriate options.

Screen Shot 2018-07-30 at 11.27.40 PM

Screen Shot 2018-07-30 at 11.28.41 PM

Screen Shot 2018-07-30 at 11.29.21 PM

Screen Shot 2018-07-30 at 11.29.58 PM

  • Once the hard disk is successfully copied, select the VM where you want to mount the new hard disk.
  • Open the Settings for the VM.
  • Go to Storage and Click on Add New Storage Controller ICON [Choose SCSI or SAS].

Screen Shot 2018-07-30 at 11.34.17 PM

  • Once the controller is added, click on Add hard disk icon and choose the hard disk which was copied earlier.

Screen Shot 2018-07-30 at 11.37.11 PM

Screen Shot 2018-07-30 at 11.48.42 PM

Screen Shot 2018-07-30 at 11.50.12 PM

  • Once the hard disk is chosen, select the Solid-State Drive checkbox and click on OK to save the settings.

Screen Shot 2018-07-30 at 11.38.26 PM

  • The newly created hard disk will have boot sector already and so there is no problem with booting the guest OS.
  • To cross-check if the boot option is available or not, start the VM and then run the command.

In this case, the guest OS is Ubuntu.

#sudo fdisk -l 
[This will print the hard disks available and observe the boot option if checked for both or not]
  • If the boot option is available in both the disks, shut down the VM.
  • Open the VM settings -> Storage again and remove the Old disk and the Controller[SATA].
  • Click on OK and save the settings.
  • Start the VM and now you are on SCSI/SAS controller whichever you have chosen.
  • Open Virtual Box settings -> File -> Virtual Media Manager and remove the old hard disks to save space.

Have fun!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Powered by WordPress.com.

Up ↑

%d bloggers like this: