Paulklerkx
Posts: 22
Joined: Wed Nov 01, 2023 6:41 am
Location: Queensland, Australia

Repackager - The selected Virtual Machine was not found on the virtualization server

When I attempt to connect to a packaging VM, I get the message " The selected Virtual Machine was not found on the virtualization server"

Logged into Host with an Administrator account
AI Version 22.5
vmware workstation 17.6.3.24583834
Advanced repackager running elevated.
VM is windows 11 Professional 24H2 build 26100.3194
OSProvision 22.5 is installed on the VM as well as Vmware tools 12.5.0.0.24276846
the VM is snapshotted, logged in with a local admin account and all previous snapshots have been deleted.
To replicate, open repackager elevated, choose capture setup, choose executable, choose "Start in VM" drop down, click on the VM - error appears. OR
start in a VM, prepare a virtual machine, prepare and existing virtual machine, virtualization product vmware workstation, browse to and select VMX for the vm, user required username and password - Error Appears.
I have tried uninstalling and reinstalling both AI and VMWare workstation.
choose the "Log" option under the View Tab shows an empty "Run Log"
this path exists but is empty. C:\Users\<MyAdminAccount>\AppData\Local\Caphyon\Advanced Installer\repackager

Image

https://imgur.com/a/fVs0W1X (in case the image above doesn't come through)

any idea where I go from here?
Paulklerkx
Posts: 22
Joined: Wed Nov 01, 2023 6:41 am
Location: Queensland, Australia

Re: Repackager - The selected Virtual Machine was not found on the virtualization server

in case relevant, I verified vixwrapper-config.txt has my vmware version listed.

# Workstation 17.0.0
ws 19 vmdb 17.0.0 Workstation-17.0.0
player 19 vmdb 17.0.0 Workstation-17.0.0

# Workstation 17.6.0
ws 19 vmdb 17.6.0 Workstation-17.0.0
player 19 vmdb 17.6.0 Workstation-17.0.0

# Workstation 17.6.1
ws 19 vmdb 17.6.1 Workstation-17.0.0
player 19 vmdb 17.6.1 Workstation-17.0.0

# Workstation 17.6.2
ws 19 vmdb 17.6.2 Workstation-17.0.0
player 19 vmdb 17.6.2 Workstation-17.0.0

# Workstation 17.6.3
ws 19 vmdb 17.6.3 Workstation-17.0.0
player 19 vmdb 17.6.3 Workstation-17.0.0


# latest un-versioned
ws 19 vmdb e.x.p Workstation-17.0.0
player 19 vmdb e.x.p Workstation-17.0.0
Catalin
Posts: 7492
Joined: Wed Jun 13, 2018 7:49 am

Re: Repackager - The selected Virtual Machine was not found on the virtualization server

Hello Paul,

Apologies for the delayed reply on this, as I was out of office for the past week.

I think I replied to your other thread regarding this some time ago, but you did not answer, so I will ask here again.

Could you please let me know if your VM is encrypted? If so, then please note that we do not support encrypted VMS, as that goes against pretty much everything we do with the repackager.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Paulklerkx
Posts: 22
Joined: Wed Nov 01, 2023 6:41 am
Location: Queensland, Australia

Re: Repackager - The selected Virtual Machine was not found on the virtualization server

Hi, if you mean the entry under "Access control", it is "partially" encrypted. which is due to it having a TPM. I will remove that and try again.
Last edited by Paulklerkx on Tue Apr 01, 2025 11:58 pm, edited 1 time in total.
Paulklerkx
Posts: 22
Joined: Wed Nov 01, 2023 6:41 am
Location: Queensland, Australia

Re: Repackager - The selected Virtual Machine was not found on the virtualization server

I am not able to remove the encryption of the TPM files, so will have to recreate a new VM.
During the creation of the VM at the beginning it prompts to encrypt the files required for a TPM (because it is windows 11 I assume), thus the partial encryption. There is no option to not encrypt those files.

https://imgur.com/lnYHAbf

Theoretically, maybe I can complete this with a non-generated password, then delete the TPM (assuming windows 11 pro VM continues working without a TPM). Is that your recommendation to build an AI repackaging VM?

Do you have the Win 11 pro VM for Advanced Installer repackaging creation, documented somewhere? Maybe I could follow your process.
Paulklerkx
Posts: 22
Joined: Wed Nov 01, 2023 6:41 am
Location: Queensland, Australia

Re: Repackager - The selected Virtual Machine was not found on the virtualization server

Thanks for the direction. I had to create a new VM, the basics for anyone else are

Create your Win11 pro VM including TPM when prompted. (record the password you use)
once you have completed creating your vm
under Hardware - select the TPM and remove
under options - access control, click remove encryption - you will need the password you used for creating the TPM here.

*****************************
if anyone wants it, this is my full process. (this is with vmware workstation btw)
*****************************
Create a VM manually using the latest Windows 11 ISO. you will have to create a TPM password. you may need it, so record it.
disable network
choose Windows Pro when prompted for an OS
at completion of creating the VM, uncheck the checkbox to start the VM
change network settings to not connect at power on
power on the VM - boot from CD
choose your language and your keyboard preference.
choose windows 11 pro, follow the prompts and start the install. (must be PRO, enterprise isn't on the list of supported OS's)
When you reach the “Let’s connect you to a network” screen with the greyed-out Next button:
1. press Shift + F10 to launch a command prompt.
2. In the command prompt, cd to C:\windows\system32\oobe and run bypassnro.cmd
This will execute the OOBE BypassNRO command, bypassing the network requirement during Windows 11 setup.
the OOBE restarts, you enter the details again till you get to the "Let's connect you to a network"
down the bottom, choose " I don't have internet" (new option created by using bypassnro.cmd)
Enter the name of the account you will use "Admin" (or whatever you want)
Enter a password (you will need this so record somewhere.)
add your security passwords. make them something you can remember and record them.
privacy settings - disable all
OS will now configure itself and will log in with account details you gave
Log into the VM, install VMWare tools (you may need to initiate manually from the Drive after running it from the vm tab, restart when prompted, log in.
enable shared folders and map as a network drive
vmware tools - enable synch time with host
enable autologin and enter the creds for the local admin you created.
change network to bridged and replicate
from the host PC - copy osprovision from C:\Program Files (x86)\Caphyon\Advanced Installer 22.4\bin to the VM via shared folders, rename it to add the version for later reference, copy it to the desktop of your VM (so it is obvious what version you have in future) and run it and install.
it won't say when it is finished, just give it a minute or so and check C:\Program Files (x86)\Caphyon\Advance Installer remote tools " for the RexecServerUserApp.exe" file.
restart your guest and log back in (autologin should do that)
configure any basic options the way you prefer.
Connect the network - Do updates (do them as quick as you can and disconnect network again or you may get spammed with various apps
in vm settings, change network adapter to connected, bridged and replicate
wait for network to connect with internet
check for updates - they should start installing once found.
While you wait for updates to apply, go to settings -
time and language - date and time - set the time zone to Brisbane and choose to Sync Time - verify you now have the right time.
time and language - Language and Region - set display language to English Australia
Privacy and Security - searching windows - advanced indexing options - Modify
Untick everything (start menu won't be able to be removed)
Restart and log in after the updates complete
recheck for any more updates, apply and restart till you get no more.
go to settings - apps - startup and disable all except vmware tools core service.
in Windows Security - disable all Antivirus and firewall settings.
go to your vm settings and disable network.
restart / log in (autologin should happen).
Services - locate, stop and disable Windows Search
ensure network is now off - if not use vmware settings to remove the checkbox for "Connect" on the network settings.
in vmware settings, go to hardware and delete the TPM
under options - access control, click remove encryption
under Options - Advanced - tick "Disable side channel mitigations for Hyper-V enabled Hosts.
create a snapshot.

Step 2 - configure Advanced Repackater
power up and log in (autologin)
you will need an exe to start the process.
open advanced repackager, click "Capture Setup" button. point at your exe
on the toolbar, choose "Start in VM" - choose the options for "Edit Virtual Machine Profiles"
Click Vmware Servers - localhost, then click the plus at the bottom
virtualization product - vmware workstation
virtual machine - browse to the vmx for your vm
vm snapshots - current state
username and password - enter the admin creds you used
OK
***********************************************************************************
NOTES - bypassnro.cmd is used in Win 1124H2, earlier versions used "OOBE\BYPASSNRO",
It appears Microsoft may be removing both options in future windows, so you'll need a new option then.
https://windowsforum.com/threads/micros ... 11.358676/
Catalin
Posts: 7492
Joined: Wed Jun 13, 2018 7:49 am

Re: Repackager - The selected Virtual Machine was not found on the virtualization server

Hello Paul,

Thank you very much for your followup on this and for sharing the solution with us!

I am sure further users facing a similar scenario will find this useful.

Glad everything is working as expected now!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”