9

I installed Linux Mint on a physical SSD, and ran like that for several years.

Now, for work, I need to run Windows 10 Pro on my desktop. To do that, I used a separate physical SSD, but left the old Linux SSD connected to the SATA inside the PC.

I would like to boot to the Linux Mint OS, using Hyper-V. I have set the disk to 'offline' in Windows Local Disk Manager, and attached the Physical Disk to the Virtual Machine in Hyper-V.

Attached Virtual HDD in Hyper-V

No VHD's are attached to the VM. When I Start the VM, I Hyper-V says "Start Successful" and it's now "Running".

But, the only thing I see in the Console is a flashing cursor in the top-left corner. I can hit and get it to advance, but no input/output is apparent.

One other (possible) complication: The disk is partitioned in a bit of a funky way. I can't recall at the moment the purpose for each partition, but it's in 5 different partitions -- including a Linux \Boot, \Root, \Swap, and \Home.

enter image description here

Oh, and it's EFI.

Any ideas?

Biswapriyo
  • 11,584

4 Answers4

1

I agree with Jon Wadsworth. first I followed his method and failed . The problem is that I can not ust superGrub.iso to boot the physical disk as it can not find the devices attched to hyper-v virtual machine.

Involuntarily I found that I can use a windows installation disk(like cn_windows_10_business_edition_version_1803_updated_sep_2018_x64_dvd_07b164ed.iso) to find and boot the disk.

1 yuo should detach the physical disk from windows disk management.

2 you should ONLy attach the windows installation disk image (.iso) to the hyper-v machine. then start it(if you have both iso file and physical disk attached, there will be an err). err of attaching two disk start vm and you will find "Press any key to boot from CD or DVD." press any key FAST.

3 attach the physical disk.

4 go back to the virtual machine, now you will see the windows installation screen,press"next","repair the your computer",then you will find the boot menu including your boot options of your windows system in the physical disk attached to the virtual machine.

most time ,you should follow the steps above every time you start the virtual machne. while only one time I upgrade the system from 1809 to 1903, it reboot successfully with no err. and after that , it failed giving the err in step 2. So the 4 steps are the stable ways to boot a system.

A_A
  • 11
1

Just wanted to point out that without any external ISOs, Windows build 2004 will boot for me when attached to a hyper-V session on a host Windows build 2004 system.

  1. disk manager -> detach (puts my secondary (non boot) volume nvme ssd offline, the one I plan to try to boot in hyperv)

  2. create vm. skip the disk creation.

  3. open vm settings. select physical disk instead of vhd.

  4. WAIT for 90 seconds ore more on first boot for it to give up on the PXE boot.

  5. Let it boot. Log in. Something happens, and it restarts immediately after login.

  6. After second boot up, and second login, system appears stable.

No other actions necessary. Easiest P2V (physical to virtual) spin up ever.

Warren P
  • 3,019
0

I was able to boot without the use of a VHD.

The key for me was to use the SuperGrub boot .iso --- Specifically, this version of it

I attached the SuperGrubDisk iso as a DVD drive, and booted to that. From there, I am able to select my boot volume on the physical disk, and it boots. SUCCESS!

Thanks @harrymc for all of your help with this!

For posterity, I am using a Gen2 VM on Hyper-V on Win10 Pro.

PS: Admittedly, this is not 100% ONLY using the Physical disk; it does involve the .iso to do the initial part of the boot. I believe that it would be possible do this without the .iso (perhaps re-writing the boot volume on the Physical Disk? But I'm happy as it is now, and can't spend any more time on this :)

0
  • I had an X.img file.
  • I converted it to vhd format with vboxmanage convertfromraw command.
  • I created Hyper-V VM - Gen 1 - I think this is the key point.
  • I atteched X.vhd and it runs as expected.

Before this method I got "in the Console is a flashing cursor in the top-left corner." too.