Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Moving a physical Windows installation to a VM

Moving a physical Windows installation to a VM

Scheduled Pinned Locked Moved The Lounge
linuxtoolsquestion
32 Posts 19 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Daniel Pfeffer

    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.

    abmvA Offline
    abmvA Offline
    abmv
    wrote on last edited by
    #12

    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

    We are in the beginning of a mass extinction. - Greta Thunberg

    D 1 Reply Last reply
    0
    • R realJSOP

      I considered converting my current Windows 7 instance to a VM, but there too many no-see-ums involved, and I finally just installed a fresh copy of Windows. Since I'm using the VM as just a dev environment, I didn't have to worry about installing all the other inane Windows crap that I would normally have to deal with.

      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
      -----
      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
      -----
      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

      D Offline
      D Offline
      Daniel Pfeffer
      wrote on last edited by
      #13

      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.

      C U 2 Replies Last reply
      0
      • N Nelek

        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.

        D Offline
        D Offline
        Daniel Pfeffer
        wrote on last edited by
        #14

        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.

        N 1 Reply Last reply
        0
        • N Nathan Minier

          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

          D Offline
          D Offline
          Daniel Pfeffer
          wrote on last edited by
          #15

          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.

          1 Reply Last reply
          0
          • abmvA abmv

            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

            D Offline
            D Offline
            Daniel Pfeffer
            wrote on last edited by
            #16

            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.

            1 Reply Last reply
            0
            • L Lost User

              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 ->)

              D Offline
              D Offline
              Daniel Pfeffer
              wrote on last edited by
              #17

              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.

              1 Reply Last reply
              0
              • D Daniel Pfeffer

                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.

                T Offline
                T Offline
                theoldfool
                wrote on last edited by
                #18

                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.

                1 Reply Last reply
                0
                • D Daniel Pfeffer

                  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.

                  N Offline
                  N Offline
                  Nelek
                  wrote on last edited by
                  #19

                  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.

                  1 Reply Last reply
                  0
                  • R RickZeeland

                    I can confirm that Sysinternals Disk2vhd works fine too :-\

                    D Offline
                    D Offline
                    dandy72
                    wrote on last edited by
                    #20

                    I'll vouch for Disk2VHD as well. I've only ever converted one machine, but it worked flawlessly.

                    1 Reply Last reply
                    0
                    • D Daniel Pfeffer

                      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.

                      E Offline
                      E Offline
                      Eric Lynch
                      wrote on last edited by
                      #21

                      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.

                      1 Reply Last reply
                      0
                      • D Daniel Pfeffer

                        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.

                        S Offline
                        S Offline
                        ScottM1
                        wrote on last edited by
                        #22

                        Which version of Linux are you thinking of using for this? I'm also considering going down this route and thinking either Suse or Ubuntu with Windows 10 in KVM.

                        1 Reply Last reply
                        0
                        • D Daniel Pfeffer

                          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.

                          G Offline
                          G Offline
                          Greg Lovekamp
                          wrote on last edited by
                          #23

                          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.

                          1 Reply Last reply
                          0
                          • D Daniel Pfeffer

                            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.

                            C Offline
                            C Offline
                            charlieg
                            wrote on last edited by
                            #24

                            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

                            1 Reply Last reply
                            0
                            • L Lost User

                              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 ->)

                              S Offline
                              S Offline
                              ScottM1
                              wrote on last edited by
                              #25

                              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.

                              L 1 Reply Last reply
                              0
                              • N Nathan Minier

                                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

                                S Offline
                                S Offline
                                ScottM1
                                wrote on last edited by
                                #26

                                Isn't KVM type 1?

                                N 1 Reply Last reply
                                0
                                • S ScottM1

                                  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.

                                  L Offline
                                  L Offline
                                  Lost User
                                  wrote on last edited by
                                  #27

                                  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 ->)

                                  S 1 Reply Last reply
                                  0
                                  • L Lost User

                                    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 ->)

                                    S Offline
                                    S Offline
                                    ScottM1
                                    wrote on last edited by
                                    #28

                                    VirtualBox is a type 2 isn't it? Isn't that considerably slower than the other options?

                                    L 1 Reply Last reply
                                    0
                                    • S ScottM1

                                      Isn't KVM type 1?

                                      N Offline
                                      N Offline
                                      Nathan Minier
                                      wrote on last edited by
                                      #29

                                      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

                                      1 Reply Last reply
                                      0
                                      • D Daniel Pfeffer

                                        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.

                                        U Offline
                                        U Offline
                                        User 13224750
                                        wrote on last edited by
                                        #30

                                        You could invest in the MSDN license for ~$800 and get all the OS licenses you could ever need.

                                        1 Reply Last reply
                                        0
                                        • D Daniel Pfeffer

                                          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.

                                          S Offline
                                          S Offline
                                          Stuart Dootson
                                          wrote on last edited by
                                          #31

                                          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

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups