Note, that this recipe is not updated long time and could be outdated!
Got it.

OVH virtual server

This page describes how to add new publicily available Ubuntu 18.04 virtual server on physical OVH server running proxmox.

General steps

Set up proxmox server

  1. Open console, select dedicated server in list and click on Install button.
  2. Select VPS Proxmox VE 5 (64bits) image and follow setup instructions.
  3. When server is installed (or reinstalled) receive informational e-mail about initial password for root user of the server.
  4. Log into server with SSH.
  5. Add normal user e.g. student with sudo privileges on server:

    useradd -s /bin/bash student
    usermod -a -G sudo student
    passwd student
  6. Install sudo:

    apt install sudo
  7. Check that you can log into server with created user and can execute sudo.
  8. Disable password for root user:

    passwd -d root
  9. Fix packages for the server. Open file /etc/apt/sources.list and put following content into it:

    #                   OFFICIAL DEBIAN REPOS                    

    ###### Debian Main Repos
    deb stable main contrib non-free
    deb-src stable main contrib non-free

    deb stable-updates main contrib non-free
    deb-src stable-updates main contrib non-free

    deb stable/updates main
    deb-src stable/updates main

    deb stretch-backports main
    deb-src stretch-backports main

    #                      UNOFFICIAL  REPOS                       

    ###### 3rd Party Binary Repos
    deb [arch=amd64] stretch pve-no-subscription
  10. Import keys for proxmox repository:

    wget -O- "" | apt-key add -
  11. Delete broken repository entry:

    rm /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-install-repo.list
  12. Upgrade server:

    apt update; apt dist-upgrade; apt autoremove; apt clean
  13. Reboot server:


Configure public IP addresses

  1. Open console.

    1. Select tab IP.
    2. If necessary, click on Order IPs and follow instructions, to request more IP for your virtual server.
    3. Click on Manage IPs and + to extend necessary address block.
    4. Select particular address and click on Add virtual MAC on it and similarly to all other available IP addresses.

    Configure proxmox virtual machine

    1. Open proxmox management console (e.g.
    2. Create new virtual machine and set proper MAC address for it from console settings settings.
    3. If necessary select local storage, then content and upload Ubuntu 18.08 installation CD image into it.

      Don't use page with ubuntu-18.04.2-live-server-amd64.iso image, because it requires working connection to internet to set it up.

      Go to and use 64-bit PC (AMD64) server install image instead. You can install Ubuntu 18.04 without an internet connection when using the "standard" ISO. (not the live server)

    4. Set CD-DVD drive to ISO image and start virtual machine.
    5. Follow setup wizard and in network settings choose Do not configure network at this time.
    6. After installation and reboot of virtual machine, open console to it.
    7. Set up network settings using Netplan — open /etc/netplan/01-netcfg.yaml file and change/add
      following lines, that final file looks like this:

        version: 2
        renderer: networkd
                addresses: [,,]
            optional: true
                    - to:
                      on-link: true


      • is address of virtual machine
      • is address of proxmox supervizor machine with 254 as last octet.
    8. Run netplan try to check and apply network settings of virtual machine. Apply changes by pressing Enter
    9. Reboot virtual machine and check that you can reach it using public IP address.

Tags English Serveris
Created by Valdis Vītoliņš on 2019-05-27 13:04
Last modified by Valdis Vītoliņš on 2021-04-13 14:30
Xwiki Powered
Creative Commons Attribution 3.0 Unported License