1

I have a CentOS7.2 named test-CentOS7_64, which only have one disk(sda).

enter image description here

and now I have another VM which also have sda, I want to use the VM to load the test-CentOS7_64's disk sda to sdb, how to do with that?

2
  • Is the second disk shared with the host operating system? Because that's how you would do it, then mount it in the first VM.
    – Mawg
    Jan 14, 2019 at 7:26
  • 1
    I mean, now, I want to unload the test-Cent0S7_64's disk(sda), then load by an other CentOS server.
    – 244boy
    Jan 14, 2019 at 7:39

1 Answer 1

0
  1. First you need to attach the disk itself to the VM. (This is the equivalent of connecting a physical disk to a physical machine.) Go to VM > Settings > Hardware > Add, choose to add an existing virtual disk, and select the corresponding .vmdk file from the other VM that you want to use. The VM might need to be powered off first. Note that you cannot use the same virtual disk simultaneously with different VMs; VMware Workstation should prevent you from doing this, but if you manage to bypass its protections, you'd end up corrupting your virtual disk. Also, if you no longer want that disk in the original VM, you'd be better off moving the .vmdk file(s) first and then deleting the original VM.

  2. Then you will need to mount the partitions in the guest OS. How you do this will depend on the guest OS; on Windows, you'll need to open the Disk Management tool and assign a drive letter; on Linux, you'll probably need to edit /etc/fstab.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .