Solved

Restore missing vhd-parent in a XenServer virtual machine

Posted on 2014-01-09
8
1,880 Views
Last Modified: 2014-02-09
Hallo


My question:

Is it possible to extract a .vhd virtual disk from a .xva export created in XenServer (V5.6)?


Situation:

The original VM was stored in two .vhd files; the first (vhd-parent) is RO and is unchanged since 2010, the other is RW and contains all the changes since.

The vhd-parent has been accidentally deleted.

Since I have an .xva export of the VM from 2012, it should contain the segment that I need

By importing the .xva in a new VM, though, the content is merged in a single .vhd file and the changes can't be applied.


Thank you.
Roberto C.
0
Comment
Question by:helpdti
  • 4
  • 3
8 Comments
 
LVL 23

Expert Comment

by:Ayman Bakr
ID: 39770702
You can use XenConvert to achieve your goal of converting .XVA to .VHD. To convert a .XVA created on XenServer 5.6 you will require XenConvert 2.4.1 (the latest is 2.5).

To get XenConvert visit this link:

http://www.citrix.com/downloads/xenserver/tools/conversion.html

For more info on how to do the conversion visit this link:
http://www.mytechrants.com/converting-citrix-xva-file-to-microsoft-hyper-v-vhd/

But how to really extract the RO part out of it is something I don't think is possible.
0
 

Author Comment

by:helpdti
ID: 39771840
Thanks for the answer

Unfortunately the .vhd obtained as a result of the conversion can't be paired to the .vhd, that contains the changes, so I'm left with the old data.

What I don't understand is that I deleted the read-only file in October, and the VM continued to work fine until last Monday, when it was rebooted.

Is it possible that the second .vhd must exist as a requirement, but doesn't containd any important data?
0
 
LVL 23

Expert Comment

by:Ayman Bakr
ID: 39775295
Do you mean the RW? Well without it, you don't get personalized settings presented saved as long as the VM is up.

How are you presented with these .vhd? Is it through SAN? Then you might ask your storage admin to restore you the RO .vhd from a certain date.
0
 

Author Comment

by:helpdti
ID: 39775946
I meant the read-only file. The VM continues to work fine without it, until rebooted.

No backup available other that the exported machine a year ago.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 23

Assisted Solution

by:Ayman Bakr
Ayman Bakr earned 250 total points
ID: 39782750
As far as I know, I don't think it is possible to split the file into its two .vhd constituents. Maybe you can raise a flag for calling other experts to help.
0
 

Accepted Solution

by:
helpdti earned 0 total points
ID: 39783035
I found a solution.

I was finally able to pair the .vhd obtained from the old restore (file1) with the .vhd that contains the most recent changes (file2).

Instead of trying to change the vdi-parent reference, that turned out coded in file2, I renamed file1 giving it the name indicated in this reference.

With this two files, the VM started. By exporting and reimporting it, the occupied space was then reduced from 2x60GB to 1x60GB and the vdi-parent configuration removed.

Thanks for helping
Roberto
0
 

Author Closing Comment

by:helpdti
ID: 39793751
I found the solution myself.

The expert's comments where helpful, although not conclusive
0
 

Expert Comment

by:LUBOSFIALA
ID: 39845162
just as a note, since i've been tackling the ~same issue: the RW disk is a differentiating disk and this is the actual VDI used by the VM (can see this by UUID). as long as the VM is not touched (rebooted, migrated, etc) it will continue to run even without it's parent.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

It Is not possible to enable LLDP in vSwitch(at least is not supported by VMware), so in this article we will enable this, and also go trough how to enabled CDP and how to get this information in vSwitches and also in vDS.
Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…

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