Bug 824867

Summary: Windows guest with dynamic disk can not boot on rhev after conversion by virt-p2v
Product: Red Hat Enterprise Linux 7 Reporter: tingting zheng <tzheng>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 7.0CC: cwei, dyuan, juzhou, jwu, mzhan, ptoscano, rbalakri, rjones, tzheng, xiaodwan
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: P2V
Fixed In Version: virt-p2v-1.28.1-1.49.1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 06:56:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1205796    
Attachments:
Description Flags
Screenshot of windows guest with md device boot fail
none
p2v log for conversion of windows with MD disk
none
OVF file of guest in export domain
none
OVF file of guest in NFS storage none

Description tingting zheng 2012-05-24 13:20:36 UTC
Description of Problem:
Windows guest with dynamic disk can not boot on rhev after conversion by virt-p2v

Version-Release number of selected component:
virt-p2v-0.8.6-5.20120502.1.el6.iso
virt-v2v-0.8.7-6.el6.x86_64
libguestfs-1.16.19-1.el6.x86_64
libvirt-0.9.10-20.el6.x86_64
augeas-0.9.0-4.el6.x86_64
febootstrap-3.12-1.el6.x86_64
hivex-1.3.3-4.el6.x86_64
libguestfs-winsupport-1.0-7.el6.x86_64
virtio-win-1.5.1-1.el6.noarch

How reproducible:
Always

Step to Reproduce:
1.Install windows on physical machine(sda1).

2.Create dynamic disk with sda2 and sda3.

3.Use virt-p2v to convert the host to rhev.

4.After conversion,import the guest and boot the guest.

Actual Results:
The guest can not boot successfully.

Expected Results:
The guest can boot successfully.

Additional info:
Windows guest with dynamic disk can be converted and boot successfully on libvirt

Comment 1 tingting zheng 2012-05-24 13:21:41 UTC
Created attachment 586630 [details]
Screenshot of windows guest with md device boot fail

Comment 2 tingting zheng 2012-05-24 13:23:06 UTC
Created attachment 586631 [details]
p2v log for conversion of windows with MD disk

Comment 3 tingting zheng 2012-05-24 13:24:01 UTC
Created attachment 586632 [details]
OVF file of guest in export domain

Comment 4 tingting zheng 2012-05-24 13:24:40 UTC
Created attachment 586633 [details]
OVF file of guest in NFS storage

Comment 9 tingting zheng 2012-06-01 10:01:25 UTC
I tested all windows guests with dynamic disk,host installed win7,win2008,win2008r2 can not boot after conversion to rhev,while host installed with winxp and win2003 can boot successfully after conversion to rhev.

Comment 11 RHEL Program Management 2012-07-10 07:19:36 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 12 RHEL Program Management 2012-07-11 01:58:26 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 13 RHEL Program Management 2012-12-14 07:32:40 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 14 tingting zheng 2013-08-09 05:19:39 UTC
I tested to use latest virt-p2v to convert win7 host with dynamic disk to rhev,after conversion,import the guest,the guest can be booted successfully.Yet not tested other windows,if I have time I will try.

virt-p2v version:virt-p2v-0.9.1-2.20130730

Comment 15 Richard W.M. Jones 2015-03-12 17:25:15 UTC
Tingting, can you try the latest virt-p2v?

Comment 17 tingting zheng 2015-03-13 03:16:50 UTC
(In reply to Richard W.M. Jones from comment #15)
> Tingting, can you try the latest virt-p2v?

Right now are busy with rhel6.7 virt-tools testing,I will try it later.

Comment 19 Richard W.M. Jones 2015-04-16 12:15:56 UTC
This requires the ldmtool program.  It should work upstream and
in Fedora (although I've not actually tested it), but without the
package being added to RHEL 7, it's not going to work there.

I think it's probably a good idea to fix this later in RHEL 7,
but it's not something we can do for RHEL 7.2.

Moving to RHEL 7.3.

Comment 20 tingting zheng 2015-08-14 05:43:58 UTC
Tested with:
virt-p2v-1.28.1-1.49.1.el7

1.Install windows 7 32 bit on physical machine(sda1).
2.Create dynamic disk with sda2 and sda3.
3.Use virt-p2v to convert the host to rhev.
4.After conversion,import the guest and boot the guest.
5.Guest can be booted successfully on rhev.

So I think we can close this bug.

Comment 21 Richard W.M. Jones 2015-08-14 08:38:07 UTC
I'm a bit surprised it works without ldmtool.  I guess that
it works only because the systemroot disk (C: / sda) is not a
dynamic disk.  The other two disks are just treated as data.

I'm adding the bug to the erratum, as that was the original test case.

I doubt conversion of a host with dynamic disks as systemroot
would work, until we can add ldmtool to RHEL 7.

Comment 23 tingting zheng 2015-08-14 09:19:13 UTC
Refer to comment 20,move this bug to VERIFIED.

Comment 25 errata-xmlrpc 2015-11-19 06:56:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2183.html