Tech:Proxmox

Cloud
1. Install by changing Type Of OS to "Basic".

2. Select 'Debian 11 "Bullseye" - debian11 (Linux)' from the list and proceed to install, make sure to select your ssh key.

3. When you get to the end, enter the server name and select your ssh key from the dropdown.

4. After the server has come back up, login by doing.

5. Edit  and remove   section, then add.

6. Edit, changing   to false.

7. Run.

8. Run.

9. Run the following.

10. Run the following.

11. Empty  and enter the following:

auto lo iface lo inet loopback dns-nameservers 213.186.33.99
 * 1) This file is generated from information provided by
 * 2) the datasource.  Changes to it will not persist across an instance.
 * 3) To disable cloud-init's network configuration capabilities, write a file
 * 4) /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
 * 5) network: {config: disabled}

auto eth0 iface eth0 inet dhcp mtu 1500

12. Run.

13. Empty  and insert the following:


 * 1) This file describes the network interfaces available on your system
 * 2) and how to activate them. For more information, see interfaces(5).

auto lo iface lo inet loopback
 * 1) The loopback network interface

iface eno1 inet manual

auto vmbr0 iface vmbr0 inet static address netmask 255.255.255.0 broadcast  gateway bridge-ports eno1 bridge-stp off bridge-fd 0
 * 1) IPV4 main host addresse, replace address, broadcast, and gateway with the correct IP.

iface vmbr0 inet6 static address netmask 128 gateway post-up /sbin/ip -f inet6 route add dev vmbr0 post-up /sbin/ip -f inet6 route add default via pre-down /sbin/ip -f inet6 route del dev vmbr0 pre-down /sbin/ip -f inet6 route del default via
 * 1) IPV6 addresses, replace address, gateway with correct IP

source /etc/network/interfaces.d/*
 * 1) Set this one last, so that cloud-init or user can
 * 2) override defaults.

14. Reboot the server.

15. Run  and set the password, make sure it is secure.

16. Run the following "cd /var/lib/vz/template/iso ; wget https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-11.5.0-amd64-netinst.iso" (note that this may be removed, in which case bump version like 11.5.0 -> 11.6.0).

17. On the main cluster host, press join information and copy the information.

18. Go to https://localhost:8006.

19. Enter login details, click on "Datacenter" then "Cluster".

20. Click on "Join Cluster".

21. Where it says "Join information" copy what’s in the text box.

22. Now go onto the other cloud virt (for instance, cloud2).

23. Go to https://localhost:8006.

24. Click "Join Cluster".

25. Paste into the "Join information" text box (the details you copied from cloud1).

26. Run  required for VPS.

VPS
search miraheze.org nameserver 8.8.8.8 deb http://ftp.uk.debian.org/debian/ bullseye main deb-src http://ftp.uk.debian.org/debian/ bullseye main deb http://security.debian.org/debian-security bullseye/updates main deb-src http://security.debian.org/debian-security bullseye/updates main deb http://ftp.uk.debian.org/debian/ bullseye-updates main deb-src http://ftp.uk.debian.org/debian/ bullseye-updates main source /etc/network/interfaces.d/*
 * 1) In the OVH UI: assign a failover IPv4 address and IPv6 address for the new VM. Ensure the MAC address of the network adapter of the new VM matches the vMAC address assigned for the failover IPv4 address in OVH.
 * 2) Run the following.
 * 3) Go to https://localhost:8006 (and accept the invalid certificate as the connection will be secure due to SSH) and login using your account and password.
 * 4) Create a VM using the UI:
 * 5) * ISO image: local, debian-XX-X.X-amd64-DVD-1.iso
 * 6) * Type: Linux, 5.x - 2.6 Kernel
 * 7) * SCSI Controller: VirtIO SCSI single
 * 8) * Hard Disk: raw disk image, write back (unsafe) cache, SSD emulation and IO thread on (advanced)
 * 9) * Ballooning: on
 * 10) * Network: vmbr0, MAC address equal to vMAC for failover IP (or vmbr1 if internal only)
 * 11) Once VM is setup, click start and go through the installation, when you get onto the network step enter the following:
 * 12) * IP address: the failover IP (or the allocated internal IP)
 * 13) * Netmask = 255.255.255.255 (or /32)
 * 14) * Default gateway: leave empty! Do not enter the gateway here yet, Debian won't understand it.
 * 15) * Example: on cloud5 (main IP 51.77.117.189), you want to give a VM the failover IP 51.195.236.255. Since this VM is on cloud5, the default gateway will be 51.77.117.254
 * 16) After install: empty , insert the following in it (don’t forget to change the IPv4/IPv6 addresses) and reload the network configuration (  &&  ).
 * 17) In  :
 * 1) In  :
 * 1) Run puppet. Do not log out before your user account is set up by puppet; otherwise you'll have a hard time getting back in.
 * 1) This file describes the network interfaces available on your system
 * 2) and how to activate them. For more information, see interfaces(5).

auto lo iface lo inet loopback
 * 1) The loopback network interface

allow-hotplug ens18 auto ens18 iface ens18 inet static address  gateway  netmask 255.255.255.255

iface ens18 inet6 static address /64 gateway  Default gateway IPv4: first three octets of the cloud's main IP address + '.254'. Example: on cloud5 (main IP 51.77.117.189), you want to give a VM the failover IP 51.195.236.255. Since this VM is on cloud5, the default gateway will be 51.77.117.254

Instructions for getting the right IPv6 addresses: If you want to add an internal IP in addition to public interfaces, you need to append the following to the above network/interfaces config file: allow-hotplug ens19 auto ens19 iface ens19 inet static address  netmask 255.0.0.0
 * 1) Each cloud server has a /64 assigned by OVH. For example, for cloud5 this is.
 * 2) In the OVH UI, you have assigned an IPv6 address for the new server, for example:.
 * 3) The last address in the /64 is the IPv6 gateway. In the example IP from 2), this would be.