View Issue Details

IDProjectCategoryView StatusLast Update
0005223CentOS-6libguestfspublic2011-11-03 09:02
Status newResolutionopen 
Product Version6.0 
Target VersionFixed in Version 
Summary0005223: The tools from libguestfs-tools-1.2.7-1.24.el6.x86_64 package don't work with the Windows XP Pro KVM image
Descriptionvirt-inspector, virt-list-filesystems, virt-win-reg doesn't work with the Windows XP Pro KVM disk image with only one NTFS partition.

I need to use 'virt-win-reg' to get/set the values from the Windows registry, but always get the error message:

sh-4.1# virt-win-reg WinXP-2CPU-base.img
No operating system could be detected inside this disk image.

This may be because the file is not a disk image, or is not a virtual machine
image, or because the OS type is not understood by virt-inspector.

If you feel this is an error, please file a bug report including as much
information about the disk image as possible.

Steps To Reproduce1) Create a VM and install the Windows XP Pro with latest updates
2) Shutdown the VM

sh-4.1# uname -a
Linux ib-test1 2.6.32-71.29.1.el6.x86_64 #1 SMP Mon Jun 27 19:49:27 BST 2011 x86_64 x86_64 x86_64 GNU/Linux

sh-4.1# qemu-img info WinXP-2CPU-base.img
image: WinXP-2CPU-base.img
file format: raw
virtual size: 8.0G (8589934592 bytes)
disk size: 8.0G

sh-4.1# virt-list-partitions WinXP-2CPU-base.img

sh-4.1# virt-list-filesystems -l WinXP-2CPU-base.img
sh-4.1# echo $?

sh-4.1# losetup /dev/loop0 WinXP-2CPU-base.img
sh-4.1# losetup -a
/dev/loop0: [0812]:26 (/VMstorage/WinXP-2CPU-base.img)

sh-4.1# fdisk /dev/loop0

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Command (m for help): p

Disk /dev/loop0: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x18171817

      Device Boot Start End Blocks Id System
/dev/loop0p1 * 1 1043 8377866 7 HPFS/NTFS

Command (m for help):

sh-4.1# losetup -d /dev/loop0

If I use the following command:

sh-4.1# mount -t ntfs-3g -o loop,offset=32256 WinXP-2CPU-base.img /mnt
sh-4.1# ls /mnt
AUTOEXEC.BAT boot.ini Documents and Settings MSDOS.SYS ntldr Program Files WINDOWS
Bootfont.bin CONFIG.SYS IO.SYS NTDETECT.COM pagefile.sys System Volume Information
TagsNo tags attached.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2011-11-03 09:02 IvanB New Issue