From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:40069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWuac-0007ln-Dv for qemu-devel@nongnu.org; Sat, 03 Dec 2011 13:45:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWuab-0006SN-6s for qemu-devel@nongnu.org; Sat, 03 Dec 2011 13:45:34 -0500 Received: from mail-ww0-f41.google.com ([74.125.82.41]:32777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWuab-0006S9-2J for qemu-devel@nongnu.org; Sat, 03 Dec 2011 13:45:33 -0500 Received: by wgbdt12 with SMTP id dt12so3427650wgb.4 for ; Sat, 03 Dec 2011 10:45:31 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <4ED8E55C.2070201@labri.fr> References: <20111202130025.32130.46511.malonedeb@gac.canonical.com> <4ED8E55C.2070201@labri.fr> Date: Sat, 3 Dec 2011 18:45:31 +0000 Message-ID: From: Stefan Hajnoczi Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Qemu-devel] [Bug 899143] [NEW] Raw img not recognized by Windows List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bug 899143 <899143@bugs.launchpad.net> Cc: qemu-devel@nongnu.org On Fri, Dec 2, 2011 at 2:45 PM, Vincent Autefage <899143@bugs.launchpad.net> wrote: > $ qemu-img create -f raw root.img 100GB > $ mkntfs -F root.img > $ qemu -name W -sdl -m 2048 -enable-kvm -localtime -k fr -hda root.img > -cdrom windows7.iso -boot d -net nic,macaddr=a0:00:00:00:00:01 -net > user,vlan=0 QEMU does recognize the raw image. You can check this by running 'info block' at the QEMU monitor (Ctrl-Alt-2) and you'll see ide-hd0 is the raw image file you specified. Press Ctrl-Alt-1 to get back to the VM display. The problem is that the Windows installer does not like the disk image you have prepared. A normal harddisk has a master boot record but you created a raw image without a master boot record. The Windows installer is being picky/careful and not displaying this non-standard disk you created. Skip the mkntfs step and the installer works fine. There's no need to create the file system because the installer will do it for you. Stefan