Creating a Virtualization Client from Command Line Interface (Microsoft Hyper-V)

Use XML to create a virtualization client for Microsoft Hyper-V server. You can run the XML from the command line, or automate the configuration by combining the command line operations in a script.

You can include the XML parameters in the xml file, or you can specify them on the command line when they frequently change. For more information on command line parameters and XML elements, see Command Line - Syntax.

Before You Begin

Log on to the CommServe host using qlogin command. For instructions, see Qlogin.


  1. Download the create_client_template.xml file to the computer where you will run the command.
  2. Open the create_client_template.xml file, add your specific parameters, and save the file.

    For information on supported instance XML parameters, see Available XML Parameters for Client Configuration.

  3. On the command line, go to <Software_Installation_Directory>/Base folder, and type the command.

    qoperation execute -af create_client_template.xml -client/clientName xxxxx -userName xxxxx -password xxxxx -entity/clientName xxxxx

    For example, the following command creates the HyperVClient1 Virtualization client, specifies node1 as the Hyper-V server and sets its credentials.

    qoperation execute -af create_client_template.xml -client/clientName node1 -userName domain\admin1 -password pass123 -entity/clientName HyperVClient1