.. _Creating DotNetNuke Containers: Creating DotNetNuke Containers ============================== This command relies on a pre-created CSV for the container (see :ref:`Managing Persistent Storage Volumes`). You can also create a persistent volume along with the container. To do this, replace the ``--filesystem`` parameter with ``--disk pool=,size=``, e.g., ``--disk pool=27a0ce77,size=3`` (the size is in gibibytes). The volume name will automatically match the container name. #. Create a Windows container based on the DotNetNuke image: :: $ virt-install --connect docker://node2.winctpreview.com --name vpnclient_winct02dnn --memory 3072 --boot init=* --os-variant none --console none --disk bus=virtio,path=virtuozzo/dnn:techpreview --network type=network,mac=C4:37:72:75::,source=vSwitch1 --filesystem C:/ClusterStorage/CSV_vpnclient_winct02dnn/,C:/Data/ --noreboot --noautoconsole Starting install... Domain creation completed. You can restart your domain by running: virsh --connect docker://node2.winctpreview.com start vpnclient_winct02dnn This command creates the following container: - Location: ``node2.winctpreview.com`` - Name: ``vpnclient_winct02dnn``. The name must be unique on the node. For ease of filtering, replace ``vpnclient`` here and everywhere else with your username. - MAC: ``C4:37:72:75::``. To avoid MAC conflicts, replace ```` and ```` with the number from your username and container index, respectively. For example, C4:37:72:75:01:02 if your username is ``vpnclient1`` this is the second container you create. - RAM: 3072MB - Network: DHCP from the virtual switch ``vSwitch1`` - Persistent storage: ``C:\\ClusterStorage\\CSV_vpnclient_winct02dnn\\`` - Base image: ``virtuozzo/dnn:techpreview`` #. Start the container: :: $ virsh --connect docker://node2.winctpreview.com start vpnclient_winct02dnn Domain vpnclient_winct02dnn started #. Find out the container IP address. For example: :: $ /usr/share/winrm-docker-deploy/run-win-cmd node2.winctpreview.com vpnclient_winct02dnn cmd /c 'ipconfig | find "IPv4"' node2.winctpreview.com: cmd /c ipconfig | find "IPv4" IPv4 Address. . . . . . . . . . . : 10.37.130.160 If you get ``169.254.<...>``, the container is still waiting for an IP address from DHCP. Please run the command again in a minute. #. Visit the container IP address in a web browser. You will be redirected to the login page at \http:///Default.aspx. Log in with the default username ``host`` and password ``dnnhost``. #. Change the password for the user ``host``. You can now log in with the new credentials.