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

Version 2302 system image format changed to vhdx #296

Open
YT-Advanced opened this issue Mar 16, 2023 · 26 comments
Open

Version 2302 system image format changed to vhdx #296

YT-Advanced opened this issue Mar 16, 2023 · 26 comments

Comments

@YT-Advanced
Copy link

YT-Advanced commented Mar 16, 2023

In version 2302, the system image format changed to vhdx, so this script can't work :((( Please add a feature to mount and edit vhdx image
Update: You can use my prebuilt from here (Auto build using Github Action):
https://github.com/YT-Advanced/WSA-Script/releases/latest

@ghost
Copy link

ghost commented Mar 16, 2023

Can confirm that they did indeed made this decision for some reason, kinda sucks.

@juicypop
Copy link

juicypop commented Mar 16, 2023

you can try to convert with your WSL:

apt-get update   
apt install qemu-utils  
qemu-img convert -O qcow2 product.vhdx product.img  
qemu-img convert -O qcow2 system.vhdx system.img  
qemu-img convert -O qcow2 system_ext.vhdx system_ext.img  
qemu-img convert -O qcow2 vendor.vhdx vendor.im

edit: never mind, it converts but the images aren't readable

@ghost
Copy link

ghost commented Mar 16, 2023

you can try to convert with your WSL:

apt-get update   
apt install qemu-utils  
qemu-img convert -O qcow2 product.vhdx product.img  
qemu-img convert -O qcow2 system.vhdx system.img  
qemu-img convert -O qcow2 system_ext.vhdx system_ext.img  
qemu-img convert -O qcow2 vendor.vhdx vendor.im

Have you tested this? Because I doubt it being very good solution

@juicypop
Copy link

Have you tested this? Because I doubt it being very good solution

Just finished my testings and you're right ofcourse. Saddly this doesn't work

@ghost
Copy link

ghost commented Mar 16, 2023

Have you tested this? Because I doubt it being very good solution

Just finished my testings and you're right ofcourse. Saddly this doesn't work

Yeah I thought as much.. I think you would have to convert it back to vdhx and I'm guessing it would just add even more instability with it. Guess all we can do is wait

@YT-Advanced
Copy link
Author

we can mount, unmount read-write vhdx but we can't resize it to copy file :(

@YT-Advanced
Copy link
Author

@juicypop Did you test vboxmanage for convert process ?

@juicypop
Copy link

@juicypop Did you test vboxmanage for convert process ?

I didn't even try and gave up on building it from source. There are projects that are ready to install from PowerShell with 1-2 commands and on the latest version.

I think this repo isn't maintained any longer and it doesn't make much sense to waste our time here.
Here's the link if you're interested https://ahaan.co.uk/article/top_stories/google-play-store-windows-11-install

@YT-Advanced
Copy link
Author

@juicypop This method use the script from MagiskOnWSALocal instead. And the script are build in bash too (which is didn't support vhdx)

@kurtilingus
Copy link

Arrgh.... of course I read the Issues tab only after having incompetently fumbled around for hours trying to work this exact thing out only to find out this whole flipping thing is essentially useless now... Hoo. Ray.

@FeuerDrachenEinhorn
Copy link

having the same issue, I was wondering why it didn't work until I realize that the file format is different now 😥

@rainwashed
Copy link

is there anyway to get a downgraded version?

@YT-Advanced
Copy link
Author

YT-Advanced commented Mar 28, 2023

@rainwashed @FeuerDrachenEinhorn use my prebuilt WSA instead:
https://github.com/YT-Advanced/WSA-Script/releases/latest

@rainwashed
Copy link

@YT-Advanced thanks :)

@JesseMcL
Copy link

If you download the current retail release of WSA (rather than the fast release) then the images are still in .img format

@ghost
Copy link

ghost commented Mar 29, 2023

If you download the current retail release of WSA (rather than the fast release) then the images are still in .img format

Yes they are but there is plenty of other issues with that one..

./apply.sh: line 31: echo: write error: No space left on device

chcon: failed to get security context of '/mnt/product/etc/permissions/privapp-permissions-venezia.xml': No such file or directory chcon: failed to get security context of '/mnt/product/etc/permissions/privapp-permissions-venezia.xml': No such file or directory chcon: failed to get security context of '/mnt/product/etc/permissions/privapp-permissions-venezia.xml': No such file or directory chcon: failed to get security context of '/mnt/product/etc/permissions/privapp-permissions-venezia.xml': No such file or directory chcon: failed to get security context of '/mnt/product/etc/permissions/privapp-permissions-venezia.xml': No such file or directory chcon: failed to get security context of '/mnt/product/etc/permissions/privapp-permissions-venezia.xml': No such file or directory chcon: failed to get security context of '/mnt/product/etc/permissions/privapp-permissions-venezia.xml': No such file or directory chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory

Due to these errors, it does not work. Atleast not for me.. When I run it, Windows gives buffer overflow error. Did anyone else get it to work?

@marklesterb28
Copy link

i have no coding background and stumbled upon this thread while following instructions found here: https://nerdschalk.com/how-to-get-google-play-store-and-gapps-on-windows-11-with-windows-subsystem-for-android/. I realized too late that the reason why the play store app is not showing up is because img files are vhdx files. thanks for posting the prebuilt ones, @YT-Advanced ! let me try this one out

@mohan-cao
Copy link

I haven't been able to get read-write mounting of the VHDX working correctly (if anyone has any suggestions please let me know). I've only been able to mount the VHDX images in read-only using libguestfs and linux-image-generic in WSL2.

@YT-Advanced Have you tried using Resize-VHD? https://learn.microsoft.com/en-us/powershell/module/hyper-v/resize-vhd?view=windowsserver2022-ps

@YT-Advanced
Copy link
Author

I haven't been able to get read-write mounting of the VHDX working correctly (if anyone has any suggestions please let me know). I've only been able to mount the VHDX images in read-only using libguestfs and linux-image-generic in WSL2.

@YT-Advanced Have you tried using Resize-VHD? https://learn.microsoft.com/en-us/powershell/module/hyper-v/resize-vhd?view=windowsserver2022-ps

I have used qemu to convert the image to img then convert back to vhdx. You can check my WSA-Script in my github

@VNRARA
Copy link

VNRARA commented Aug 5, 2023

Gotta love how the devs don't update the readme immediately upon this knowledge and letting everyone just waste their time on this issue. 👎

@ghost
Copy link

ghost commented Aug 5, 2023

Gotta love how the devs don't update the readme immediately upon this knowledge and letting everyone just waste their time on this issue. 👎

That's because it seems this project is abandoned by WSA-Community. I would recommend checking YT-Advanced's script for this.
https://github.com/YT-Advanced/WSA-Script
Last update they made was 2 days ago.

@YT-Advanced
Copy link
Author

Gotta love how the devs don't update the readme immediately upon this knowledge and letting everyone just waste their time on this issue. 👎

That's because it seems this project is abandoned by WSA-Community. I would recommend checking YT-Advanced's script for this. https://github.com/YT-Advanced/WSA-Script Last update they made was 2 days ago.

It is automatically so it will be up to date with original WSA (Now MagiskOnWSALocal are abandoned too) :(

@ghost
Copy link

ghost commented Aug 6, 2023

Gotta love how the devs don't update the readme immediately upon this knowledge and letting everyone just waste their time on this issue. 👎

That's because it seems this project is abandoned by WSA-Community. I would recommend checking YT-Advanced's script for this. https://github.com/YT-Advanced/WSA-Script Last update they made was 2 days ago.

It is automatically so it will be up to date with original WSA (Now MagiskOnWSALocal are abandoned too) :(

It's a shame but I get it. The performance is abysmal compared to Bluestacks for example. Some of them games I played on WSA just year ago are now extremely laggy.. and WSA still isnt available everywhere, and lot of people don't even use it..
The community around WSA is quite small still, and probably will be unless there is major improvements and better availability

@nHornDK
Copy link

nHornDK commented Nov 10, 2023

so i made i fork where i got it working by converting the .vhdx files to .img
and mounting with fuse2fs
see https://github.com/nHornDK/WSAGAScript

the fix/workaround is in extend_and_mount_images.sh

@ZeaMays14142
Copy link

just found this discussion after trying to understamd what i was doing wrong. are there any github repos on this still being updated??

@YT-Advanced
Copy link
Author

just found this discussion after trying to understamd what i was doing wrong. are there any github repos on this still being updated??

The repos above are still updated

https://github.com/YT-Advanced/WSA-Script/releases/latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests