You are on page 1of 21
3° UserName Password [Login] Register (Remember Me? What's New? “Forum Tutorials News Join Us (Search FAQ. Tutorlndox ‘Advanced Search ‘#8 Forum > Windows 10 Forums > Tutorials > ‘ce of 6 [i] 2) 31.» Ltn Hyper-V - Native Boot VHD J] 21 to Native 8008 VHD of Hyper¥ Virtual Machine Published by Kavi Kalsaikana Fin Category: Virtualization | 24 Aug 2019 © formation Fiesta quote from Microsoft Develo f Network's (MSDN) support article: "Native Bot allows you to create a virtual hard dis (VHD), install Windows to it and then bootup, ther on your PC side-by-side with your existing instalation, ar on anew device, ‘A native-boot VHD can be used asthe running operating system on designated hardware without any ether parent operating system. This difers from a scenario where a VHD is connected to a Viral machine on a computer that has a parent operating system. HDs can be applied to PCS or devices that have no other installations of Windows, without a virtual machine or hypervisor. (A hypervsor i layer of software under the operating system that runs virual computers) This enables greater flexibility in workload distribution because a single set of tools can be used to manage images for virtual machines and designated hardware, You can also daploy the VHD to a PC that already has Windows installed on it and use a boot menu to select between the existing version of Windows, or the version on the VEO. ‘As you most probably already use Hyper-V and have a version or two of Windows installed on its virtual ‘machines ding bythe fact that you found here), we can use a shortcut simplifying the process and use already existing VHD files of your Windows virtual machines. There's nothing wrong in tunning your Windows vttal machines as intended in Hyper-V. However, sometimes ‘you might want unrestricted access to physical hardware on your host machine, Naive boot gives you exactly ‘hat: when 2 VHD with Windows installed on it is used for native boot ina dual / multiple boot scenario, twill no longer use Hyper-V emulated, virualized hardware devices bus instead a5 any operating system installed irectly to physical hardware, In this tutorial we will add 2 Windows 10 Pro virtual machine's virtual hard disk file to my Windows 10 boot ‘menu, to be able to choose which ofthe two Windows systems willbe started when the machine willbe booted ‘The tutorial might look a bit complicated but assure you, this is realy easy and fast. You set up your virtual machine's VHD for native boot ina minute Note Notice that you can use the method told in this tutorial on bath BIOS (MAR) and UEFI (GPT) systems, mounting both MBR partitioned Generation 1 VHO fles and GPT paritioned Generation 2 VHD files regaraess ifthe host is MBR or GPT partitioned. |AVHD from Generation 2 UEFI vm can boot natively on 9810S (MAR) hast, and a VHD from Generation 1 8105, ‘ym boots without an issue on UEFI (GPT) host This method can be used to natively boot VHO fs from Hyper-V vital machines running Windows 8.1, Windows 10, Windows Server 2012 R2 or Windows Server 2016. (contents Use links below to jump to any part of this tutorial, back button of your browser to return to this list. Part One: | Preparations Part Two: | Add VHD to boot menu Part Three: | Remove VHD from boot menu Part Foui Troubleshooting, reset boot menu Note Click or tap screenshots inthis tutorial to pop them ou, click / ap again to enlarge Part One Preparations Some theory first I's important but don't panic Iwill keep it short! © information ‘A Hyper-V virtual machine when created and before any checkpoints have bean made consists of one VHD or \VHDX file, 2 Virtual Hard Disk fle, Later on when you for security or other purposes make cheekpeints, Hyper-V adds a 50 called child VHD to the vm. As geeks love dificult words, we say this vm s from now on Using differencing disk t means that we have a base disk (ko called parent dl) in Hyper-V usually 9 whee fle, and for that base a child disk wit extension avd, ltter A coming fram word automatic meaning it managed automaticaly by Hyper-V without user interaction. In other words, keep your hands away, dan’ ‘move, rename or delete them manually, only use Hyper-V Manager for any changes. Here's a screenshot of atypical Hyper-V vm (1) and ts checkpoints #2), | have also pasted an extract fom my vital hare disk folder into this screenshot (#3) | created the vm and installed Windows in a.whdx fie (yellow highlight). When | made fst checkpoint, the differencing data was stored in first-avheb file (blu highlight, next checkpoint created again 2 differencing avhak to store changes since fist checkpoint and oon. To get our vm to boot natively outside Hyper-V, we need to merge existing checkpoint (chil dlsks) to base isk (paren) Native oot with a VHD or VHDX file is only possible if thas no chld disks. Unfortunatly this so means that when you remove the VHD or VHDX from native boot menu and continue using it in Hyper-V, ‘you no longer have any checkpoints and can't restore the vm to eale state, “Think how important your checkpoints are, you wont get them back once deleted and merged to parent! 1.1) irthe vm you want to use in native boot has any checkpoints, select the fst checkpoint, rightclick and select Delete Checkpoint ‘Subtree to remove al checkpoints. Hyper-V merges the data they contain to base disk and finaly removes the child disks: 4 12 100 can weave ne yma oF wax He Is CurreNCFOCatON, oF Copy AD anor ave. YOU can even copy Me vTUaE Mare EK Lo another computer and use ton that computer for native boot. If your intention is to continue using it aso in Hyper-V inaction to native boot, leave itwhereit is 1.3) Download and install the free Maerium Reflect. Although mosth known ofits disk imaging and cloning capabiliies, Macrium also offers the easiest way tof Windows boot records, We will use it ater in Par Four to reset Windows boot records and boot menu Macrium Reflect Free download: Macrum Reflect Free Part Two ‘Add VHD to boot menu 22.1) open your virtual hard disks folder, default location if you have not changed itin Hyper-V settings is ‘CAUsers\Public\Documents\Hyper-V\Virtual Hard Disks 2.2) Double click the VHO fle you want to boot natively and add to boot menu. This mounts the VHO on your host system. In this example [Ihave copied the itual hard disk to another computer and double click it to mount itto the host system: 1 [Ea bene rs © me THEPE > Newsome wraPRo 6s has eve 2.4) windows now mounts al partitions ofthis disk to host, Because the Hyper-V vm on this sk was setup as Generation 1 (BIOS / MBR Paritioning), my host now shows two new drives, drive G: which isthe system reserved partion of Windows 10 instalation on that virtual hard lk, and drive H which i the Windows partition of that installation = bE Notice that the VHO will be automatically unmounted when we restart in step 2; it only needs to be mounted now to be added to boot 2.5) old seh =a8 eo hm Tee ck acces i temo < oo Bh retoge anki ue mpiatis 1 Peg le a ee marie ‘en Prevoe 5 Windom S as 2.6) open an elevated (admin) Command Prompt, type bedboot HAWindows and press Enter (replace drive letter H with actual de letter forthe mounted virual hard disk containing Windows} 2.7) to prepare forthe unexpected o easily estore the defoult boot record e's not continue before we have added Macrium Rescue nPE system tothe oot men Start Macrum Reflect, open Other tasks mens, elect Add Recovery Boot Menu Option 4 Mesto Fee Eon for on-commeri wee -¥.1301 Os Drainage Renee 109 Chee forupiter [Insect 9 HB. Yo Windom mR Coston ine the a 2.8) Select Windows PE 10.0 menu and click OK, accept ll possible prompts: Machu Rfet x ss Boot Menu OW mens 1 ne Net uh = al Potente) eres tears Dee ek Serre CeoNe ater een cu ar Rc eterna hore Optional: id eT ete Cec Cee Coe aon porns! 2.10) The physica PC, a laptop inthis case has now been booted with a virtual hard isk from a Hyper-V vidual machine. It now uses & physical hardware and can access all host machine resources. Our virual Windows is now physical (blue highlighted isk with access to original host Windows hard sks (yellow Pete iaetat inal 2.111) ir we check Disk Management we will ee tat the VHO vas added as last hac isk, in this case Disk 3. Checking its properties we can clearly see that we are dealing witha virtual disk nse 0X lets boot back to hos, the original Windows installation by restarting and selecting it from boot men For your own comfor it might be a good idea to rename boot menu operating systems, the boot menu showing two identical indows 10° entries can be confusing, To do that open an elevated (admin) Command Prompt, type bededit and hit Enter Boot records will be shown. Scrolling down the lst you wil in an entry titled Windows Boot Leader for each of our three operating tein three details on each entry: Kdentifier (yellow highligh in cho}, Device (ole) and Description [As we have two identical "Windows 10° ents, ts change the VHD ‘to something more descriptive. Checking the Device type in ll three entvies we can see that our VHO's Mdentfier is (default. ‘The command syntax to change the boot menu description is bededit/set (Identifier) description “AnyName". In this example | changed its name to My VHO with command bededit /set (default) description "My VHD" Looking better easier to understand which entry starts what OS: Tip Interested in testing latest Insider Build? ty Windows insider but would like to test the latest Windows Insider build to help you decide opting would be s you, you can da it even ifyou have never had or used Hyper en ike to st it up You can download free 90 day trial Hyper-V Windows 10 virtual machines from Microsoft. both the latest official release (build 10586 when writing this) and latest Insider build (14366) downloaded the vm, 10 build for 90 days, for free.) download instruction ctup any virtualization software, nor do you need install anythin, i mount the VHD it contains as told above and you can Remove VHD from boot menu hocale dows 8.1V D, this time Windows 8.1 but would like to remove it now min) Command Prompt, tye bededit and hit Enter, browse to ‘denifir highlighted) Spee meet lows Boot Lo ntry you want ype bededit /delete (Identifier, hit Enter to remove the VHD from boot menu occa / Note sen default OS has i signed in atthe moment is (current), All other entries have along the Windows 8.1 VHD identifier above long hexadecimal strings is san just select the string with m Troubleshooting, reset boot menu Anything can happen. A rest this when you select an OS from rent Windows 10 recovery prompt and old style legacy added Win mot which ean be shown depending on if you y boot menu windows failed to start. A recent haréware or cause, To Tix the problem: ee ee ers ee cs ee eg Poise et a ee ee ce poet eee Perera See ENTER®OS Selection is does not happen often but when it happens you might be unable to boot to any of the installed operating systems except Maerlum WinPE rescue system which we added to boot menu in steps 2.7 and 2.8 | moder prompt, press F9 to open boot menus In old syle prompt press Enter, You can now select anther o stem from men or use Macrium to fix boot records a below (you did not add Macrium to Windows Boot Menu, restart your PC now booting from Macrium boot disk / USB and continue from 4.3) Select Macrium Reflect System Recovery an hit Enter: tacrium Reflect systen Recovery |) SO eee a aaa Tabstienu 4.3) when Macrium hos started, select Fix Windows boot problems tp | 12 Mactan Ree Fee an aren same se VE LIT Winder PO Boson Gi) Brereton co ereanshot from 9 BIOS system, process exacly the Same ih UEFI) 4.) click Next FB Prone Nindows © rating System: ler th Ned bon cn = ABV cet Nowe Active Partition FoeryPatn one lear Hesyaen a5 er sisamaesever(e) ras sooeise C2 Stones) MIFS—ueteise het sew eline se) ars aesrero 4.6) click Finish Boat Code Options Sekt opr repar ou Ponte, Tso eunas rte of your had aa a commen case feat ton. alc eat oo sr Your conor fre se state Meer EostRecdismeerg come econ sect beta. ‘Tepito ed fn he Master Boot Rca hascoMt eter cpt carota Pid eat Carian Dalaba 0) rl 9OOTN Fi TheECEsetb0CT I etre enh eve prt lc ery ercsrmemn yar ak) emcee ayn yates aaa) (ES (Tew 4.7) Click Ves: RTS Q exer 4.8) windows boot records have been reset, you orginal physical Windows 10 instalation will start, no boot menu is shown, To continue paying with native boot you have to add your VHD files again as well asthe Mactium rescue boot aption as told in Part Two, Note ‘When boot records have been reset with Macrium as tld in Part Four above, your Hyper-V virtual machines ‘might not start telling you that one of the Hyper-V components isnot runing: “VirulNachneCoonetion x The application encountered an error while SO sxeernpting to change the state of Mobile Emulator 100.105860 WGA 4 inch 168 kari ‘Mebane Ba es ‘Fedo stan thesis! machine Mabie Eats 120105060, PIES eh at cei fees epee eo "Mie Emultor 120305360 WYGAdinch ISB aed to Set eto ce \eoiraseacs) The Vitul Machine Management ence faledto dathe vita becuse ane fchetlper¥compenees ae ning tl machine EXDSTD? 80827 C8. TSOEBLEICS, CO tae Le By reseting boat records Macrium has caused the hypervisar not to work properly. Luckly this is nat an issue we can fit e98y. Simply give this command in an elevated Command Prompt and restart your Hyper-V host PC: Code: bedeat/set hypervisodaunehtype au Hyper-V vital machines will again run without sues © information You can naturally also reset your boot records whenever you want to, when you no longer want to boot to your VHD files. Notice that you can update Windows onthe natively booted VHD normally, install software, do everything else but you cannot upgrade it to next builds Hit \When /ifyou want to upgrade, boot to your orginal host OS, run the VM in Hyper-V and upgrade. When one you can again boot to it using the method tod in ths tutorial Note (ne third joking, two thirds serioush |¥ something happens wien you ae playing with native boot and you come back posting "Hep! I cant boot to Windows anymore, my anly advice will be to boot to Mactium rescue system as tld in the tutorial and reset boot records. It works everytime being a lifesaver when PC cant Boot to any operating system. In case you wll then reply with "t's not there, | forgot to ada Macrium to Boot menu, don't even bother to respond! That's it geoks! Happy computing ) ker tia Related Tutorials + How to Upgrade Windows 10 Installed on a VHD ‘© Windows 11 Tutorials 37.400 2036 Great job Kar. Brink Posts 66410 Geb Windows Workstations 1 My compat K ar Posts: 17,661 Windows 10 he 1G My computer Slartybart Posts :3.502 Win 81-0, Pros Ming 73 My computer Kae Poste: 17659 ‘Windows 10 Pro My Computer Quote 17002018 2 Thanks Brink} Quote 17202018 8 Nice way to native boot if you have existing VMs (One typo though 2.4) Windows now mounts all partitions of ths sk to host. Because the Hyper-V vm on this disk was setup as Generation 1 (8105 / MBR partitioning), my host now shows two new drives, drive H: which isthe system reserved partition of Windows 10 installation on that virtual hard disk anc [Last Related Discussions hallo everyone | need to ty cortana reminders on the 2004 version have vmware but would ike to try to install on my hardware possible wth 8 va boot, I would ke to use native boot on vd fie have seen tutor Reusing vhdx (native boot in Virtualization Hyperv Hey al. | created a-vhdxin disk management, intaised, new volume and formatted. Deployed Win 10 Insider 17754 tt using dsm /apphrimage et. Updated the bed store on main 05, booted to vhe natively no issues. Now since MSot. Init possible to native boot a vhdx after dual booting linux? in Virtualization Ihwant to install linac on a separate avme ane stil boot naively to vhs tat Il ato the wincows boot manager with one normal windows ona separate nvme. Is this possible or does grub completely replace the windows boot manager altogether, LUpen bootup, Windows forgets my monitors native dlaplay resolution in Graphie Cards Like my se states, ypon boot-up, my Windows 10 Sabi OS starts my PC in 3 1080p display wen my mmonitars native dply 1440p. | have no ies why this is happening especially after al the troubleshooting steps Ive taken think Ive taen can't native boot Hyper-V generation 2 vhé In Virtualization II ceate a generation 1 VMI can native Boot the vex by adding bed ent. If make a generation 2 LUM ita with" required device nt connected, 0xc0000225" Presing # for “Startup Settings” gives "The application er operating system. our sites siteins About Us find Us Vista fonume ContactUs Windows 10 Forums isan independent we te ad hae not en Tignerorume —Praseyant Cookies authored sposared ar eherwse orev oy sore of Scventorums Termsct erie omorton Windows 10 and reed mater ae ademas of Eleven Forums Microsoft Corp, © Designer Media td Alltimes are GMT -5. The time now i 23:15, BBFsvronme

You might also like