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 soyoustart.com 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 http://deb.debian.org/debian/ stable main contrib non-free
    deb-src http://deb.debian.org/debian/ stable main contrib non-free

    deb http://deb.debian.org/debian/ stable-updates main contrib non-free
    deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free

    deb http://deb.debian.org/debian-security stable/updates main
    deb-src http://deb.debian.org/debian-security stable/updates main

    deb http://ftp.debian.org/debian stretch-backports main
    deb-src http://ftp.debian.org/debian stretch-backports main

    #------------------------------------------------------------------------------#
    #                      UNOFFICIAL  REPOS                       
    #------------------------------------------------------------------------------#

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

    wget -O- "http://download.proxmox.com/debian/key.asc" | 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:

    reboot

Configure public IP addresses

  1. Open soyoustart.com 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. https://10.1.1.1:8006/.
    2. Create new virtual machine and set proper MAC address for it from soyoustart.com console settings settings.
    3. If necessary select local storage, then content and upload Ubuntu 18.08 installation CD image into it.

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

      Go to http://cdimage.ubuntu.com/ubuntu/releases/18.04/release/ 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:

      network:
        version: 2
        renderer: networkd
        ethernets:
          ens18:
            addresses:
                    - 158.69.148.108/32
            nameservers:
                addresses: [4.4.4.4, 8.8.8.8, 1.1.1.1]
            optional: true
            routes:
                    - to: 0.0.0.0/0
                      via: 158.69.25.254
                      on-link: true

      where:

      • 158.69.148.110 is address of virtual machine
      • 158.69.25.xxx 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