WSA-Community / WSAGAScript

Scripts to install Google Apps into a WSA image. Plus optional root
The Unlicense
3.57k stars 3.52k forks source link

Version 2302 system image format changed to vhdx #296

Open YT-Advanced opened 1 year ago

YT-Advanced commented 1 year ago

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 commented 1 year ago

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

juicypop commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

YT-Advanced commented 1 year ago

@juicypop Did you test vboxmanage for convert process ?

juicypop commented 1 year ago

@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 commented 1 year ago

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

kurtilingus commented 1 year ago

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 commented 1 year ago

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

rainwashed commented 1 year ago

is there anyway to get a downgraded version?

YT-Advanced commented 1 year ago

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

rainwashed commented 1 year ago

@YT-Advanced thanks :)

JesseMcL commented 1 year ago

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

ghost commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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