Solved

Restore missing vhd-parent in a XenServer virtual machine

Posted on 2014-01-09
8
1,997 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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
 
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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
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‚Ķ
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

691 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