Solved

Restore with GhettoVCB

Posted on 2012-03-29
12
1,330 Views
Last Modified: 2012-04-18
I'm trying to test restoring with GhettoVCB.   When I restore the VM and power it on, everything's fine, but the restored VM looks like this:

vmguestname-2012-03-29_13-04-56

Instead of the original VM, which was :

vmguestname

How can I rename the restored VM?  I found an article about using vmkfstools to rename the VMDK file.  That worked fine, but the directory that the VMDK file is in, if I rename it using the "Browse Datastore" feature in VSphere client, when I try to add the virtual hard disk back to the VM, I get filename not found errors.  How can I rename the directory?
0
Comment
Question by:sedberg1
  • 6
  • 6
12 Comments
 

Author Comment

by:sedberg1
ID: 37783920
I'm running ESXi 5.0 free hypervisor.
0
 
LVL 118
ID: 37783922
Rename the folder using the vSphere Client Datastore browser.
0
 

Author Comment

by:sedberg1
ID: 37783931
As per my post:

"That worked fine, but the directory that the VMDK file is in, if I rename it using the "Browse Datastore" feature in VSphere client, when I try to add the virtual hard disk back to the VM, I get filename not found errors.  How can I rename the directory?"
0
 
LVL 118
ID: 37783932
Right Click the Datastore, Browse Datastore, Right Click the Folder, and Select Rename.
0
 
LVL 118
ID: 37783945
You need to change ALL the entries in the VMX file.

Unregister the VM, Edit the VMX, making sure ALL the entries have the correct path.
0
 
LVL 118
ID: 37783962
also check the vmdk, and flat vmdk references are correct.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Author Comment

by:sedberg1
ID: 37784070
This is what I did:
Ran a ghettoVCB script on a VM named mail1.  This created a backup in a folder called mail1-2012-03-29_13-39-05

To restore, ran ghettoVCB-restore.sh which works fine.  It's just renaming the directory for easier mgmt in the future that's giving me trouble.  These are the steps I'm doing to rename the directory...

1. Removed the hard disk from the VM (not deleted, jsut removed)
2. vmkfstools -E mail1-0.vmdk mail1.vmdk  -  That renamed both the mail1-0.vmdk and mail1-0-flat.vmdk to mail1.vmdk and mail1-flat.vmdk respectively.
3. Edited any entry referring to the directory in the mail1.vmx file (full text attached)
4. Renamed the directory name from mail1-2012-03-29_13-39-05 to mail1
5. Added the hard disk back to the VM
6. Got this error:  

File <unspecified filename> was not found
Time: blah blah
Target: mail1
ESXi: 10.1.6.66
mail1-vmx.txt
0
 

Author Comment

by:sedberg1
ID: 37784076
With renaming the directory, I'm using the Datastore Browser inside VSphere client.
0
 
LVL 118
ID: 37784097
this error message can indicate the virtual machine disk is incorrect

what does the vmdk contents state
0
 

Accepted Solution

by:
sedberg1 earned 0 total points
ID: 37784161
Ok, if I right-click the VM in VSphere and choose Remove from Inventory, then rename the directory using the Datastore Brwoser in the VSphere client, then open up that directory, right-click the VMX file and choose Add to Inventory, I have no problem.  That renames everything, and I can resort to business as usual.  Problem solved.
0
 
LVL 118
ID: 37784176
Yes the VMX contents is cached.
0
 

Author Closing Comment

by:sedberg1
ID: 37859698
This is the answer.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This is an issue that we can get adding / removing permissions in the vCSA 6.0. We can also have issues searching for users / groups in the AD (using your identify sources). This is how one of the ways to handle this issues and fix it.
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now