Skip to content
This repository provides examples to launch CloudN via automation scripts.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This script automates the initial process of setting up CloudN's IP address, network mask, default gateway, DNS servers and proxy settting. With this script, you do not need to manually go through the Booting Up and Initial Configuration section in CloudN startup guide.

Launch CloudN VM

Before you can use the script for the initial process, CloudN virtual machine has to be launched. Below is a sample ovftool command to launch CloudN VM from a Window's desktop using vmware OVF Tool. (

Usage: ovftool [options] <source> [<target>]

<source>: Source URL locator to an OVF package 
<target>: Target URL locator which specifies either a file location, or on ESX Server
     -ds: Target datastore name for a VI locator  
     -n : Specifies target name (CloudN VM name)	 
c:\Program Files\VMware\VMware OVF Tool>ovftool -ds="cwchang-datastore" -n="CloudNVMName" c:\Users\Administrator\Desktop\CloudN-ovf-051517\CloudN-ovf-051517\CloudN-ovf-051517.ovf vi://<ESXi_username>:<ESXi_password>@<ESXi_IP>

The output of the above command is as below

Opening OVF source: c:\Users\Administrator\Desktop\CloudN-ovf-051517\CloudN-ovf-051517\CloudN-ovf-051517.ovf
The manifest validates
Opening VI target: vi://root@
Deploying to VI: vi://root@
Transfer Completed
Completed successfully

Automating CloudN Booting up via PowerCLI Script

VMware vSphere PowerCLI provides a Windows PowerShell interface to the vSphere API. vSphere PowerCLI includes PowerShell Cmdlets for administering vSphere components.

  1. Download vSphere PowerCLI package from
  2. Select "Downloads" and search for "vSphere PowerCLI"�.
  3. Make sure the PowerCLI version match your vSphere Client/ESXi host version. For example, if your vSphere Client is 6.5.1, you should select PowerCLI 6.5.1.
  4. Install in PowerCLI package on your vSphere Client - Windows Server.
  5. This will create a shortcut "VMware vSphere PowerCLI"� from your Window's desktop.
  6. Run this program "VMWare vSphere PowerCLI" as administrator privilege.
  7. From PowerCLI environment type "set-executionpolicy RemoteSigned" and answer [A] Yes to All.

Git Clone PowerCLI Script

git clone

Run PowerCLI script

  1. The script assumes you already downloaded CloudN OVF files onto your vSphere client.

  2. Use vSphere Client to launch the CloudN OVF as you would normally do for any VM and give the VM a name. For example, CloudN-ovf-061517. (To launch the VPM, go to File -> Deploy OVF Template, select the location and the OVF file.) Note, this may take up to an hour if your host machine does not have SSD drive.

  3. Once the VM is finished Deploying and powered on, go to your Window's PowerCli host, click and run the VMware vSphere PowerCLI shortcut as an administrator.

  4. From PowerCLI environment type "set-executionpolicy RemoteSigned" and answer [A] Yes to All.

  5. Do cd to the location of the powercli script

  6. Type .\powercli_launch.ps1 and customize the following passing parameters:

    powercli_launch [-help] | [-exsi_params [...]] [-cloudn_network [...]] [-cloudn_dns [...]] [-cloudn_proxy [...]] "
    -help               : display this help"
    -exsi_params    [ ] : ESXi host parameters (ip address, username, password)" 
    -cloudn_network [ ] : CloudN networking parameters (ip address, network, gateway)"
    -cloudn_dns     [ ] : List of domain nameservers (DNS #1 ip address, DSN #2 ip address)"
    -cloudn_proxy   [ ] : List of http and https proxy servers [http_proxy, https_proxy]"
                           i.e.   -cloudn_proxy (,"
    -vm_name            : virtual machine name deployed by ovftool or vSphere Client"

Sample command with proxy disabled

.\powercli_launch.ps1 -esxi_params ("","root","password") -cloudn_network ("","","") -cloudn_dns ("",") -vm_name "My-CloudN"

Sample command with proxy enabled

.\powercli_launch.ps1 -esxi_params ("","root","password") -cloudn_network ("","","") -cloudn_dns ("",")  -cloudn_proxy (, -vm_name "My-CloudN"
  1. At the completion of the script, you should be able to access CloudN from its web console. Open a browser, and type https://CloudN-private-ip-address, where CloudN-private-ip-address is $cloudn_ip in the above customization code.

CloudN Documentation

You can’t perform that action at this time.