Windows 8 on VirtualBox and VMWare: Your PC Needs To Restart Fix

   Posted by Lê Hoàng in Windows 8

When installing Windows 8 in Virtualbox or VMWare, many users are getting the error which says “Your PC needs to restart. Please hold down the power button.” at the beginning of the installation process. This tutorial will show you how to fix this problem.

After switching from the Consumer Preview version to the Release Preview version of Windows 8, I was surprised that I could not install it. When I fired up the virtual machine, all I could see was this message:

“Your PC needs to restart. Please hold down the power button. Error Code: 0x0000005D.”

The problem does not lie in the Virtualbox or VMWare settings but the motherboard configuration. For Windows 8 to install correctly in VirtualBox or VMWare, you must have the No-Execute Memory Protection option enabled on your motherboard. I will walk through changing it on my motherboard. Your motherboard may be different, but the important key is to turn on the No-Execute Memory Protection option.

1. Reboot your computer and access the BIOS by pressing the F2 key. Please note that I am using a Asrock motherboard. If you use a motherboard from other manufacturers, the key to access BIOS may be different. Please refer to the manual for this information.

2. When you are in the BIOS section, go to Advanced -> CPU Configuration. This applies to Asrock motherboard only. Steps for other motherboard may be a bit different.

3. Find the No-Execute Memory Protection option and click on it. By default, it is disabled. In order to set up Windows 8 successfully, change it to Enabled.

4. Now, switch to the Exit section to save the changes.

5. Choose Save Changes and Exit and then choose Yes to confirm.

6. Reboot the system and continue installing Windows 8 in Virtualbox or VMWare like normal.

 

About Lê Hoàng

When not creating exciting new Android games, Lê Hoàng is here crafting tutorials, tweaks, and fixes for your enjoyment.
View more articles by Lê Hoàng

The Conversation

Follow the reactions below and share your own thoughts.

  • Mikhail

    Thank you so much! I’ve trying to solve this problem for weeks, and not me not anyone else had a solution. You just made my day!

    • Lê Hoàng

      > Glad the tutorial helps you solve the problem! You just made my day too! :)

      • JJ

        > do you know if the as rock p4S61 board has this feature? Or is it too old?

  • Marcos

    I’m facing the same issue but I cant find this option on a lenovo ideapad notebook bios …

    • Helen

      On my Lenovo desktop it is the Intel (R) virtualization tech that needed to be enabled. Hope that helps :)

      • Ken Browne

        > My machine is a Lenovo X60 laptop running Virtualbox in Linux Mint. Names are different but No Execute Memory Protection and Virtualization items are both enabled. Still getting the PC need to restart message. Four blue Window panes appear for a while, then the error message. I am trying to install the final version of Win8 Ultimate.

        • $dave

          You may have the same problem that I did with Ubuntu 10.04 LTS for my VB host OS. In this case the kernel was not passing on the NX setting from the motherboard, and I had to replace my current kernel with a generic-pae kernel. See https://help.ubuntu.com/community/EnablingPAE for example.

  • Christ

    Same here, I have a Dell M6500, no option for RAM… :(

  • raj

    Hi i am using acer mother board and i too can’t find the option . Any other option??

    • Lê Hoàng

      > what model are you using? This is the only option to solve the problem. Have you tried searching for this option in all bios settings? Maybe it is in another section

      • PanTeras

        > i have the same problem. i am using acer travelmate 5744 :-)

  • Dark Rider

    I don’t have that option either. I bet tons of otherwise Win 8 capable PC’s don’t. I have a Compaq Presario model CQ61-411WM Notebook PC

    Details here: http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01980785&tmp_task=prodinfoCategory&cc=us&dlc=en&lc=en&product=4125444

    It has a scaled down Insyde Bios that doesn’t have the correct option. I just flash updated my Bios to the latest version F15, and the option is still not there. I do have VT-X enabled in Bios.

    In VirtualBox I get a message that says,

    ” VT-x/AMD-V hardware acceleration has been enabled, but is not operational. Certain guests (e.g. OS/2 and QNX) require this feature.

    Please ensure that you have enabled VT-x/AMD-V properly in the BIOS of your host computer.”

    Well.. I DID make sure that Hardware Virtualization was enabled in bios, I don’t see any option for VT-x or AMD-v by name.. it only says Hardware Virtualization, but the description on the side talks about VT-x.

    Where do I go from here?

  • Dark Rider

    I answered my own question above. Apparently this fix above is not the only fix.. sometimes you don’t need a fix.. sometimes – it’s your choice of virtual machine application…

    I got tired of trying with Virtual Box so, next I tried VMWare Workstation. . It got a tiny bit further. I got the error screen that said My PC didn’t have enough ram to set up the Ram Disk. My PC has 4 gigabytes of ram, and installing windows 8 was the only thing I was doing.. I know I had plenty of ram left over. Again, tried for several hours all the tricks I could find around this problem, nothing worked. I spent 5 hours on this install, trying every post on the net I could find.

    These two problems are the two most common problems people have when trying to install Windows 8 in a virtual machine. Google them and you’ll see.. tons of threads on these issues.

    Last, I tried Parallels Workstation. I even had Firefox browser open taking up extra ram, and it installed and ran Windows 8 perfectly from the word Go with no errors or problems – and its very fast too.. so fast with my single core PC that I don’t even know I’m in a VM.

    For me anyway, Parallels Workstation was my savior. You guys can do what you want, but I suggest you give it a try before you waste 5 hours like I did trying to get Windows 8 to install when you see your having trouble. It might just save your butt too. I think their use of VT-x and AMD-v must be better than the other two apps I mentioned. That’s the only thing I can think of to explain why Parallels would work and the other two didn’t.

    Hope this helps someone else.

  • Steve Jobless

    Thank you author!
    I tried a few different things with the vbox settings but nothing worked, until I read this article and now the installer is doing its job. I thought I’d take a break from that to say thanks.
    It took me a couple of tries actually because my BIOS uses a different name for the same no-execute memory feature. I pulled up the eVGA user’s guide and found it in the CPU feature menu.
    READ THE USER GUIDE FOR YOUR MOTHERBOARD / BIOS!

  • Travis

    You sir are my new best friend. I really thought I was losing my mind on this issue.

    Thank you!

  • Michael

    really helpful, thanks a lot!

  • Geoff Weinhold

    Worked great.. Thanks!

  • junpet

    Enabled and get the same problem…

  • Simon

    Thank you so much! This saved me a lot of time. I fiddled around in VirtualBox an no setting helped.

  • Pietro

    I don’t have this option in my BIOS (but my pc is almost 9 years old) …

  • Gaurav Bist

    Thanks you, I have HP EliteBook 8560w. Enabling “Data Execution Prevention” in BIOS works from me.

    • Fixer

      > October 22, 2012 at 5:20 am, Gaurav Bist said:
      > Thanks you, I have HP EliteBook 8560w. Enabling “Data Execution Prevention” in BIOS works from me.

      Thanks Gaurav, same HP here – your tip solved my problem !

  • Adam

    This did not work for me :( I have a Lenovo machine, and enabled the option called “Execution Prevention” in my BIOS, but it didn’t help. I also tried turning on Software DEP,, in Windows XP which can be found in Control Panel -> System -> Advanced -> Performance -> Settings -> Data Execution Prevention. Maybe it’s some CPU setting that’s not enabled, unfortunately I can’t even view those settings due to my company security policy in place on this machine.

  • Kyle

    Is windows 8 able to run on a dell dimension 4550? I cant find that option this is a rather old PC i have the required requirements just cant find this option in BIOS.

    • Jesus

      Hi, Kyle.

      Could you install Windows 8 in your pc? I have a Dell Dimension 4550 as well and cannot find the option in BIOS.

      What did you do?

      Thank you,

      Jesus

  • Hassane

    Thank you, ….

  • Buv

    Thanks !!!

  • mehdi

    i have “Your PC needs to restart. Please hold down the power button. Error Code: 0x0000005D” error in install w8 and my motherboard is soltek. now what do?

  • Y

    I enabled that opcion in a Dell Vostro 1310 and nothing happends. The same error! :s

  • Y

    I enabled that opcion in a Dell Vostro 1310 and nothing happends. The same error! :s But… Thanks! :D

  • Nabs

    I have Gigabyte MB and i have enabled the ” No-Execute Memory Protection” but still I am getting this error. Could you plz help me

  • joe

    Sir,

    I was trying to install windows 8 but i got the same error 0x0000005d, i am not able to reset or access bios, i am using compaq evg 510 cmt PC, pls help me how do i remove the installed os and get back to normal windows xp…please help me..thanks…and urgently required…my pc got hanged…

    thanks a lot to you all in advance..

  • Peter

    I’m in the same boat – I have a Dell Vostro 1710 but changing “No-Execute Memory Protection” doesn’t fix the error. Anyone managed to get it running on that?

  • redhat

    if your BIOS doesn’t have the option then you can turn on software DEP by going to Control Panel -> System -> Advanced -> Performance -> Settings -> Data Execution Prevention and it will install smoothly afterward you can disable it as well.

    • Peter

      Many thanks for that but I’m afraid it didn’t work either. I am running Vista Business – not sure if that’s relevant.

  • Seb

    I have a Dell Inspiron 1440, cpu t6600, doesn’t support hw virtualization and doesn’t have the No-Execute Memory Protection option. I tried the control panel “Data Execution Prevention” option but get the same error in Virtualbox.

    I decided to try out VMWare Player and it worker. The installation of Win 8 32 bit is running ok.

  • kurt

    sir? how about on Asus motherboard?

  • http://www.cairo-pro.com Jehad Hussein

    The first time I see these bios

  • kirk

    I have an older dell 3000 I can not find the advanced setting to change the “NO Excute Memory option. any ideas other than adding this to the junk pile?

    • Lê Hoàng

      > If you do not have this option. Please go to Control Panel -> System -> Advanced -> Performance -> Settings -> Data Execution Prevention and turn on the feature.

  • Neil Pickles

    I had the same problem installing Windows 8 in a Virtual Box VM where it kept coming up with the dreaded 5d error, you need to power off your machine etc.

    I checked and double checked all setting and it all looked good, the CPU supported NX/XD/DEP and it was turned on in the BIOS but it still didn’t work.

    I was doing some digging and came across a post that mentioned the DEP settings in System Properties, Advanced, Performance, Settings, Data Execution Prevention.

    This setting has been in Windows since XP I think and the default in my existing Windows 7 Ultimate 32bit host was set to ‘Turn on DEP for essential Windows programs and services only’.

    I changed this to the ‘Turn on DEP for all programs and services except those I specify’, reboot the machine as requested and then when I try to install Windows 8 in the VirtualBox VM, voila, it works.

    I’ve been battling this problem for weeks now and finally have a working solution.

  • Andy G

    No-execute memory protection is also known as EDB (execute disabled bit) normally set to disabled, set to enabled, and you can install windows 8.1 preview :-)

  • Jole

    Thanks a lot. Took care of the problem for me. After 10000 attempts to install Win8 and Server 2012!

  • Vijay

    Awesome. It works. Great posts! Keep continue to share….

  • SkyNet

    Just thought to say thanks!
    In my case it was the “Execute disable bit” that had to be set to “enable” and then it worked.

    Thanks again :)

  • No Name

    thank you vey mach

    Really annoying problem has been solved, I thank my friend

  • shahan

    Hi, Im using Macbook Pro with OSX Maverick… 10.9.1
    which option do i enable and where?

  • Muhammad Shehzad

    same problem dont have options in my laptop its acer aspire 5741g

  • Viresh Doshi

    great – thanks for the helpful info – I managed to get through the issue installing the VM on my machine.
    regards viresh