LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 09-05-2018, 03:42 PM   #1
Sum1
Member
 
Registered: Jul 2007
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332

Rep: Reputation: 30
P2V using dd and qemu-img


I need to work with vlans and vm's on my current workstation and wanted to see if anyone has successfully converted a physical windows installation to vm doing the following:

<</dev/sda2 is the partition holding the windows installation>>

Code:
[root@local~]$dd if=/dev/sda2 of=/mnt/storage/win-os.img bs=4K conv=noerror,sync
Code:
[root@local~]$qemu-img convert -f raw -O qcow2 /mnt/storage/win-os.img win-os.qcow2
Will this make a usable windows vm with kvm?

Thanks for your guidance.
 
Old 09-05-2018, 04:45 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
No it won't work.

A P2V program takes a proper install usually and converts both the loader and the OS area. It also converts the HAL so that it can work on the new hardware. Remember windows doesn't like to be moved.

One might do a full backup with systems state and then restore it one top of a clean install to new VM may work. Your agreement with MS will tell how or if you can move this install.

If are simply testing then get an Offical MS VM image maybe or any of the MS products should work for a short time on a VM.
 
Old 09-05-2018, 05:15 PM   #3
Sum1
Member
 
Registered: Jul 2007
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by jefro View Post
No it won't work.

Remember windows doesn't like to be moved.
If are simply testing then get an Offical MS VM image maybe or any of the MS products should work for a short time on a VM.
As always, thanks for the guidance, Jefro! :-)
Unfortunately, as I suspected.
I'll see what's possible with an official MS VM image.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
qemu-img compression: how to preserve snapshots? atelszewski Linux - Virtualization and Cloud 2 12-18-2017 02:15 PM
Size of vm created by qemu-img convert Nick_C Linux - Virtualization and Cloud 14 03-30-2012 05:29 AM
After qemu-img, qemu is not capable to detect the C drive (empty) frenchn00b Linux - General 3 10-18-2009 05:39 AM
partitioning qemu-img; share your wisdom and what you got on vhd? linus72 Linux - General 3 06-14-2009 10:41 AM
Qemu.img to hard drive towjamb Debian 3 04-17-2007 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 06:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration