Bug 1240276
Summary: | Add checks to ensure libguestfs-winsupport functionality only available to virt-v2v and virt-p2v | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Richard W.M. Jones <rjones> | |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | high | |||
Version: | 7.2 | CC: | huzhan, jherrman, juzhou, leiwang, linl, mzhan, ngalvin, ptoscano, rjones, tzheng, wshi, xiaodwan | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | libguestfs-1.28.1-1.47.el7 | Doc Type: | Enhancement | |
Doc Text: |
The libguestfs-winsupport subpackage can now be used for performing virtual-to-virtual (virt-v2v) and physical-to-virtual (virt-p2v) conversions of Windows guests. However, with several exceptions such as virt-win-reg, it is no longer possible to use most libguestfs tools on Windows disk images.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1243493 (view as bug list) | Environment: | ||
Last Closed: | 2015-11-19 07:02:28 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: | 1240278, 1243493 |
Description
Richard W.M. Jones
2015-07-06 12:28:12 UTC
I can reproduce this issue with package: libguestfs-1.28.1-1.44.el7.x86_64 libvirt-1.2.17-1.el7.x86_64 virt-v2v-1.28.1-1.44.el7.x86_64 Steps: # guestfish -a /var/lib/libvirt/images/win7.qcow2 -i guestfish: no operating system was found on this disk If using guestfish '-i' option, remove this option and instead use the commands 'run' followed by 'list-filesystems'. You can then mount filesystems you want by hand using the 'mount' or 'mount-ro' command. If using guestmount '-i', remove this option and choose the filesystem(s) you want to see by manually adding '-m' option(s). Use 'virt-filesystems' to see what filesystems are available. If using other virt tools, this disk image won't work with these tools. Use the guestfish equivalent commands (see the virt tool manual page). RHEL notice ------------- libguestfs will return this error for Microsoft Windows guests if the separate 'libguestfs-winsupport' package is not installed. If the guest is running Microsoft Windows, please try again after installing 'libguestfs-winsupport'. # virt-inspector /var/lib/libvirt/images/win7.qcow2 <?xml version="1.0"?> <operatingsystems/> Then try to verify this bug with new build: libguestfs-1.28.1-1.46.el7.x86_64 virt-v2v-1.28.1-1.46.el7.x86_64 libguestfs-xfs-1.28.1-1.46.el7.x86_64 libguestfs-winsupport-7.2-1.el7.x86_64 # virt-inspector /var/lib/libvirt/images/win7.qcow2 <?xml version="1.0"?> <operatingsystems/> # guestfish -a /var/lib/libvirt/images/win7.qcow2 -i guestfish: no operating system was found on this disk --------------------------------^ win7.qcow2 is a disk with operating system, is it a bug? If using guestfish '-i' option, remove this option and instead use the commands 'run' followed by 'list-filesystems'. You can then mount filesystems you want by hand using the 'mount' or 'mount-ro' command. If using guestmount '-i', remove this option and choose the filesystem(s) you want to see by manually adding '-m' option(s). Use 'virt-filesystems' to see what filesystems are available. If using other virt tools, this disk image won't work with these tools. Use the guestfish equivalent commands (see the virt tool manual page). # virt-v2v -i disk /var/lib/libvirt/images/win7.qcow2 -o local -os /var/tmp/ [ 0.0] Opening the source -i disk /var/lib/libvirt/images/win7.qcow2 [ 1.0] Creating an overlay to protect the source from being modified [ 1.0] Opening the overlay [ 3.0] Initializing the target -o local -os /var/tmp/ [ 3.0] Inspecting the overlay [ 4.0] Checking for sufficient free disk space in the guest [ 4.0] Estimating space required on target for each disk [ 4.0] Converting Windows 7 Ultimate to run on KVM virt-v2v: This guest has virtio drivers installed. [ 6.0] Mapping filesystem data to avoid copying unused and blank areas [ 7.0] Closing the overlay [ 7.0] Checking if the guest needs BIOS or UEFI to boot [ 7.0] Copying disk 1/1 to /var/tmp/win7-sda (qcow2) (100.00/100%) [ 261.0] Creating output metadata [ 261.0] Finishing off Result: Conversion finished with no error and guest can boot up. Hi rjones, please help have a look, are above steps enough to reproduce and verify this bug, thanks. (In reply to zhoujunqin from comment #3) > Then try to verify this bug with new build: > libguestfs-1.28.1-1.46.el7.x86_64 > virt-v2v-1.28.1-1.46.el7.x86_64 > libguestfs-xfs-1.28.1-1.46.el7.x86_64 > libguestfs-winsupport-7.2-1.el7.x86_64 > > # virt-inspector /var/lib/libvirt/images/win7.qcow2 > <?xml version="1.0"?> > <operatingsystems/> > > # guestfish -a /var/lib/libvirt/images/win7.qcow2 -i > guestfish: no operating system was found on this disk > --------------------------------^ win7.qcow2 is a disk with operating > system, is it a bug? No this is not a bug. libguestfs-winsupport is supposed to only be usable from virt-v2v and virt-p2v. You can no longer use it from guestfish or other virt-* tools. The behaviour above is correct. (In reply to Richard W.M. Jones from comment #4) > (In reply to zhoujunqin from comment #3) > > Then try to verify this bug with new build: > > libguestfs-1.28.1-1.46.el7.x86_64 > > virt-v2v-1.28.1-1.46.el7.x86_64 > > libguestfs-xfs-1.28.1-1.46.el7.x86_64 > > libguestfs-winsupport-7.2-1.el7.x86_64 > > > > # virt-inspector /var/lib/libvirt/images/win7.qcow2 > > <?xml version="1.0"?> > > <operatingsystems/> > > > > # guestfish -a /var/lib/libvirt/images/win7.qcow2 -i > > guestfish: no operating system was found on this disk > > --------------------------------^ win7.qcow2 is a disk with operating > > system, is it a bug? > > No this is not a bug. libguestfs-winsupport is supposed to > only be usable from virt-v2v and virt-p2v. You can no longer > use it from guestfish or other virt-* tools. The behaviour > above is correct. Thanks for your quick reply, i understand it now. According to Comment 3 and Comment 4, move this bug from ON_QA to VERIFIED. 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 |