From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIzu9-0005pR-NS for qemu-devel@nongnu.org; Mon, 09 Sep 2013 07:45:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VIzu4-0005M9-Ci for qemu-devel@nongnu.org; Mon, 09 Sep 2013 07:45:17 -0400 Date: Mon, 9 Sep 2013 13:45:08 +0200 From: Stefan Hajnoczi Message-ID: <20130909114508.GA20215@stefanha-thinkpad.redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] virtio with Windows 8. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Yaodong Yang Cc: "qemu-devel@nongnu.org" , "qemu-discuss@nongnu.org" On Mon, Sep 09, 2013 at 12:02:57AM -0500, Yaodong Yang wrote: > 1. I create a raw image named as win8.img, using the following command: > /usr/local/kvm/bin/qemu-img create -f raw win8.img 20G > > 2. I try to install win8 with the following command, but I failed several times. > > sudo /usr/local/kvm/bin/qemu-system-x86_64 -enable-kvm -drive file=./win8.img,if=virtio,cache=none -cdrom ./win8.iso -boot d -m 2048. > > 3. I try the same command but with if=ide, it works. > > Could someone tell me the reason for this failure? The Windows installer will not detect virtio-blk disks since Windows does not come with virtio drivers by default. You must provide the virtio-win drivers ISO during the installation: https://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/ Watch for the screen where Windows prompts you for a driver disk and put in the virtio-win ISO. Stefan