Moving a physical Windows installation to a VM
-
If I recall correctly VM-Ware give you the possibility to create the VM using a backup image as source.
M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
I have the live system; why would I need to make a VM from a backup? :confused:
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
-
If you're looking to move into Linux anyway, QEMU is the built-in virtualization provider for Linux, and KVM (Kernel Virtualization Module, not Keyboard-Video-Mouse) is a QEMU package that provides extremely performant type 2 VM capabilities. Windows runs better on it than on bare metal, completely serious, though I don't have experience running hardcore graphics through it, so I don't know how it'd be for gaming or video rendering.
"Never attribute to malice that which can be explained by stupidity." - Hanlon's Razor
Thanks. I use Windows mostly for development and testing, so gaming isn't a big concern for me. As I said in my OP, my major reason to get away from Windows as the primary O/S on my machine is Microsoft's abysmal quality and QA record.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
-
Ok you make a VM but u never said where you want to host it?
Caveat Emptor. "Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long
I haven't yet decided whether I want a type 1 or type 2 hypervisor. That would have some bearing on the hosting question, would it not? :)
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
-
just as an aside I looked at doing this (and heard reports it works well) but then I realised I would be offloading a lot of other things to the linux host, web browser, email, video watching, music even most office work (documents), plus there was a few years of other cruft on the windows box either no longer used (dvd burners) as well as the inwvitable talings of uninstalled programs, thus I went clean slate on the windows vm, basically: windows, 7zip, np++ and vs2017, another one same except vs2013 (so no version X spoiling version Y). And really I can see a difference, some of the quirks (from some uninstalled progs) that had built up over time were all gone. I did need ms office for some interop apps (since converted away), so yet another VM with just office. (Similarly if you do have some win only req can either add it to your dev VM, or have a separate VM.) Oh yeah, and another one: plain w10 for testing (above all w7). The multiple VM's used a common shared directory where all my work files are, so I could even compile on one and flip to another to test. If I need another clean VM, just copy the base of one of the existing VM's - far easier then installing and setting up windows from scratch each time. Bonus: testing vanilla VM's - you will soon find out if for example you are relying on something that is particular to your dev env, previous releases or even own machine. (no more chance of the embarrassing, "oops, forgot about that, please wait while I download and install it.") incremental backups really easy: using snapshots don't need to backup the entire VM each time, can have branched snapshots on snapshots and roll back, prune, so many versions of your machine on all on one physical box, one backup... way less admin (backups, networking, setting permissioning..... ) than running multiple machines. And really don't waste metal on windows: Without even testing for that I noticed with 3 simultaneous VMs running they all performed as well as the machine when it was single install win only, windows (on new HW) is like buying a Ferrari that has been speed limited to 50. Total waste! licensing: my install on VM didn't like my license (it is a real lic) so screw it, I just went VL on the guests and run a VL auth host on the linux - doing it the naughty way and I know 2 longs don't make a light but no animals were harmed and don't really care to waste any more time on ms license stupidity.
Message Signature (Click to edit ->)
Thank you for a very comprehensive answer. It's given me plenty of food for thought.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
-
Because of Microsoft's many recent screwups, I am considering moving over to Linux as my main O/S. At the moment, I still have quite a few projects that must be developed under Windows, So I will need to keep my Windows machine as a VM. My questions: 1. Are there any recommendations for tools that can convert a physical partition to a VM? 2. What are the licensing issues? Will I have to purchase a completely new license for the VM, or can I transfer the license from the physical machine? 3. Should I use a type 1 ("bare metal") hypervisor, or go with a type 2 ("hosted") hypervisor? Any recommendations? Thanks.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
1. Like J.J. said. Done it, works. 2. Pedestrian view (IANAL): You have a license to run the OS on that machine. You are still running it on that same hardware. You very well may have to re-activate. I have never actually read the eula before clicking yes. 3. Production stuff (servers), Bare metal. We run our servers on ESXi. Tried MS's hyperV in the early days but ESXi ran faster. No religion here, just made that decision years ago and haven't revisited. The hosting system has very little direct access to VM's, you connect remotely. Manage from another system. That is the Vmware approach anyway. I do (stuff like you see on QA) development work on VM's (Linux and Windows) running on a Linux host with Vmware's workstation. Started with version 4 (from ebay) many years ago. VirtualBox, OTOH, is free. Vmware Player is free. Nobody in their right mind would test my stuff on hardware. :-D Unless you are familiar with Linux, or want to learn it, you may want to stay with Windows and just keep an off line image that you refresh weekly or so. After all, Windows gets updated in VM's same as hardware. or Hard drives are cheap. Install Linux on one, install a VM host (Virtualbox or Vmware, provides 30 day free "try it you'll like it plan"). Give it a try. Your hardware will determine how well a VM will perform. Need plenty of memory and should run VM's from separate hard drive (SSD).
If you can keep your head while those about you are losing theirs, perhaps you don't understand the situation.
-
I have the live system; why would I need to make a VM from a backup? :confused:
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
Create the VM in a different machine and not touch you main machine until it works?
M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
-
I can confirm that Sysinternals Disk2vhd works fine too :-\
-
Because of Microsoft's many recent screwups, I am considering moving over to Linux as my main O/S. At the moment, I still have quite a few projects that must be developed under Windows, So I will need to keep my Windows machine as a VM. My questions: 1. Are there any recommendations for tools that can convert a physical partition to a VM? 2. What are the licensing issues? Will I have to purchase a completely new license for the VM, or can I transfer the license from the physical machine? 3. Should I use a type 1 ("bare metal") hypervisor, or go with a type 2 ("hosted") hypervisor? Any recommendations? Thanks.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
No answer, but an interesting thought. I like it...thanks :) I've often played with VMs. Never really thought about converting from a physical to a virtual instance. An obvious requirement, simply haven't had the need yet.
-
Because of Microsoft's many recent screwups, I am considering moving over to Linux as my main O/S. At the moment, I still have quite a few projects that must be developed under Windows, So I will need to keep my Windows machine as a VM. My questions: 1. Are there any recommendations for tools that can convert a physical partition to a VM? 2. What are the licensing issues? Will I have to purchase a completely new license for the VM, or can I transfer the license from the physical machine? 3. Should I use a type 1 ("bare metal") hypervisor, or go with a type 2 ("hosted") hypervisor? Any recommendations? Thanks.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
-
Because of Microsoft's many recent screwups, I am considering moving over to Linux as my main O/S. At the moment, I still have quite a few projects that must be developed under Windows, So I will need to keep my Windows machine as a VM. My questions: 1. Are there any recommendations for tools that can convert a physical partition to a VM? 2. What are the licensing issues? Will I have to purchase a completely new license for the VM, or can I transfer the license from the physical machine? 3. Should I use a type 1 ("bare metal") hypervisor, or go with a type 2 ("hosted") hypervisor? Any recommendations? Thanks.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
I have not done this with Linux, but I did choose to migrate my life to macOS some years back (OS X at that time). I have used Parallels to host two Windows VMs: Windows XP for some older games and Windows 10 for SQL Server and most other uses I have these days. Licenses from older scrapped hardware sufficed to cover these installations; they did need to be re-authenticated, but that was pretty painless. For what I do in my home environment, the solution has worked quite well. Rollbacks when Windows screws something up have been great! Restore an older version of the VM files, and it's right back where it was. I have considered moving to VMWare, only because Parallels seems to expect a user to upgrade every year without providing any real upgrades to their product and no support ever. $50/year seems a little steep to remain status quo.
-
The problem with this is that because the licence is tied to the hardware, I might have problems migrating the it to the VM. I can't really justify buying new Windows licenses for the Windows 10 VMs...
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
I'm not really sure how MS wants to play this, but, ahem, cough, cough, eBay, cough. I would surely not pay $199 or whatever it is, but the going rate is about $10 on mentioned place...
Charlie Gilley <italic>Stuck in a dysfunctional matrix from which I must escape... "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
-
just as an aside I looked at doing this (and heard reports it works well) but then I realised I would be offloading a lot of other things to the linux host, web browser, email, video watching, music even most office work (documents), plus there was a few years of other cruft on the windows box either no longer used (dvd burners) as well as the inwvitable talings of uninstalled programs, thus I went clean slate on the windows vm, basically: windows, 7zip, np++ and vs2017, another one same except vs2013 (so no version X spoiling version Y). And really I can see a difference, some of the quirks (from some uninstalled progs) that had built up over time were all gone. I did need ms office for some interop apps (since converted away), so yet another VM with just office. (Similarly if you do have some win only req can either add it to your dev VM, or have a separate VM.) Oh yeah, and another one: plain w10 for testing (above all w7). The multiple VM's used a common shared directory where all my work files are, so I could even compile on one and flip to another to test. If I need another clean VM, just copy the base of one of the existing VM's - far easier then installing and setting up windows from scratch each time. Bonus: testing vanilla VM's - you will soon find out if for example you are relying on something that is particular to your dev env, previous releases or even own machine. (no more chance of the embarrassing, "oops, forgot about that, please wait while I download and install it.") incremental backups really easy: using snapshots don't need to backup the entire VM each time, can have branched snapshots on snapshots and roll back, prune, so many versions of your machine on all on one physical box, one backup... way less admin (backups, networking, setting permissioning..... ) than running multiple machines. And really don't waste metal on windows: Without even testing for that I noticed with 3 simultaneous VMs running they all performed as well as the machine when it was single install win only, windows (on new HW) is like buying a Ferrari that has been speed limited to 50. Total waste! licensing: my install on VM didn't like my license (it is a real lic) so screw it, I just went VL on the guests and run a VL auth host on the linux - doing it the naughty way and I know 2 longs don't make a light but no animals were harmed and don't really care to waste any more time on ms license stupidity.
Message Signature (Click to edit ->)
-
If you're looking to move into Linux anyway, QEMU is the built-in virtualization provider for Linux, and KVM (Kernel Virtualization Module, not Keyboard-Video-Mouse) is a QEMU package that provides extremely performant type 2 VM capabilities. Windows runs better on it than on bare metal, completely serious, though I don't have experience running hardcore graphics through it, so I don't know how it'd be for gaming or video rendering.
"Never attribute to malice that which can be explained by stupidity." - Hanlon's Razor
-
Can I ask which hypervisor you're using and which flavour of Linux? I'm thinking of doing this on OpenSuse with Windows 10 under KVM.
-
using virtualbox, on lubuntu. lubuntu is a release of ubuntu with less extras installed; still has the installer so easy to add back what you want.
Message Signature (Click to edit ->)
-
I suppose it could be used that way in specific scenarios; but since it's an extension to QEMU, and QEMU is a basic Linux kernel module, the lion's share of use cases are as an application-based hypervisor.
"Never attribute to malice that which can be explained by stupidity." - Hanlon's Razor
-
The problem with this is that because the licence is tied to the hardware, I might have problems migrating the it to the VM. I can't really justify buying new Windows licenses for the Windows 10 VMs...
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
You could invest in the MSDN license for ~$800 and get all the OS licenses you could ever need.
-
Because of Microsoft's many recent screwups, I am considering moving over to Linux as my main O/S. At the moment, I still have quite a few projects that must be developed under Windows, So I will need to keep my Windows machine as a VM. My questions: 1. Are there any recommendations for tools that can convert a physical partition to a VM? 2. What are the licensing issues? Will I have to purchase a completely new license for the VM, or can I transfer the license from the physical machine? 3. Should I use a type 1 ("bare metal") hypervisor, or go with a type 2 ("hosted") hypervisor? Any recommendations? Thanks.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
I've done this (but on top of Windows rather than a Linux VM) with an old server (Windows Server 2003!) whose hardware was getting too long in the tooth to be trusted. I used [SysInternals Disk2VHD](https://docs.microsoft.com/en-us/sysinternals/downloads/disk2vhd) to clone the disks, then created a VM in HyperV for it. It worked well while I migrated the services it offered (internal web server, Mercurial, Subversion, MediaWiki, email) to individual Docker containers (one per service) running in an Ubuntu VM running under HyperV on the same underlying Windows Server. I'm not sure about licensing (I think we were OK because we decommissioned the old server) or what the best VM solution is in Linux - I've used QEMU, but only as a testbed for an embedded ARM system - yes, QEMU will let you run ARM software on an x86 PC, through JIT instruction translation. It was quick enough that I could happily run a virtualised embedded ARM Linux (like Raspbian on a Pi) within my Linux box(which itself happened to be a VM, running under VirtualBox running in Windows 10!).
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
probably is slower, but short story is windows has an inherently poorly designed task switcher (in some places literally watching the clock), linux (any properly designed multi taking system) will realize when a process waiting for something to happen and far sooner switch to another - so it'll switching between VMs (and any other processes) while windows is in short catching up with itself and deciding if (when) it'll do it's on process switch. It's why yes windows on newer hardware does to start/load programs faster - that's the better hardware (and data busses), but once the program is up it really doesn't run that much faster particularly when there's a quite few programs running at the same time... comparing say 2 generations of hardware with the newer one being clocked/benchmarked say 15% faster (not just CPU, everything) windows struggles to gain at best a third of that speed increase (probably closer to 20% of that 15%). And so on today's newer better hardware - the worst thing you can do is run a single instance of windows (any windows: XP, 7, 8, 10) on the bare metal. (Unless you are doing only one or two basic things at any time, i.e. reading email, watching vids - but if you have a busy machine (dev, multiple windows plus) it's just not good, windows is, nor ever will be designed for that. - way better use any hypervisor and run multiple instances of windows each only doing a few things, the hypervisor (or the system it runs on) will make way better use of the processor time windows is not using [while it waits for itself ?!?!]. OK, can't fully blame ms, it's the price they are paying for backwards compatibility - even in 10 there's a lot of old crud dating back to win 3.1 and even dos. If they were truly smart years ago they should have done a true ground up brand new system (and built their own hypervisor for backward compatibility) but they didn't, and now so far down the road (decades) it's biting hard and for windows it's actually too late to go back and do it properly. Windows will die, (ms knows it), not only due to it's irrelevance to today's most common platforms (mobile), but as much due to it's own inability to remain relevant to the power of the platforms it does run on. Their own mobile platform failed - again due to trying to stay compatible to a system that itself is trying to stay [backwards] compatible to lets face it, dinosaurs. Back then mobile was low power, ms was effectively putting a tow-ball on a4 cylinder datsun to tow a 40 foot camper, and it would have s