cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Automated Application Converter - Failed to connect to VM

[4:05:44 TESTPC - APP Launching Package...
[4:05:44 TESTPC - APP Reverting and starting virtual machine.
[4:14:20 TESTPC - (none)] Error 4310 controlling virtual machine: Failed to connect to VM: 0x0002 (LE:0002 XE:0078 in CVirtualMachineController::Connect:165)
[4:14:20 Host System - (none)] Done launching app

Using Hyper-V, machine starts up, nothing happens (except login sceen) and then it shuts down.

Any suggestions would be much appreciated.
(8) Replies
Hi There,

The last time I ran into something like this, we came to the tentative conclusion that the issue was to do with the Hyper V server not running Server 2008 R2, which has the full set of API's that AAC uses to control VM's.

Are you on the baseline Server 2008?
It's 2008 R2 Standard SP1.
Update, now on VMWare Workstation (using domain user credentials to log in):
[2:19:59 MACHINE APP] Launching Package...
[2:20:00 MACHINE APP] Reverting and starting virtual machine.
[2:20:01 MACHINE APP] VirtualMachine: Starting up image....
[2:20:03 MACHINE APP] VirtualMachine: Waiting for image to finish booting....
[2:20:50 MACHINE APP] VirtualMachine: Logging in...
[2:21:00 MACHINE APP] VirtualMachine: Logging in interactively...
[2:25:14 MACHINE APP] VirtualMachine: VIX Error: 3034


http://www.vmware.com/support/developer/vix-api/vix17_reference/
3034 – VIX_E_INTERACTIVE_SESSION_NOT_PRESENT
The specified guest user must be logged in interactively to perform this operation.


In reality the login is not happening.

Test 2, using local vm user credentials to log in:
[2:19:59 MACHINE APP] Launching Package...
[2:20:00 MACHINE APP] Reverting and starting virtual machine.
[2:20:01 MACHINE APP] VirtualMachine: Starting up image....
[2:20:03 MACHINE APP] VirtualMachine: Waiting for image to finish booting....
[2:20:50 MACHINE APP] VirtualMachine: Logging in...
[2:21:00 MACHINE APP] VirtualMachine: Logging in interactively...
[2:25:14 MACHINE APP] VirtualMachine: VIX Error: 3034
[2:29:19 MACHINE - (none)] Error 4310 controlling virtual machine: Failed to connect to VM: 0x0775 (LE:0775 XE:0bda in CVirtualMachineController::Connect:165)
[2:29:19 Host System - (none)] Done launching app
Test 3 on a different Hyper-V server, Server 2008 R2 Enterprise SP1 - Same results.
Sounds like maybe the Autologon is not properly working after the image boots up.

Basically, what you should see happening is that:

--The machine goes from being powered off (it needs to be off when you take the snapshot) to booting up
--The machine automatically logs in interactively with the credentials specified
--The guest agent window is shown
--At this point, AAC can connect to the machine and begin repackagin.

It sounds like one of these steps isn't taking place. Is that the case?
Cary R wrote:
Sounds like maybe the Autologon is not properly working after the image boots up.

Basically, what you should see happening is that:

--The machine goes from being powered off (it needs to be off when you take the snapshot) to booting up
--The machine automatically logs in interactively with the credentials specified
--The guest agent window is shown
--At this point, AAC can connect to the machine and begin repackagin.

It sounds like one of these steps isn't taking place. Is that the case?

The step marked in red is failing.
This seems like more a failure with the VM setup.

Try running VMCfg.exe again and see if restarting afterward (without running AAC) logs in successfully. This part of the process is set up by VMCfg.exe but doesn't depend on AAC's functionality to work; it's a standard windows feature.

Are you using the same account that you're able to manually log on with, by the way? Also, how are you specifying the credentials when you're giving them to VMCfg.exe?
Cary R
You are absolutely correct, I've been missing configuration for the client VM.

Thank you for great suggestions.