-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathu24-install.sh
More file actions
18 lines (18 loc) · 1.08 KB
/
u24-install.sh
File metadata and controls
18 lines (18 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/bash
sudo apt update && sudo apt upgrade -y && sudo apt install apt-transport-https ca-certificates -y
sudo hostnamectl set-hostname acs.local
sudo sed -i "s/^127\.0\.1\.1.*/$(hostname -I | awk '{print $1}') acs.local acs/" /etc/hosts
echo 'deb http://download.cloudstack.org/ubuntu noble 4.20' | sudo tee /etc/apt/sources.list.d/cloudstack.list
wget -O - http://download.cloudstack.org/release.asc | sudo tee /etc/apt/trusted.gpg.d/cloudstack.asc
sudo apt update && sudo apt install cloudstack-management -y
sudo apt install mysql-server -y
sudo mysql -e "CREATE DATABASE cloud;"
sudo mysql -e "CREATE DATABASE cloud_usage;"
sudo mysql -e "CREATE USER cloud@localhost identified by 'dft.wiki';"
sudo mysql -e "CREATE USER cloud_usage@localhost identified by 'dft.wiki';"
sudo mysql -e "GRANT ALL ON *.* to cloud@localhost;"
sudo mysql -e "GRANT process ON *.* TO cloud@localhost;"
sudo mysql -e "FLUSH PRIVILEGES;"
sudo cloudstack-setup-databases cloud:dft.wiki@localhost --schema-only && sudo cloudstack-setup-management
sleep 5
sudo tail -f /var/log/cloudstack/management/management-server.log