* Partition Disk cloning using dd to KVM with UEFI -> BSOD! or nothing
@ 2015-03-06 17:13 Ben
2015-03-06 17:29 ` Mauricio Tavares
0 siblings, 1 reply; 3+ messages in thread
From: Ben @ 2015-03-06 17:13 UTC (permalink / raw)
To: kvm
Hi,
I have read a good documentation
(http://fds-team.de/cms/articles/2013-12/use-a-real-windows-7-partition-in-virtualbox-kvm-vmware-player-u.html)
explaining how to use a physical disk/partition and clone it to KVM image.
I am wondering if someone has some how-to with an UEFI partition?
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!
I have installed OVMF and tried with -L option but I don't succeed.
I already know that it is not ideal (because of drivers and lot of other
reasons) to do that but the Windows installation is made by my company
and I would like to not loose it..
Many thanks for your help!
belette
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Partition Disk cloning using dd to KVM with UEFI -> BSOD! or nothing
2015-03-06 17:13 Partition Disk cloning using dd to KVM with UEFI -> BSOD! or nothing Ben
@ 2015-03-06 17:29 ` Mauricio Tavares
2015-03-06 18:02 ` Paolo Bonzini
0 siblings, 1 reply; 3+ messages in thread
From: Mauricio Tavares @ 2015-03-06 17:29 UTC (permalink / raw)
To: kvm
On Fri, Mar 6, 2015 at 12:13 PM, Ben <benoitne@gmail.com> wrote:
> Hi,
>
> I have read a good documentation
> (http://fds-team.de/cms/articles/2013-12/use-a-real-windows-7-partition-in-virtualbox-kvm-vmware-player-u.html)
> explaining how to use a physical disk/partition and clone it to KVM image.
> I am wondering if someone has some how-to with an UEFI partition?
>
> 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?
> I have installed OVMF and tried with -L option but I don't succeed.
> I already know that it is not ideal (because of drivers and lot of other
> reasons) to do that but the Windows installation is made by my company
> and I would like to not loose it..
>
> Many thanks for your help!
>
> belette
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Partition Disk cloning using dd to KVM with UEFI -> BSOD! or nothing
2015-03-06 17:29 ` Mauricio Tavares
@ 2015-03-06 18:02 ` Paolo Bonzini
0 siblings, 0 replies; 3+ messages in thread
From: Paolo Bonzini @ 2015-03-06 18:02 UTC (permalink / raw)
To: Mauricio Tavares, kvm
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-03-06 18:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-06 17:13 Partition Disk cloning using dd to KVM with UEFI -> BSOD! or nothing Ben
2015-03-06 17:29 ` Mauricio Tavares
2015-03-06 18:02 ` Paolo Bonzini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox