-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInstall.proxmox.opennebula.guacamole.on.almalinux.sh
49 lines (38 loc) · 1.53 KB
/
Install.proxmox.opennebula.guacamole.on.almalinux.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
# Update package lists
sudo dnf update -y
# Install dependencies
sudo dnf install epel-release -y
sudo dnf install wget curl git bzip2 zlib unzip jq -y
# Install Proxmox VE
wget https://repo.proxmox.com/stable/el/8/proxmox-ve-release-8.x.x.el8.noarch.rpm
sudo dnf install ./proxmox-ve-release-8.x.x.el8.noarch.rpm -y
sudo dnf install proxmox-ve -y
rm ./proxmox-ve-release-8.x.x.el8.noarch.rpm
# Install OpenNebula
curl https://downloads.opennebula.org/releases/stable/opennebula.repo | sudo tee /etc/yum.repos.d/opennebula.repo
sudo dnf install opennebula-server opennebula-tools opennebula-libvirt -y
# Configure OpenNebula (basic - edit /etc/one/oned.conf for further configuration)
sudo onehost enable
# Install Apache Guacamole
sudo dnf -y install httpd php php-mysqlnd
# Download Guacamole source
cd /tmp
wget https://sourceforge.net/projects/guacamole/files/guacamole/1.4.0/guacamole-1.4.0.tar.gz
tar -xvf guacamole-1.4.0.tar.gz
# Compile and install Guacamole
cd guacamole-1.4.0
./configure --enable-mysql
make
sudo make install
# Configure Guacamole (extensive configuration needed in /etc/guacamole)
sudo cp /tmp/guacamole-1.4.0/ guacamole.conf /etc/guacamole/
# Enable and start services
sudo systemctl enable httpd
sudo systemctl enable one-scheduler
sudo systemctl enable onehost
sudo systemctl start httpd
sudo systemctl start one-scheduler
sudo systemctl start onehost
echo "Proxmox VE, OpenNebula, and Guacamole installation complete!"
echo "**Remember to configure OpenNebula and Guacamole further for your specific needs.**"