Your account should have been granted access to privnet. Check that you have at least one network with this command:
cs listNetworks type=isolatedThe network id value is needed to attach a new NIC to your VM with this call:
cs addNicToVirtualMachine networkid=<network_id> virtualmachineid=<vm_id>If all works out, you should have a new interface on the pci slot 07 (ens7 on Ubuntu), you can configure the new interface like that:
sudo ip addr add 10.0.0.1/24 dev ens7
sudo ip link set ens7 up
Or you can create a configuration file to keep the interface configured between reboot:
# For Ubuntu 16.04 which names network interface as ensX
sudo -i
cat <<EOF > /etc/network/interfaces.d/privnet.cfg
auto ens7
iface ens7 inet static
address 10.0.0.1/24
EOF
ifup ens7
To remove the extra nic, just run:
cs removeNicFromVirtualMachine nicid=<nic_id> virtualmachineid=<vm_id>