From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fam Zheng Subject: Re: Migration route from Parallels on Mac for Windows images? Date: Mon, 1 Jul 2013 09:52:15 +0800 Message-ID: <20130701015215.GA6521@t430s.nay.redhat.com> References: <0EACC773-5DB2-4E83-A11A-9496C9BC1B90@9ci.com> <8144f48d-6c74-43ab-8bc6-474687ceb401@theiggy.com> <51CD4BBD.6060200@redhat.com> <531C0CE7-F07C-4BE6-A9D8-3E15987ED6D9@9ci.com> Reply-To: famz@redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Paolo Bonzini , Brian Jackson , kvm@vger.kernel.org To: Ken Roberts Return-path: Received: from mx1.redhat.com ([209.132.183.28]:38561 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751386Ab3GABwP (ORCPT ); Sun, 30 Jun 2013 21:52:15 -0400 Content-Disposition: inline In-Reply-To: <531C0CE7-F07C-4BE6-A9D8-3E15987ED6D9@9ci.com> Sender: kvm-owner@vger.kernel.org List-ID: On Fri, 06/28 22:36, Ken Roberts wrote: > > > On Jun 28, 2013, at 3:39 AM, Paolo Bonzini wrote: > > > Il 28/06/2013 03:01, Ken Roberts ha scritto: > >>>> More details on "not bootable" would be nice. Do you get a blue screen? Seabios screen? You may need to prep the image before you convert it (google mergeide). > >> > >> Not sure if you support screenshots on the list, so I'm typing it below the post. > >> > >> The only configured device is the hard disk, it is INSTANTLY showing Boot failed: not a bootable disk. > > > > If you attach one of your Windows images to one of the Linux VMs and run > > the Linux VM on Parallels, what does "file -s" say if you pass it the > > Windows disk? > > # fdisk -l /dev/sdb > Disk /dev/sdb: 68.7 GB, 68719730688 bytes > 255 heads, 63 sectors/track, 8354 cylinders, total 134218224 sectors > Units = sectors of 1 * 512 = 512 bytes > Sector size (logical/physical): 512 bytes / 512 bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > Disk identifier: 0x00010001 > > Device Boot Start End Blocks Id System > /dev/sdb1 * 63 134190944 67095441 7 HPFS/NTFS/exFAT > > > # file -s /dev/sdb > /dev/sdb: x86 boot sector, Microsoft Windows XP MBR, Serial 0x10001; partition 1: ID=0x7, active, starthead 1, startsector 63, 134190882 sectors, code offset 0xc0 > > # file -s /dev/sdb1 > /dev/sdb1: x86 boot sector, code offset 0x52, OEM-ID "NTFS ", sectors/cluster 8, reserved sectors 0, Media descriptor 0xf8, heads 255, hidden sectors 63, dos < 4.0 BootSector (0x80) > > > > And what does "file" say (on the host) about the same Windows image > > after conversion to raw? > > $file -s popeye-c-raw.img > popeye-c-raw.img: data > > > > Also, can you do > > > > dd if=/path/to/windows-image.raw bs=512 count=1 | od -tx1 > > > > (of course you have to replace /path/to/windows-image.raw) and include > > the output? > > $dd if=popeye-c-raw.img bs=512 count=1 | od -tx1 > 1+0 records in > 1+0 records out > 512 bytes (512 B) copied, 0.000139388 s, 3.7 MB/s > 0000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > * > 0001000 > Definitely not a correct conversion, can you post your converting command? I think is should be one like: qemu-img convert -f parallels -O qcow2 original.parallels target.qcow2 -- Fam