Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Allow importing VHDX files #183

Open
1 task done
Uj947nXmRqV2nRaWshKtHzTvckUUpD opened this issue Jun 8, 2023 · 2 comments
Open
1 task done

[FEATURE] Allow importing VHDX files #183

Uj947nXmRqV2nRaWshKtHzTvckUUpD opened this issue Jun 8, 2023 · 2 comments
Assignees
Labels
feature Feature request

Comments

@Uj947nXmRqV2nRaWshKtHzTvckUUpD

Is there an existing issue for this?

  • I have searched the existing issues

Problem?

i cannot import a moved ext4.vhdx from the GUI

Solution

  • Add an instance button should allow selecting the path to ext4.vhdx file and automatically create it as an instance

Alternatives

No response

Anything else?

No response

@bostrot
Copy link
Owner

bostrot commented Aug 19, 2023

It would be good if you would have filled in the used versions to reproduce that issue :)

Anyways, this seems to be a WSL issue. Trying to import a VHDX manually from cmd throws the same error:

❯ wsl --import test2 C:\WSL2-Distros\testcopy C:\WSL2-Distros\test\ext41.vhdx
Import is running. This process can take several minutes.
Unspecified error
Error code: Wsl/Service/E_FAIL

@bostrot bostrot closed this as completed Aug 19, 2023
@Uj947nXmRqV2nRaWshKtHzTvckUUpD
Copy link
Author

Uj947nXmRqV2nRaWshKtHzTvckUUpD commented Aug 19, 2023

Please check https://learn.microsoft.com/en-us/windows/wsl/basic-commands

wsl --import-in-place
Imports the specified .vhdx file as a new distribution. The virtual hard disk must be formatted in the ext4 filesystem type.

wsl --import
Imports and exports the specified tar file as a new distribution. The filename can be - for standard input. Options include:

--vhd: Specifies the import/export distribution should be a .vhdx file instead of a tar file
--version: For import only, specifies whether to import the distribution as a WSL 1 or WSL 2 distribution

Please reopen this feature as it is quite a basic operation

@bostrot bostrot reopened this Aug 20, 2023
@bostrot bostrot changed the title [FEATURE] Allow importing from folder [FEATURE] Allow importing VHDX files Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request
Projects
None yet
Development

No branches or pull requests

2 participants