OVH virtual server
General steps
Set up proxmox server
- Open soyoustart.com console, select dedicated server in list and click on Install button.
- Select VPS Proxmox VE 5 (64bits) image and follow setup instructions.
- When server is installed (or reinstalled) receive informational e-mail about initial password for root user of the server.
- Log into server with SSH.
Add normal user e.g. student with sudo privileges on server:
useradd -s /bin/bash student
usermod -a -G sudo student
passwd studentInstall sudo:
apt install sudo- Check that you can log into server with created user and can execute sudo.
Disable password for root user:
passwd -d rootFix 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-subscriptionImport keys for proxmox repository:
wget -O- "http://download.proxmox.com/debian/key.asc" | apt-key add -Delete broken repository entry:
rm /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-install-repo.listUpgrade server:
apt update; apt dist-upgrade; apt autoremove; apt cleanReboot server:
reboot
Configure public IP addresses
Open soyoustart.com console.
- Select tab IP.
- If necessary, click on Order IPs and follow instructions, to request more IP for your virtual server.
- Click on Manage IPs and + to extend necessary address block.
- Select particular address and click on Add virtual MAC on it and similarly to all other available IP addresses.
Configure proxmox virtual machine
- Open proxmox management console (e.g. https://10.1.1.1:8006/.
- Create new virtual machine and set proper MAC address for it from soyoustart.com console settings settings.
If necessary select local storage, then content and upload Ubuntu 18.08 installation CD image into it.
- Set CD-DVD drive to ISO image and start virtual machine.
- Follow setup wizard and in network settings choose Do not configure network at this time.
- After installation and reboot of virtual machine, open console to it.
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: truewhere:
- 158.69.148.110 is address of virtual machine
- 158.69.25.xxx is address of proxmox supervizor machine with 254 as last octet.
- Run netplan try to check and apply network settings of virtual machine. Apply changes by pressing Enter
- Reboot virtual machine and check that you can reach it using public IP address.
Links
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
Created by Valdis Vītoliņš on 2019-05-27 13:04
Last modified by Valdis Vītoliņš on 2021-04-13 14:30