Page MenuHomeMiraheze
Paste P244

(An Untitled Masterwork)
ActivePublic

Authored by Paladox on Dec 26 2019, 20:02.
Tags
None
Referenced Files
F1118053: raw.txt
Feb 5 2020, 01:23
F1118052: raw.txt
Feb 5 2020, 01:22
F1118021: raw.txt
Feb 4 2020, 22:40
F1117959: raw.txt
Feb 4 2020, 16:55
F1117958: raw.txt
Feb 4 2020, 16:54
F1117957: raw.txt
Feb 4 2020, 16:53
F1117621: raw.txt
Feb 3 2020, 15:35
F1106410: raw.txt
Dec 26 2019, 20:02
Subscribers
Step 1:
For the first step this is quite important, you need to remove `127.0.1.1` from /etc/hosts.
You also then need to add <main_ip> cloud[num].miraheze.org cloud[num].
Lastly edit /etc/cloud/cloud.cfg changing manage_etc_hosts to false.
Step 2:
For this step you need to run the following `echo "deb http://download.proxmox.com/debian buster pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list`.
You also have to run `wget http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg`.
Another thing you must run is`"deb http://download.proxmox.com/debian buster pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list`
Finally run the follow `wget http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg`
Step 3:
For the third step, run the follow `apt-get update -y && apt-get upgrade -y && apt-get install grub-common grub-efi-amd64-bin grub-pc grub-pc-bin grub2-common -y`
; Installs Proxmox
Lastly run `apt-get install proxmox-ve ntp ssh postfix ksm-control-daemon open-iscsi systemd-sysv`
Step 4:
For the fourth step, please add the following into /etc/network/interfaces.
# cloud1
auto vmbr0
iface vmbr0 inet static
address 10.0.1.1
netmask 255.255.255.0
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.0.1.0/24' -o eno1 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.1.0/24' -o eno1 -j MASQUERADE
# cloud2
auto vmbr0
iface vmbr0 inet static
address 10.0.2.1
netmask 255.255.255.0
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.0.2.0/24' -o eno1 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.2.0/24' -o eno1 -j MASQUERADE
After doing all that run `sudo service networking restart`
Step 5:
For the 5th step, run the following `cd /var/lib/vz/template/iso ; wget https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.2.0-amd64-netinst.iso`
Step 6:
Ssh into the cloud server and run the following `passed root`, setting the root password which you will use in the next step.
Step 6:
Go to https://<ip>:8006/ and login using root + password (you created in the previous step)
Create a vm with the specs you wants (for example, 1gb of ram, 1vcpu and also debian-10.2.0-amd64-netinst.iso as the image)
Step 7:
Start the VM, it'll boot to the iso as your vps hasn't been installed yet.
Step 8:
Go through the installation but when you get to the network make sure that you enter the network manually.
Address 10.0.1.2/24,
Gateway 10.0.1.1
hostname / dns 8.8.8.8
== See also ==
* https://www.howtoforge.com/tutorial/how-to-install-proxmox-ve-4-on-debian-8-jessie

Event Timeline

Paladox edited the content of this paste. (Show Details)
Paladox edited the content of this paste. (Show Details)
Paladox edited the content of this paste. (Show Details)