VMware Solutions Discussions

Moving a VMware disk drive from one guest to a different guest

bghanson
4,145 Views

I have a question about moving drives attached to a VM guest.  I have a DBA the wants me to great a VM guest with ten (10) 1 GB drives, five (5) on SAS disks and five (5) on SATA disks.  I will be using A NetApp FAS 8020 to host these drives.  My question is can I and if so how would I, detach a drive (VMDK file) from this VM guest and reattach it to a different VM Guest.  The drive will be holding historical data and not an application or the OS.  The VM guest will be running Linux 7 with an Oracle DB.  The DBA will take care of mounting the disk once it had been moved and presented to the other VM guest.  Currently the NetApp is attached as NFS using an iSCSI adapter.

1 ACCEPTED SOLUTION

asulliva
4,137 Views

Assuming the source and destination VMs have the same operating system, it's as simple as:

 

  • Shutdown the source VM (optional, but recommended, depending on the guest OS)
  • Detach the drive (don't delete the files)
  • Attach the drive to the destination VM.  When it asks if you want to create a new drive, chose the option to use an existing drive, then browse to the folder for the source VM and attach it

 If you want to clean up the location of the VMDKs (i.e. put them all in the same folder on the datastore), the easiest way is to do an SvMotion.

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

2 REPLIES 2

asulliva
4,138 Views

Assuming the source and destination VMs have the same operating system, it's as simple as:

 

  • Shutdown the source VM (optional, but recommended, depending on the guest OS)
  • Detach the drive (don't delete the files)
  • Attach the drive to the destination VM.  When it asks if you want to create a new drive, chose the option to use an existing drive, then browse to the folder for the source VM and attach it

 If you want to clean up the location of the VMDKs (i.e. put them all in the same folder on the datastore), the easiest way is to do an SvMotion.

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Manchun
3,775 Views

I am also facing this issue, how can i resolve. i am also asking from https://www.janbasktraining.com/courses/vmware

Public