VMware Cloud Community
tlyczko
Enthusiast
Enthusiast
Jump to solution

Remove vmdk from a guest??

I've tried to find the appropriate vmkfstools command.

Or can I edit the *.vmx file to not have any references to the *.vmdk that I want to remove?? (remove all lines about its scsi controller, the vmdk, etc.)??

I'd rather remove the extra vmdk than restore, for various reasons, the extra vmdk is corrupt or something and can readily be discarded and I can start over again...

The guest OS is Win2k8 R2...it is presently stopped...will not start right because it keeps trying to fix the "hard drive" of the extra vmdk file.

Thank you, Tom

Tags (2)
Reply
0 Kudos
1 Solution

Accepted Solutions
vmroyale
Immortal
Immortal
Jump to solution

Hello.

Or can I edit the *.vmx file to not have any references to the *.vmdk that I want to remove?? (remove all lines about its scsi controller, the vmdk, etc.)??

Use nano to edit the .vmx file and put a # in front of the lines with the disk and controller you want removed - this will comment them out.

Good Luck!

Brian Atkinson | vExpert | VMTN Moderator | Author of "VCP5-DCV VMware Certified Professional-Data Center Virtualization on vSphere 5.5 Study Guide: VCP-550" | @vmroyale | http://vmroyale.com

View solution in original post

Reply
0 Kudos
4 Replies
vmroyale
Immortal
Immortal
Jump to solution

Hello.

Or can I edit the *.vmx file to not have any references to the *.vmdk that I want to remove?? (remove all lines about its scsi controller, the vmdk, etc.)??

Use nano to edit the .vmx file and put a # in front of the lines with the disk and controller you want removed - this will comment them out.

Good Luck!

Brian Atkinson | vExpert | VMTN Moderator | Author of "VCP5-DCV VMware Certified Professional-Data Center Virtualization on vSphere 5.5 Study Guide: VCP-550" | @vmroyale | http://vmroyale.com
Reply
0 Kudos
jamesbowling
VMware Employee
VMware Employee
Jump to solution

Just go into Edit Settings and select the drive, click Remove.

If you found this at all helpful please award points by using the correct or helpful buttons! Thanks!

James B. | Blog: http://www.vSential.com | Twitter: @vSential --- If you found this helpful then please awards helpful or correct points accordingly. Thanks!
Reply
0 Kudos
tlyczko
Enthusiast
Enthusiast
Jump to solution

Can't use VC because this IS the VC. Smiley Happy

Thank you on the nano, I wasn't 100% certain of that.

I will do that after stopping the VM.

Thank you, Tom

P.S. Commenting it out worked PERFECTLY!! Smiley Happy Smiley Happy

Reply
0 Kudos
jamesbowling
VMware Employee
VMware Employee
Jump to solution

Ha...Then a simple vi of the vmx file (or nano, two thumbs down!) and commenting them out with a # should be fine.

If you found this at all helpful please award points by using the correct or helpful buttons! Thanks!

James B. | Blog: http://www.vSential.com | Twitter: @vSential --- If you found this helpful then please awards helpful or correct points accordingly. Thanks!
Reply
0 Kudos