1. The first step is to download a template for the operating system you wish to install. These are often available on the OpenVZ website. Use the `wget` command to download it from the command line.
1. Once you have your template, you can use the `vzctl create` command to create a new container. You’ll need to specify a unique ID number for the container, as well as the name of the template you’ve downloaded.
Example:
```
vzctl create 101 —ostemplate ubuntu-14.04-x86_64
vzctl set 101 —onboot yes —save
```
1. Set a hostname and IP address for your VPS. Replace `myvps.example.com` and `192.0.2.101` with your desired hostname and IP address.
```
vzctl set 101 —hostname myvps.example.com —save
vzctl set 101 —ipadd 192.0.2.101 —save
```
1. Set the nameservers for your VPS. They would typically be given to you by your VPS provider, but you can use Google’s public DNS servers as a placeholder for now.
```
vzctl set 101 —nameserver 8.8.8.8 —nameserver 8.8.4.4 —save
```
1. Finally, start your VPS and enter it with the following commands:
```
vzctl start 101
vzctl enter 101
```
Note that `101` in the above commands is the unique ID number for your container. Replace it with the number you chose when creating the container. With OpenVZ you don’t actually install an OS, rather you create a container with a pre-made template.
Remember that all of these commands need to be executed as the root user or prefixed with `sudo` if you have sudo privileges. If you are not comfortable running these commands directly, there are OpenVZ control panels available, such as SolusVM, which make the process of creating and managing containers more user-friendly.