WSL2 stopped working with error The system cannot find the path specified - windows-subsystem-for-linux

WSL2 stopped working suddenly. If I do a new installation of linux distros. Then it throws the following error, when I click launch button for the linux distro from play store:
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070003
Error: 0x80070003 The system cannot find the path specified.
the wsl --help command works properly. All other wsl command hangs or throws error as shown below
like wsl -l command throws this error
The system cannot find the path specified.

I had the same thing happening to me after I moved the directory of my distro.
You have to unregister the distro from WSL;
wslconfig /u Ubuntu-20.04
and then just execute the installed exe and install the whole distro to WSL again.

I had to reinstall the windows to fix the issue. Something got corrupted in the OS. However, before reinstalling the OS as I had lot of work stored in the WSL2, I took the backup of the entire WSL2 image, the big .vhdx file. This file is the Virtual Hard Disk of WSL2 Linux. The files inside cannot be directly explored from Windows at the moment.
If one has not moved the file anywhere else, it is stored here: %LOCALAPPDATA%\Packages\<PackageFamilyName>\LocalState\ext4.vhdx
Before reinstalling the OS, after taking the backup, I wanted to test if this backup runs fine on new install of WSL2. For that, I tested it on another machine, by installing the same Ubuntu WSL2 distro and replacing the .vhdx file created with the backup file. It ran fine.
So, it felt safe to do entire OS reinstall and then reinstalling WSL2 Ubuntu and finally replacing the .vhdx file with the old backup .vhdx file. So, I did loose some time. But, my data and all the applications/programs on WSL2 were intact.

I know this is old but I had the same problem after deleting a driver associated with Hyper V and fixed it by uninstalling the virtual machine platform and Windows Hypervisor along with WSL, rebooted, reinstalled all 3 and then I could install Ubuntu again

This is my first answer on stack overflow and English is not my first language.
So, I will answer this question in images. My solution would not delete the date in any existing installed Linux distribution, at least for me.
Hope you can solve this problem successfully.
enter image description here
enter image description here
enter image description here

"Enable" Virtualization from your bios settings.
Settings may differ from bios to bios (search for your machine options)

Related

Lags in Libvirt 5.9.0

I am using Arch Linux 5.3.13-arch1-1 and libvirt 5.9.0.
After I made a linux update (sudo pacman -Syu), I got the new, libvirt version mentioned above.
But soon after I realized, while programming in Eclipse, that copy paste does not work anymore. After couple of tries, when I try to copy some lines of code, it freezes for a short time, and looses the copied text in the clipboard.
I converted the VMs into vdi and continuing to work with Virtual Box. There, on the same laptop and the same VM, I don't have that issue!
Is this a known issue? I've got other VMs which are optimized for KVM.

Ubuntu on WSL doesn't launch

I have installed Ubuntu 18.04 for windows subsystem for linux on windows 10, after enabling WSL in Powershell (instructions here: https://learn.microsoft.com/en-us/windows/wsl/install-win10).
I've done this before on a desktop but now I'm doing it on a laptop. I had no issues with the previous installation but this time around ubuntu will not launch. I get the ubuntu console popping up briefly before disappearing.
Also trying to run bash.exe from the command line fails silently (doesn't hang, just exits with no message), which may be related.
I'm struggling to figure this out as I have no idea where any error messages might be logged. Does anyone know how I can investigate further why this is happening?
Setup is a windows 10 Pro, os build 17134.376, everything up to date.
I'm struggling to figure this out as I have no idea where any error messages might be logged. Does anyone know how I can investigate further why this is happening?
Check with wslconfig.exe /l all registered distros, try to deregister the one you have problem with ( e.g. wslconfig.exe /u Ubuntu [^1]) and run the ubuntu.exe in your distro once again. Just a wild guess, it might be also a problem, if you have more than one copy of the linux distribution in you home directory.
[^1]: Warning: deregistering will delete all the associated files!

Installing chrome OS on an iMac

http://zzsethzz.blogspot.de/2013/02/install-chromium-upgrade-it-to-chrome.html
According this tutorial, I should remove all HDDs I do not want to install chromium OS to during install. I wanted to try this guide on my imac using an external SSD for chromeos. Obviously, removing the HDD isn't an option. Will the chromiumOS installer format my mac drive too, if I don't remove it?
AS the writer of that tutorial I can hopefully help you. When you install Chromium OS to begin with you can specify where to install to if you know your unix commands well enough. and then from there you can update to Chrome OS once you have your external working for you.
To find out what your hard drive is when connected, open a terminal (you may need to use a developer terminal) and use the command "fdisk -l" This will list your hard drives. for example /dev/sda1 etc...
Your install command would be "Install /Dev/sda1" but replace the dev part with whatever your hard drive was listed as. If you need further help email me at admin#xiaorishu.co.uk

VirtualBox: Cannot access the kernel driver

When I try to launch VM in Oracle VirtualBox on Windows 10 it says "Cannot access the kernel driver". I tried complete reinstall (remove everything and install), repair installation (repair in the installer) and installing 2 drivers manually (VBoxUSBMon and VBoxDrv). Nothing worked. I'm using VirtualBox 4.3.12 because I was not able to launch newer version on Windows 10 for some reason.
The problem is with the installer. The new location of the driver is at C:\Program Files\Oracle\VirtualBox\drivers\vboxdrv\VBoxDrv.sys. However the installer points to the old driver location of C:\Program Files\Oracle\VirtualBox\VBoxDrv.sys.
To fix the problem you need to point the registry value to the new location. Step to do that:
Close VirtualBox
Open regedit.exe from the Start Menu
Navigate to HKEY_LOCAL_MACHINE\system\currentcontrolset\services\vboxdrv
Double click the name ImagePath
Change the value from \??\C:\Program Files\Oracle\VirtualBox\VBoxDrv.sys to \??\C:\Program Files\Oracle\VirtualBox\drivers\vboxdrv\VBoxDrv.sys
Restart VirtualBox
I found this answer in the VirtualBox Forum
I went to Control Panel > Programs and Feature (or right click Windows logo) then selected Oracle VM VirtualBox(4.3.12) and then hit repair at the top.
I restarted then it worked!!
Im running windows 10.0 Home
Downgrade to VirtualBox 4.3.10.
This worked fine for me after trying all that is mentioned above.
Download an old copy of your Virtualbox installer (make sure it's the
same version!)
Run the installer
Select "Repair"
Reboot
Uninstall the old version
Install the new version
Hope it helps!
I have VirtualBox 4.3.14 and I got the "Cannot access the kernel driver" . I did the traditional repair ,reboot and didn't solve a thing.
After a manual installation of these drivers everything works again.
Go to
C:\Program Files\Oracle\VirtualBox\drivers\USB\filter
Select VBoxUSBMon.inf and click the right mouse button. Then pick Install.
Go to
C:\Program Files\Oracle\VirtualBox\drivers\vboxdrv
Select VBoxDrv.inf and click the right mouse button. Then pick install.
VirtualBox should now work again as expected.
I hope this helps ! :D
Just faced this problem after updating to virtual box 6.1.2 version in windows.
The answer by AllanT worked for me, except that it required one more step:
Execute this from the command line as admin: sc.exe start vboxdrv
(restarting the vbox service was not enough).
Note: I would've added this as a comment to AllanT's post but I still don't have enough rep!
You can open the CMD as admin and locate the folder that you have the Oracle Virtual Box in and run each of the the following with your Virtual Machine's name, if you are using an iso file or a vmdk:
cd "C:\Program Files\Oracle\VirtualBox\"
VBoxManage.exe modifyvm "Your VM Name" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "Your VM Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "Your VM Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "Your VM Name" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "Your VM Name" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "Your VM Name" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
Make sure to replace "Your VM Name" with "Your actual VM name".
For more on the latest OS X check an example here: https://techsprobe.com/6-step-install-macos-catalina-on-virtualbox-on-windows-pc/
Just wanted to add, I had this problem on Windows 10. None of the fixes I found worked. Turned out it was due to Trusteer Endpoint Protection, which once uninstalled fixed this perfectly.
This is because VirtualBox gets confused about some of their files and settings. When i updated my VirtualBox to 6.0.14 from 6.0.10 then i got this error.
In my case i just deleted C>Username>Program Files>Oracle>VirtualBox folder. And after that i uninstalled VirtualBox from my machine.
After these steps i did a simple fresh install of VirtualBox on my machine and this solves my issue. Hope you also got some help.
Have a nice day random man and great future..
I faced the same issue. I am not sure which file was missing. Uninstall and install worked for me :)

Geny motion failed to import OVA

Suddenly, i lost all Geny motion emulators (maybe after upgrading to Geny motion 2.2, not sure) and when ever i download a new virtual machine or emulator i get the "failed to import OVA" error and i can't use the virtual machines i downloaded at all in Geny motion, however they work in virtual box!
and i have cleared the cache and deleted old OVAs and re-downloaded other emulators again and again, but it's no use!
any clue what's going on?
is there a way to re-import emulators i already downloaded by Geny motion to Geny motion again instead of keeping downloading new emulators and getting the same error?
I solved the problem for myself. In my case, I had the same problem after defragmenting my computer. Deleting the ova and deploying files did not work (neither did reinstalling help). Solved it by clearing the cache in the app itself:
Settings>Misc>Cache Usage>Clear Cache
Try to see if that helps. If it doesn't then I can't help.
So I upgraded to the latest version of Genymotion 2.6.0. Tried to install the new Virtual Devices and I got the same error.
I tried to clear the cache as suggested above but it didn't help instead it removed the downloaded .ova file of the device and I had to download again.
I checked for update on VirtualBox and it shows that you're on the latest build. I checked the version and it showed 4.2.x.
Checked the latest version on the site and damn... It was version 5.0 available on the website.
Upgraded the VirtualBox to the latest 5.0 and here you go... Everything was back in place and my Genymotion Virtual Device was imported and is running fine.
So do check the versions of VirtualBox and see if it is the latest available on the website.
Deleting the Genymotion cached .ova file, deleting the corrupted deployed image, redownloading the image, and reinstalling it addressed the issue for me.
Note that the deployed images are under: ~/.Genymobile/Genymotion/deployed
the cached ova files are under: ~/.Genymobile/Genymotion/ova
this link : Unable to create Genymotion Virtual Device
Update :
Settings>Misc>Cache Usage>Clear Cache
Try to upgrade VirtualBox to the latest release, this solved the problem for me.
UPDATE
Some VirtualBox version are not compatibles with genymotion: review FAQ Genymotions in https://www.genymotion.com/help/desktop/faq/#compatible-virtualbox-versions
If you see the log file of Genimotions you'll find this:
VBoxManage.exe: error: 'Linux_64' is not a valid Guest OS type
The problem is the version of Virtual Box, I thought I had the last version (4.2) because virtual box said me that it was the lastest version, but it wasn't true: The last version actually is 5.0.20
I've installed the last version (5.0.20), and ova is ok
If you're using Windows:
The folder left after uninstallation is located at:
C:\Users\Your_User_Name\AppData\Local\Genymobile\Genymotion\
Before proceeding, in the OVA folder, save the ova files in there if you do not want to redownload the images all over again.
Clear the Genymotion cache, and then uninstall Genymotion (and Oracle VBOX if needed)
Remove the whole Genymotion folder in the above path
Reinstall genymotion and VirtualBox
Copy back the ova files into the ova folder.
Re-add the virtual device accordingly (the ova files name should be identifiable easily enough)
Genymotion will then verify the integrity of the stuffs and should now works fine.
I just Run Genymotion with Administrator right (run as Administrator)! It work perfect!
I had the same issue and also tried deleting the Genymotion cached .ova file and old images but to no avail.
To get my Genymotion working again in my environment I completely uninstalled VirtualBox and Genymotion using the TrashMe app to ensure no trace was left on my system. You can achieve the same result with the free app App Cleaner.
I then completely deleted the ~/.Genymobile directory as this seems to get left behind when deleting/uninstalling Genymotion. I think this is the only thing I did differently this time.
I then re-downloaded the latest versions of VirtualBox and Genymotion and installed them in that order. (Versions at time of writing: VB - 4.3.13 r93733 / GM - 2.2.2)
I then launched Genymotion, connected to my account, added a new device and I am now back up and running.
Hopefully that helps..
I encountered this error when my hard drive was almost full. It looked like it had enough space for the emulator, but Genymotion still failed with failed to import eva
Solved by freeing up a couple Gigs on disk.
Updating VirtualBox to the latest version, Worked for me
I deleted all the virtual devices and cleared Cache. After that I added the device again. Worked for me.
I had the same problem, I fixed it with uninstalling, reinstalling and running Gennymotion with Admin rights. Make sure you not upgrade Oracle VM and use the one you installed with Genymotion. Also at installing Genymotion make sure you reinstall VM too. It should work, I lost my devices too and this method only solve the OVA problem. If you run the virtual device and get an error, reboot computer, if you didn't do after installing Oracle VM. Hope it helped.
it turns for me I restored the system from the backup
Click geny settings->virtualbox tab, have to correct the folder to keep the VM
I had deleted /Users//.Genymobile/ directory and Genimotion started work fine
make sure you choose the correct android sdk
in Linux
just delete
home/user/.config/Genymobile/Genymotion.conf
and it's work
I downloaded ova that match with version i want (example android 5)
http://fatihcamuz.com/2015/04/download-links-of-genymotion-ova/
then add ova file to genymotion
https://www.youtube.com/watch?v=0MiYhVUv4KE