From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: Partition Disk cloning using dd to KVM with UEFI -> BSOD! or nothing Date: Fri, 06 Mar 2015 19:02:25 +0100 Message-ID: <54F9EBB1.1040603@redhat.com> References: <54F9E049.3060504@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: Mauricio Tavares , kvm@vger.kernel.org Return-path: Received: from mail-wi0-f172.google.com ([209.85.212.172]:46364 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751280AbbCFSCb (ORCPT ); Fri, 6 Mar 2015 13:02:31 -0500 Received: by widem10 with SMTP id em10so5448776wid.5 for ; Fri, 06 Mar 2015 10:02:30 -0800 (PST) In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 06/03/2015 18:29, Mauricio Tavares wrote: >> > My objective is to clone a partition of Windows 7 from a physical disk. >> > (not the entire disk as it is a 256GB disk and my disk on my host is as >> > well a 256GB so I would not get a byte of free space doing that! only >> > need to clone the root partition of Windows which is around 80GB). >> > >> > When I plug the disk into my host, I tried a >> > >> > |dd if=/dev/sda2 of=image.raw bs=512| >> > >> > (where /dev/sda2 is my 80GB Windows Partition). >> > >> > If I tried to do a >> > >> > |qemu-system-x86_64 -enable-kvm -vnc :0 -k fr image.raw| >> > >> > But my KVM is told me >> > >> > |Booting from Hard Disk...| >> > >> > and nothing more! >> > > Don't you have to copy the first few sectors of the hard drive? > Yes, and for UEFI you also need to copy the EFI system partition. Paolo