2

I had a functioning verison of ubuntu running on windows 11 (using ubuntu on windows 11 app) but just followed some instructions to attach its vhdx file via disk management (I wanted to see inside). now ubuntu wont start with message ...

The operation timed out waiting becuase a response was not received fromthe virtual machine or container. Error code: WSL/Service/CreateInstance/HCS_E_CONNECTION_TIMEOUT

Any thoughts gratefully received.

Ben Creasy
  • 364
  • 3
  • 13
Tony
  • 21
  • 1
  • 2
    Can you recover from a backup? – John Dec 01 '22 at 15:47
  • thanks. I m not entirely sure what you mean. I believe its a failure of WSL to start but no i don't have a backup of the vhdx file (14gb) – Tony Dec 01 '22 at 16:11
  • I always make a copy of any VM that I may wish to make changes to that I am not sure about – John Dec 01 '22 at 17:40
  • @Tony I had same error when I tried to recover vhdx image that was uploaded to cloud. Seems like cloud app messed up with file and corrupted it, because later I replaced it with original image and original was working. – Artem P Dec 16 '22 at 20:35

1 Answers1

-1

Run cmd as administrator and update your wsl

wsl --update

then go to control panel --> programs --> turn windows features on or off.

then uncheck both windows hypervisor platform and virtual machine platform --> click ok

enter image description here

open features again and check both of them again windows hypervisor platform and virtual machine platform --> click ok

enter image description here

once the installation is done, reboot your pc and everything should be working after that.

Michel
  • 104
  • 8
  • 1
    thanks much appreciated i did that and restarted twice after reinstalling both of them, however unfortunately ubuntu stil wont start still with error code timing out Error code: WSL/Service/CreateInstance/HCS_E_CONNECTION_TIMEOUT so stil a prpoblme with th .vhdx file although i wsnt able toaccess it and it hasnt been changed (although timestamp on it was updated when i foolishly tried to "attach" to it in disk management and didnt know what i was doing. – Tony Dec 01 '22 at 22:50
  • have you tried using the vhdx on a different computer ? – Michel Dec 07 '22 at 19:02
  • _Windows Hypervisor Platform_ and _Virtual Machine Platform_ [are not](https://imgur.com/a/dzcCC4o) the issue – JW0914 Jul 26 '23 at 13:28