Adding MSIX applications to the host pool

%3CLINGO-SUB%20id%3D%22lingo-sub-2117959%22%20slang%3D%22en-US%22%3EAdding%20MSIX%20applications%20to%20the%20host%20pool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2117959%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI've%20been%20trying%20to%20create%20some%20test%20MSIX%20packages%20for%20WVD%20project%20and%20currently%20facing%20a%20strange%20issue%20regarding%20uploading%20the%20apps.%20They've%20been%20signed%2C%20packed%2C%20converted%20to%20vhd%20on%20a%20test%20VM.%3CBR%20%2F%3ETried%20to%20map%20the%20.vhd%20files%20and%20point%20the%20path%20out%20to%20add%20the%20apps%20but%20the%20same%20error%20pops%20up%20-%20%22No%20MSIX%20packages%20could%20be%20retrieved%20from%20the%20image%20path%22%20%2F%20%22Error%3A%20Virtual%20disk%20not%20found%22.%3CBR%20%2F%3EI%20even%20included%20the%20.msix%20package%20into%20the%20.vhd%20alongside%20the%20unpacked%20files%20but%20it%20still%20didn't%20do%20the%20trick.%20Well.%3CBR%20%2F%3E%3CBR%20%2F%3EOn%20the%20other%20hand%20when%20I%20moved%20the%20prepared%20.vhd%20to%20a%20test%20storage%20account%20it%20just%20didn't%20accept%20the%20URL.%3CBR%20%2F%3EIt%20starts%20with%20http%3A%2F%2F%20though%2C%20should%20the%20path%20be%20somewhat%20converted%20and%20supplied%20in%20a%20different%20format%20while%20referencing%20the%20storage%20account%3F%3CBR%20%2F%3EIs%20anyone%20else%20experiencing%20issues%20when%20adding%20new%20msix%20packages%20to%20the%20host%20pool%3F%3CBR%20%2F%3EThanks!%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ArkadiuszOpoczko_0-1612800374010.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F253347i87AE896131C35342%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ArkadiuszOpoczko_0-1612800374010.png%22%20alt%3D%22ArkadiuszOpoczko_0-1612800374010.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2120526%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20MSIX%20applications%20to%20the%20host%20pool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2120526%22%20slang%3D%22en-US%22%3EI%20am%20not%20expecting%20that%20VM%20outside%20of%20the%20host%20pool%20to%20work.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2120495%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20MSIX%20applications%20to%20the%20host%20pool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2120495%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F717813%22%20target%3D%22_blank%22%3E%40ArkadiuszOpoczko%3C%2FA%3E%26nbsp%3BDid%20you%20put%20the%20new%20certificate%20(with%20which%20the%20applications%20are%20packaged)%20on%20each%20machine%20in%20Trusted%20People%3F%20As%20for%20cannot%20find%20VHD%2C%20all%20session%20host%20machines%20must%20have%20access%20to%20the%20location%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2120465%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20MSIX%20applications%20to%20the%20host%20pool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2120465%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F195573%22%20target%3D%22_blank%22%3E%40Stefan%20Georgiev%3C%2FA%3E%26nbsp%3Bso%20I%20tried%20it%20as%20well%20and%20it%20didn't%20like%20my%20cert.%20Had%20to%20repack%20using%20Device%20Guard%20but%20then%20it%20said%20there%20is%20no%20msix%20on%20.vhd%20I%20linked.%3CBR%20%2F%3E%3CBR%20%2F%3EI'm%20really%20confused%20because%20when%20trying%20to%20upload%20the%20.vhd%20either%20from%20VM%20or%20storage%20account%20I%20get%20below%20errors%3A%3CBR%20%2F%3E-%20can't%20find%20vhd%3CBR%20%2F%3E-%20cert%20issue%3CBR%20%2F%3E%3CBR%20%2F%3EI%20repacked%20the%20thing%20today%20like%2015%20times%20using%20Device%20Guard%20as%20well%20as%20self-generated%20cert%20using%20PowerShell%2C%20signing%20during%20packing%20or%20adding%20cert%20later.%20Still%20nothing.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2120078%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20MSIX%20applications%20to%20the%20host%20pool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2120078%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F195573%22%20target%3D%22_blank%22%3E%40Stefan%20Georgiev%3C%2FA%3E%26nbsp%3Btried%20to%20do%20it%20from%20a%20VM%20outside%20the%20host%20pool.%20I%20will%20test%20it%20on%20a%20VM%20inside%20the%20host%20pool%20and%20we'll%20see%20what%20happens.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2118567%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20MSIX%20applications%20to%20the%20host%20pool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2118567%22%20slang%3D%22en-US%22%3EHave%20you%20tried%20putting%20the%20VHD%20on%20the%20c%20drive%3F%20and%20do%20the%20operation%20with%20one%20VM%20on%20a%20host%20pool%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2136369%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20MSIX%20applications%20to%20the%20host%20pool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2136369%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F195573%22%20target%3D%22_blank%22%3E%40Stefan%20Georgiev%3C%2FA%3E%26nbsp%3BI%20tried%20adding%20a%20.vhd%20from%20a%20VM%20inside%20a%20host%20pool%20as%20well%2C%20still%20got%20the%20same%20errors%20though.%20Most%20of%20the%20time%20it%20just%20doesn't%20recognize%20the%20msix%20inside%20.vhd%20for%20some%20reason%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2276158%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20MSIX%20applications%20to%20the%20host%20pool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2276158%22%20slang%3D%22en-US%22%3EYou%20should%20never%20manually%20add%20files%20into%20the%20VHD%20that%20are%20not%20part%20of%20the%20MSIX%2C%20That%20breaks%20the%20validity%20of%20the%20MSIX%20package%20and%20we%20will%20report%20no%20valid%20MSIX%20is%20present.%20%3CBR%20%2F%3EHere%20is%20a%20video%20explaining%20the%20creation%20of%20the%20MSIX%20image%20%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DTz749vPRT0o%26amp%3Bt%3D1s%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DTz749vPRT0o%26amp%3Bt%3D1s%3C%2FA%3E%20%3CBR%20%2F%3ENow%20for%20the%20HTTPS%3F%20That%20is%20not%20how%20Azure%20Files%20work%20over%20SMB.%20I%20would%20recommend%20that%20on%201%20of%20your%20machines%20you%20create%20a%20c%3A%5Cshare%20folder.%20Share%20it%20to%20everyone%20(read)%20put%20the%20package%20there%20and%20pass%20the%20path%20%5C%5Cshares%5C%3CNAME%20of%3D%22%22%20msix%3D%22%22%20image%3D%22%22%3E%3C%2FNAME%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2319715%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20MSIX%20applications%20to%20the%20host%20pool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2319715%22%20slang%3D%22en-US%22%3EI'm%20running%20into%20this%20error%20when%20trying%20to%20upload%20my%20vhd%20file.%3CBR%20%2F%3E%3CBR%20%2F%3EActivityId%3A%20bc38b82b-6c0b-42a3-96b7-191a6d8428f9%20Error%3A%20The%20MSIX%20Application%20metadata%20expand%20request%20failed%20on%20all%20Session%20Hosts%20that%20it%20was%20sent%20to.%20Session%20Host%3A%20host-1%2C%20Error%3A%20Native%20error%2032..Session%20Host%3A%20host-2%2C%20Error%3A%20Native%20error%2032..Session%20Host%3A%20bio-4%2C%20Error%3A%20Native%20error%2032..%20(Code%3A%20400)%3CBR%20%2F%3E%3CBR%20%2F%3EThere%20are%206%20hosts%20in%20total%20from%200%20to%205%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3176309%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20MSIX%20applications%20to%20the%20host%20pool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3176309%22%20slang%3D%22en-US%22%3EGot%20similar%20error%20on%20the%20top%20%22No%20MSIX%20Packages%20could%20be%20retrieved%20from%20the%20image%20path%22%20but%20the%20error%20type%20was%20empty%2C%20my%20solution%20after%20more%20than%203%20months%20with%20MS%20support%20was%2C%20have%20the%20-Desktop%20Virtualization%20Contributor%20BuiltInRole%20-%20and%20follow%20all%20the%20procedures%20to%20set%20the%20storage%20account%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3250207%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20MSIX%20applications%20to%20the%20host%20pool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3250207%22%20slang%3D%22en-US%22%3EHi%2C%20I%20am%20facing%20exactly%20the%20issue%20above%2C%20can%20you%20elaborate%20on%20what%20you%20did%20to%20resolve%20this%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3269490%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20MSIX%20applications%20to%20the%20host%20pool%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3269490%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F31983%22%20target%3D%22_blank%22%3E%40Victor%20Caicedo%3C%2FA%3E%26nbsp%3BJust%20wanted%20to%20clarify%20your%20resolution.%20You%20add%20the%26nbsp%3B%3CSPAN%3E-Desktop%20Virtualization%20Contributor%20BuiltInRole%20-%20to%20the%20admin%20user%20that%20you%20were%20using%20to%20add%20the%20MSIX%20package%20via%20the%20portal%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello,

I've been trying to create some test MSIX packages for WVD project and currently facing a strange issue regarding uploading the apps. They've been signed, packed, converted to vhd on a test VM.
Tried to map the .vhd files and point the path out to add the apps but the same error pops up - "No MSIX packages could be retrieved from the image path" / "Error: Virtual disk not found".
I even included the .msix package into the .vhd alongside the unpacked files but it still didn't do the trick. Well.

On the other hand when I moved the prepared .vhd to a test storage account it just didn't accept the URL.
It starts with http:// though, should the path be somewhat converted and supplied in a different format while referencing the storage account?
Is anyone else experiencing issues when adding new msix packages to the host pool?
Thanks!

ArkadiuszOpoczko_0-1612800374010.png

 

12 Replies
Have you tried putting the VHD on the c drive? and do the operation with one VM on a host pool

@Stefan Georgiev tried to do it from a VM outside the host pool. I will test it on a VM inside the host pool and we'll see what happens.

@Stefan Georgiev so I tried it as well and it didn't like my cert. Had to repack using Device Guard but then it said there is no msix on .vhd I linked.

I'm really confused because when trying to upload the .vhd either from VM or storage account I get below errors:
- can't find vhd
- cert issue

I repacked the thing today like 15 times using Device Guard as well as self-generated cert using PowerShell, signing during packing or adding cert later. Still nothing.

@ArkadiuszOpoczko Did you put the new certificate (with which the applications are packaged) on each machine in Trusted People? As for cannot find VHD, all session host machines must have access to the location

I am not expecting that VM outside of the host pool to work.

@Stefan Georgiev I tried adding a .vhd from a VM inside a host pool as well, still got the same errors though. Most of the time it just doesn't recognize the msix inside .vhd for some reason

You should never manually add files into the VHD that are not part of the MSIX, That breaks the validity of the MSIX package and we will report no valid MSIX is present.
Here is a video explaining the creation of the MSIX image https://www.youtube.com/watch?v=Tz749vPRT0o&t=1s
Now for the HTTPS? That is not how Azure Files work over SMB. I would recommend that on 1 of your machines you create a c:\share folder. Share it to everyone (read) put the package there and pass the path \\shares\<name of msix image>
I'm running into this error when trying to upload my vhd file.

ActivityId: bc38b82b-6c0b-42a3-96b7-191a6d8428f9 Error: The MSIX Application metadata expand request failed on all Session Hosts that it was sent to. Session Host: host-1, Error: Native error 32..Session Host: host-2, Error: Native error 32..Session Host: bio-4, Error: Native error 32.. (Code: 400)

There are 6 hosts in total from 0 to 5
Got similar error on the top "No MSIX Packages could be retrieved from the image path" but the error type was empty, my solution after more than 3 months with MS support was, have the -Desktop Virtualization Contributor BuiltInRole - and follow all the procedures to set the storage account
Hi, I am facing exactly the issue above, can you elaborate on what you did to resolve this?

@Victor Caicedo Just wanted to clarify your resolution. You add the -Desktop Virtualization Contributor BuiltInRole - to the admin user that you were using to add the MSIX package via the portal?

 

Thanks

My issue had a different resolution. The certificate used for signing the msix package was not installed on the session hosts. This needs to be done prior to adding the MSIX as an available package to distribute. I thought this could be done after but this is not the case.