LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-17-2018, 09:42 PM   #1
brushspin
LQ Newbie
 
Registered: Jul 2017
Posts: 14

Rep: Reputation: Disabled
Post P2V Windows > Linux


https://edoceo.com/howto/kvm-windows-p2v
This guide was the first thing in a google search but I don't feel comfortable putting things into my windows registry from a site I'm not familiar with.

Can anyone confirm this being a safe way to migrate P2V for a fresh install on my current machine?
 
Old 03-18-2018, 03:22 AM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
The reg scripts look pretty innocent. They point Windows to use other hard disk drivers etc. Don't take my word for it, I might have overlooked something. Although the scripts intentions seems to be genuine someone might have distributed a malign version.

A few things to keep in mind. Windows installations spread out over a few hundreds Gigs of space. With immutable space at the end and in the middle. Totally unnecessary but it does. You might not want to create a 400 GB VM image. There are articles on internet on how to delete those immutable space. If I knew which one was the correct one (which I used once) I would tell you. I am not able to find it back. But depending on installed applications, you might be able to shrink a 400 GB partition to 40 GB. Which is better to handle.

For virtualization I have used VMWare P2V. It is free and easy to use. Works flawlessly. It creates a vmx file. Which can be converted to KVM format.

If you have a OEM Windows version (which came instlled on you PC) forget the migration. Windows will loose its activation. Re-activation by phone is extremely cumbersome. And I believe it cannot be done for W10. Tied to the hardware forever. Retail versions can be re-activated AFAIK. If I ever have to make a Windows VM installation I will buy a new retail version. It gives a bad feeling to purchase what you already have but it is a lot less headache.

jlinkels
 
Old 03-18-2018, 09:38 AM   #3
brushspin
LQ Newbie
 
Registered: Jul 2017
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
The reg scripts look pretty innocent. They point Windows to use other hard disk drivers etc. Don't take my word for it, I might have overlooked something. Although the scripts intentions seems to be genuine someone might have distributed a malign version.
Thank you for the assurance. I wish I knew how to read the file myself; what is it written in?

Quote:
A few things to keep in mind. Windows installations spread out over a few hundreds Gigs of space. With immutable space at the end and in the middle. Totally unnecessary but it does. You might not want to create a 400 GB VM image. There are articles on internet on how to delete those immutable space. If I knew which one was the correct one (which I used once) I would tell you. I am not able to find it back. But depending on installed applications, you might be able to shrink a 400 GB partition to 40 GB. Which is better to handle.
I'll do the research on that and return with what I find for others.

Quote:
If you have a OEM Windows version (which came installed on your PC) forget the migration. Windows will lose its activation. Re-activation by phone is extremely cumbersome. And I believe it cannot be done for W10. Tied to the hardware forever. Retail versions can be re-activated AFAIK. If I ever have to make a Windows VM installation I will buy a new retail version. It gives a bad feeling to purchase what you already have but it is a lot less headache.
Thanks for the heads-up. I honestly only need it for the adobe products (my last tie to the windows OS). Either I only want this VM for offline productivity, nothing more.
 
Old 03-18-2018, 10:12 AM   #4
brushspin
LQ Newbie
 
Registered: Jul 2017
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Quote:
A few things to keep in mind. Windows installations spread out over a few hundreds Gigs of space. With immutable space at the end and in the middle. Totally unnecessary but it does. You might not want to create a 400 GB VM image. There are articles on internet on how to delete those immutable space. If I knew which one was the correct one (which I used once) I would tell you. I am not able to find it back. But depending on installed applications, you might be able to shrink a 400 GB partition to 40 GB. Which is better to handle.
I'll do the research on that and return with what I find for others.
Ok turns out you can cut them out using the VMware converter (standalone in my case) by going to the "Data to Copy" section and changing that data size from "Maintain size" to "Minimum size".

Thanks for the help! Converting now, can't wait to install Arch on my main machine once more. This time with more Linux knowledge.

Last edited by brushspin; 03-18-2018 at 10:17 AM.
 
Old 03-18-2018, 05:36 PM   #5
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
You can open the .reg file with any text editor. They contain registry keys and values. The registry key is exactly how you find it in the Windows registry editor. Quite self explaining really. The key and the value are parameters to the reg command which do nothing else than writing them in the registry.

For some reason M$ has carried the text based reg tool from the very beginning of the existence of the registry. Actually it is quite useful for system administrators. And for malware of course. Usually M$ tries to make the life of system administrators as complicated as possible. That is why my amazement.

jlinkels
 
Old 03-18-2018, 06:15 PM   #6
brushspin
LQ Newbie
 
Registered: Jul 2017
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jlinkels View Post
Usually M$ tries to make the life of system administrators as complicated as possible.
jlinkels
Yey. I can't wait to learn about the idiocy of Windows. I'm trying to become a system admin within a year.
 
Old 03-30-2018, 07:37 AM   #7
bgstack15
Member
 
Registered: Jul 2017
Distribution: korora
Posts: 90

Rep: Reputation: Disabled
Quote:
Originally Posted by jlinkels View Post
If you have a OEM Windows version (which came instlled on you PC) forget the migration. Windows will loose its activation. Re-activation by phone is extremely cumbersome. And I believe it cannot be done for W10. Tied to the hardware forever. Retail versions can be re-activated AFAIK. If I ever have to make a Windows VM installation I will buy a new retail version. It gives a bad feeling to purchase what you already have but it is a lot less headache.

jlinkels
Now, is Windows Activation different than simply the serial number you need to punch in? For OEM Windows versions that came with your hardware, and you're now running GNU/Linux on that hardware, you can learn the Windows serial number. Source: https://bgstack15.wordpress.com/2017...ware-in-linux/
Code:
sudo hexdump -s 56 -e '"MSDM key: " /29 "%s\n"' /sys/firmware/acpi/tables/MSDM
 
Old 03-30-2018, 08:15 AM   #8
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Yes, it is different from punching in the serial number. One is punching in the serial number, the other is activation. (Sorry I could not help that)

Been there, done that. You can enter the serial number and activation fails. I tried this on a W10 installation from my DELL Inspiron. Converted W10 to a VM, installed Linux, run W10 in VirtualBox. When run initially W10 tells it is still activated. After some time (hours, days?) it tells activation is expired.

On EBay you can purchase Windows licenses for a few dollars. I have not tried it yet, but a colleague of me who does a lot more with Windows assures me it is genuine. At least in the sense that Windows will activate. There is no risk of malware because you have to download the Windows image from Microsoft. Soon I will try it as well, that few dollars cannot harm me.

Furthermore there are dozens of "Windows Activation Tools" out on the internet which simulate the Windows Activation server. Some are quite common and highly recommended. I do not dare to use one of those. You never know what else is installed.

jlinkels

Last edited by jlinkels; 03-30-2018 at 08:17 AM.
 
  


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
Linux P2V with separation between OS and Data tux100 Linux - Virtualization and Cloud 1 10-20-2014 07:38 PM
P2V cloning Windows system partition in a virtual machine maja_ldm Linux - Newbie 4 07-16-2014 05:29 PM
Xen Cloud-P2V a Linux Machine karateckie Linux - Virtualization and Cloud 1 11-11-2010 04:22 PM
VMWare converted P2V Windows 7 guest - driver for network adapter not found taylorkh Linux - Virtualization and Cloud 14 02-19-2010 04:45 AM
Linux P2V asgarcymed Linux - General 2 12-05-2006 03:40 PM

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

All times are GMT -5. The time now is 07:45 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