<div dir="ltr"><div class="gmail_default" style="font-size:large">My Lenovo W520 allows for setting a preference on the boot mechanism, UEFI before legacy etc. This makes it easy to have different boot mechanisms on different disks -- select the one you want it and boots the way it is set up. There's a W10 in legacy mode on the original HDD (Win 7 upgrade), and Ubuntu in UEFI mode on an SDD in the CD-ROM slot. Also on the HDD is a legacy Ubuntu. Selecting legacy Windows from the UEFI grub boot (I did put all the UEFI bootloaders in the EFI in case I convert the HDD to UEFI) fails of course (the disk is MSDOS partitioned), but the legacy Ubuntu boots (and vice versa, booting the UEFI Ubuntu on the SDD from the legacy grub on the HDD.</div><div class="gmail_default" style="font-size:large"> I had set up a KVM Win10 boot from an ISO, and never activated it, but do get updates. The gotcha on a VM might be if you need proprietary video hardware (for games?). The later Nvidia drivers supposedly allow dedicating a video card to a VM, but my machine is too old for that.<br></div><div class="gmail_default" style="font-size:large">Ken<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 13, 2022 at 8:48 AM Akkana Peck <<a href="mailto:akkana@shallowsky.com">akkana@shallowsky.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Alex Kleider writes:<br>
> What I'd like to do is install Debian (which I've done many times on other computers) and then have windows available as a WM should I ever want it. (I've never before had occasion to want it but I've already paid for it so why not have it available just in case?!?)<br>
> As I understand it, one can make an "image" (a single file?) of the (windows) OS (and store it on removable media) while running windows as currently installed and then later feed that image to a virtual machine running under Linux (Debian in my case) after Linux is installed (and windows blown away in the process.)<br>
<br>
When I set up my current machine a couple of years ago, what I did was:<br>
<br>
- Remove the original internal SSD and replace it with a brand-new<br>
larger one. Now I had a backup of the original Windows in case<br>
something went horribly wrong.<br>
<br>
- Install Linux on the new disk<br>
<br>
- Copy the Microsoft Data Management (MSDM) from the BIOS into a<br>
VirtualBox VM: see <a href="https://superuser.com/a/1329935" rel="noreferrer" target="_blank">https://superuser.com/a/1329935</a><br>
Now that VM thinks it's running on the original machine, at least<br>
for purposes of authorizing the Windows install.<br>
<br>
- Download the official Windows 10 ISO from Microsoft and install it<br>
in the VM<br>
<br>
Of course, you could do this with kvm/qemu instead of Virtualbox.<br>
I used Virtualbox because the instructions I found for using the<br>
MSDM in Virtualbox were a lot clearer than the ones I found for<br>
kvm/qemu. Some day maybe I'll get around to figuring out how to<br>
convert the virtualbox image to kvm with the right MSDM.<br>
<br>
I never used Lenovo's preinstalled Windows 10. I kept the internal<br>
SSD around for a while just in case, but eventually, when I needed<br>
some fast external disk space, I put it in an external enclosure and<br>
overwrote it. During the time I kept it, the only time I considered<br>
swapping it back in was the ordeal where Lenovo released a firmware<br>
upgrade that was only available as a Windows EXE; but I eventually<br>
found a (horribly complicated) way to make a USB-bootable Windows to<br>
Go image that could run the EXE.<br>
<br>
...Akkana<br>
<br>
_______________________________________________<br>
sf-lug mailing list<br>
<a href="mailto:sf-lug@linuxmafia.com" target="_blank">sf-lug@linuxmafia.com</a><br>
<a href="http://linuxmafia.com/mailman/listinfo/sf-lug" rel="noreferrer" target="_blank">http://linuxmafia.com/mailman/listinfo/sf-lug</a><br>
SF-LUG is at <a href="http://www.sf-lug.org/" rel="noreferrer" target="_blank">http://www.sf-lug.org/</a> <br>
</blockquote></div>