mbl-35 / wslctl

Provide a single command wslctl to create, backup and manage WSL (Windows Subsystem for Linux) instances on a windows host
0 stars 1 forks source link

Create: no instance created #4

Closed mbl-35 closed 3 years ago

mbl-35 commented 3 years ago

wslctl create myubuntu my-non-existing-ubuntu

process running, but no wsl created. => check key exists in registry.json

$ wslctl create ubuntu-14.04-pre ubuntu-14.04-pre --no-user
* Import ubuntu-14.04-pre
Distribution 'ubuntu-14.04-pre' already cached ...
Create wsl instance 'ubuntu-14.04-pre'...
* ubuntu-14.04-pre created
  Could be started with command: wslctl start ubuntu-14.04-pre

$ wslctl exec ubuntu-14.04-pre
Error: Instance 'ubuntu-14.04-pre' does not exists

and nothing in wsl -l -v

Dir C:\Users\\AppData\Local\Wslctl\Instances\ubuntu-14.04-pre empty

PS> wsl --import ubuntu-14.04-pre  C:\Users\<user>\AppData\Local\Wslctl\Instances\ubuntu-14.04-pre C:\Users\<user>\AppData\Local\Wslctl\Cache\ubuntu-14-04-bps-20210621.tar.gz
Erreur non spécifiée
mbl-35 commented 3 years ago

Seems that the uploaded distribution package has no integrity. Add Sha256 check before integrating to the local registry and failed process on wrong download.

mbl-35 commented 3 years ago

Close with integrity checks