diff --git a/source/Proxmox.tex b/source/Proxmox.tex index 55715e0..e2c4416 100644 --- a/source/Proxmox.tex +++ b/source/Proxmox.tex @@ -61,22 +61,10 @@ $\cdot$ Web based management interface for using the toolset The following servers will be deployed to host Proxmox and the KVMs: \begin{itemize} - %\item \texttt{waz-kvm-001.forksand.com} - %\item \texttt{waz-kvm-002.forksand.com} --- Virtual Machine Server 2 - %\item \texttt{waz-kvm-003.forksand.com} --- Virtual Machine Server 3 - %\item \texttt{waz-kvm-004.forksand.com} --- Virtual Machine Server 4 - %\item \texttt{waz-kvm-005.forksand.com} --- Virtual Machine Server 5 - %\item \texttt{waz-sun-001.forksand.com} --- Proxmox Web GUI 1 - %\item \texttt{waz-sun-002.forksand.com} --- Proxmox Web GUI 2 - %\item \texttt{forksand-hk1} --- Virtual Machine Node 1 - %\item \texttt{forksand-hk2} --- Virtual Machine Node 2 - %\item \texttt{forksand-hk3} --- Virtual Machine Node 3 - \item \texttt{forksand-shark1} --- Virtual Machine Node 1 - \item \texttt{forksand-shark2} --- Virtual Machine Node 2 - \item \texttt{forksand-shark3} --- Virtual Machine Node 3 - \item \texttt{forksand-shark4} --- Virtual Machine Node 4 - \item \texttt{forksand-the} --- Virtual Machine Testing Node 1 - \item \texttt{forksand-truck} --- Virtual Machine Testing Node 2 + \item \texttt{sf-001} --- Virtual Machine Node 1 + \item \texttt{sf-002} --- Virtual Machine Node 2 + \item \texttt{sf-003} --- Virtual Machine Node 3 + \item \texttt{sf-004} --- Virtual Machine Node 4 \end{itemize} %\subsection{Virtual Machine Servers} @@ -126,18 +114,18 @@ Todo check related, modify/replace unrelated %See scripts in \texttt{source/resources/ns24} for automation. \begin{enumerate} -\item Set up Linux Bridge (see fig. \ref{fig:shark2linuxbridge} p.\pageref{fig:shark2linuxbridge}): +\item Set up Linux Bridge (see fig. \ref{fig:sf-002linuxbridge} p.\pageref{fig:sf-002linuxbridge}): %Code: \\ \texttt{ssh -N -C -L 9869:localhost:9869 ns24} \item In workstation, open browser to urls: \\ -URL: \url{http://localhost:8001/}, for shark1 \\ -URL: \url{http://localhost:8002/}, for shark2 \\ -URL: \url{http://localhost:8003/}, for shark3 \\ -URL: \url{http://localhost:8004/}, for shark4 \\ +URL: \url{http://localhost:8001/}, for sf-001 \\ +URL: \url{http://localhost:8002/}, for sf-002 \\ +URL: \url{http://localhost:8003/}, for sf-003 \\ +URL: \url{http://localhost:8004/}, for sf-004 \\ See example at fig. \ref{fig:proxmox-gui-port}: \begin{figure}[!htb] - \includegraphics[keepaspectratio=true,height=1.10\textheight,width=1.00\textwidth,angle=0]{shark2/23.png} + \includegraphics[keepaspectratio=true,height=1.10\textheight,width=1.00\textwidth,angle=0]{sf-002/23.png} \label{fig:proxmox-gui-port} - \caption{Browse shark2 node, visible port No.} + \caption{Browse sf-002 node, visible port No.} \end{figure} Info: This goes through https with self-signed certificate. \item \texttt{Hostname} Changing the hostname and IP is not possible after @@ -216,7 +204,7 @@ Create --> Linux Bridge: vmbr0 XXX best way for this server? No subnet. -\textcolor[rgb]{0.80,0.00,0.00}{taken from forksand-shark4-bootstrap} +\textcolor[rgb]{0.80,0.00,0.00}{taken from sf-004-bootstrap} \begin{minted}{sh} source /etc/network/interfaces.d/* diff --git a/source/resources/apps/sharkfork-bootstrap/forksand-sf-proxmox b/source/resources/apps/sharkfork-bootstrap/forksand-sf-proxmox new file mode 100755 index 0000000..f99a347 --- /dev/null +++ b/source/resources/apps/sharkfork-bootstrap/forksand-sf-proxmox @@ -0,0 +1,215 @@ +#!/bin/bash +# forksand-sf-proxmox +# GPLv3+ +# This script does some initial setup and config +# Sets up Proxmox. + +# XXX DRAFT XXX + +exit 0 +# Run this on workstation: +# ssh -N -C -L 18021:localhost:8006 sf-001 +# ssh -N -C -L 18022:localhost:8006 sf-002 +# ssh -N -C -L 18023:localhost:8006 sf-003 +# ssh -N -C -L 18024:localhost:8006 sf-004 + +# Only logging into one at a time is possible. Session management :| XXX +# firefox https://localhost:18021 +# firefox https://localhost:18022 +# firefox https://localhost:18023 +# firefox https://localhost:18024 +# +# Login as root user via PAM +# Set up Enterprise Key, if used +# +# +cd /etc ; git add . ; git commit -a -m 'Initial Proxmox configuration' +# +# +# XXX Set up vmbr0 via web interface. +# +# Netwok +# sf-004 (host) --> System --> Network +# Fix subnet mask, IP in web gui. +# Create --> Linux Bridge: +# vmbr0 +# XXX best way for this server? No subnet. +# +# Set up ethernet ports +# XXX check name Disable enp2s0 (Autostart no) +# set up vmbr0 to the main IP, gateway, etc. +# Create Linux Bridge in web interface +# vmbr0 +#XXX THIS ISN'T CORRECT IP +# 174.128.244.192/26 +# 255.255.255.192 +# Autostart +# VLAN Aware +# Bridge: enp2s0 +# Comment Main bridge +# +# Set up 10.3.1.0 and 10.99.1.0 networks statically +# on secondary ethernet interfaces + +# Reboot! sf-004 (host) --> Restart + +# Configure Corosync +# Set up hosts +# XXX MAKE SURE NEW NODES GET ADDED TO EXISTING SERVER /etc/hosts +cat > /etc/hosts < Permissions --> Users +# Add user with Realm Proxmox VE authentication server. +# Give user root permissions: Datacenter --> Permissions --> Add --> User permission. +# Path: / User: j Role: Administrator +# XXX Or create admin group, add perms to that... +# Permissions --> Authentication. Set Proxmox VE authentication server to default. + +# Storage +# Datacenter --> Storage --> Edit local. Enable all content (add VZDump) +# +# DNS +# sf-003 (host) --> System --> DNS +# Add servers: +# 208.67.222.222 208.67.220.220 37.235.1.174 +# +# XXX Ceph