cloudstack
cloudstack
Ip r
sudo nano /etc/netplan/01-network-manager-all.yaml
network:
version: 2
renderer: NetworkManager
ethernets:
eth0:
dhcp4: no
addresses: [192.168.43.128/24]
gateway4: 192.168.43.2
nameservers:
addresses: [8.8.8.8,8.8.8.4]
network:
version: 2
renderer: networkd
ethernets:
ens3:
dhcp4: no
dhcp6: no
bridges:
cloudbr0:
interfaces: [ens33]
dhcp4: no
dhcp6: no
addresses: [192.168.122.10/24]
gateway4: 192.168.122.1
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
server-id=1
innodb_rollback_on_timeout=1
innodb_lock_wait_timeout=600
max_connections=350
log-bin=mysql-bin
binlog-format = ROW
sudo mysql
CREATE DATABASE `cloud`;
CREATE DATABASE `cloud_usage`;
CREATE USER cloud@'localhost' identified by '123@Msql';
CREATE USER cloud@'%' identified by '1234@Sql';
GRANT ALL ON cloud.* to cloud@`localhost`;
GRANT ALL ON cloud.* to cloud@`%`;
GRANT ALL ON cloud_usage.* to cloud@`localhost`;
GRANT ALL ON cloud_usage.* to cloud@`%`;
GRANT process ON *.* TO cloud@`localhost`;
GRANT process ON *.* TO cloud@`%`;
sudo cloudstack-setup-management
sudo ufw allow mysql
sudo mkdir -p /export/primary
sudo mkdir -p /export/secondary
sudo nano /etc/exports
/export *(rw,async,no_root_squash,no_subtree_check)
http://192.168.43.128:8080/
Provide the default Credentials Username: admin Password: password
Step 1: sudo su
Step 2: su root
Step 3: passwd root
Step 3.1: Provide the root password as: 123
Step 4: exit
Step 5: Close the terminal
Step 6: Open a fresh terminal
Step 7: su root
Step 7.1: Enter the password that is set as per 3.1 i.e., 123
Step 8: apt install quota