cVM is a separate application for connecting to virtual machines. cVM can be started using switches in a command prompt or from within ProHVM. If you are using HVM on a Free Microsoft Hyper-V Server (Core) cVM will be the only means of connecting to virtual machines!
cVM does not support “Credentials pass through” so on a local server where you do not have credentials assigned to your registered server in ProHVM, you will be asked to supply a username and password for the connection. You can however choose to store the credentials for all future connections to all VM’s on the host by checking the “Save credentials” checkbox.
To start a connection using cVM from within ProHVM, hold down the shift key and double click the VM or hold down the shift key and select “Connect” from the VM’s right click menu.
To start a connection using the cVM GUI, type cVM in a command prompt. This will open the connect dialog.
Here you can set the parameters needed for the connection.
To start a RDP session to a remote computer, specify Host name or IP, user name, password and click on “OK”.
To Connect to a VM on a host , specify Host name or IP, user name, password, check “Connect to VM” and select the VM in the dropdown.
When connecting to a local Hyper-V Host use “.” as hostname with blank usernamne and password
Using cVM switches
cVM can take all settings as parameters (switches). This way you can create shortcuts to VM’s or connect to a VM at login by putting it in auto start or in registry.
The computer or the host of the VM to connect to
The user to connect as.
The user password.
Port to use for connection for usually 3389 for RDP and 2179 for VM’s.
The name of the VM. This is not the Friendly name but the GUID of the VM (“13DFE6AD-BD6C-441A-8CFA-7FACBB41D702”).
The Friendly name of the VM. It is recommended to use VMName instead. When using Element name cVm must contact Hyper-V to get the Name of the VM. This will take some extra time…
1 to start connection in full screen mode. Default is 0.
1 to pin the connection bar. Default is 1.
1 to start the VM if it is stoped. Default is 0.
An easy way of getting the switches needed is to open cVM.exe and fill in all the parameters and the copy the text of the “CMD line” edit (at the very bottom of the connection dialog). If you open cVM from ProHVM (by holding down SHIFT-Key while selecting connect) most parmeters will already be automatically filled in.
Don’t forget to change your password, if needed! It will show up as Password=“«YOURPASS»” in the “ CMD line” field. Also if you are connecting to a local Hyper-V host, change the host parameter to “.”
To connect to a host using RDP:
cVM.exe Host=“192.168.1.103” Username=“Administrator” Password=“Password”
To connect to a VM on Local Hyper-V Server using VMName:
cVM.exe Host=“.” VMName=“13DFE6AD-BD6C-441A-8CFA-7FACBB41D702”
Connect to VM on a local Hyper-V Host using ElementName in FullScreen:
cVM.exe Host=“.” ElementName=“MyVMFriendlyName” FullScreen=1
Connect to a remote Hyper-V Server:
cVM.exe Host=“192.168.1.103” Username=“Administrator” Password=“password” VMName=“13DFE6AD-BD6C-441A-8CFA-FACBB41D702” FullScreen=“1” PinConnectionBar=“0”