Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- New Apache Cloud stack Installation Documentation
- CentOS 7.9
- HyperV
- References:
- 1. https://github.com/MicrosoftDocs/Virtualization-Documentation/blob/master/hyperv-tools/Nested/Enable-NestedVm.ps1
- 2. http://docs.cloudstack.apache.org/en/4.15.0.0/quickinstallationguide/qig.html
- 3. https://technologyrss.com/how-to-install-apache-cloud-stack-v4-15-on-centos-7/
- 4. http://mirror.cc.columbia.edu/pub/linux/centos/7.9.2009/isos/x86_64/
- 5. https://www.thomasmaurer.ch/2016/05/set-up-a-hyper-v-virtual-switch-using-a-nat-network/
- Setup Environment
- 1. Download the ISO from Reference 4. This installation guide will utilize the DVD.iso (4GB).
- 2. Create a new generation 2 virtual machine on Hyper-V and put your newly downloaded .iso on the boot configuration. Be sure to give yourself an adequate amount of space as virtual machines will be installed ontop of this system. Also, have at least 4GB of ram and multiple processors.
- 3. Go to Reference 5 and create a virtual switch that will be used for this virtual machine. This process will create a Hyper-V NAT switch that does not utilize DHCP, which is crucial to the installation of CloudStack. For this installation, I will use the IP 192.168.236.1 /24
- 4. Run the script in reference 1 on your virtual machine. This will enable nested virtualization for that VM.
- 5. Run the installer. Select Server w/ GUI. User: upbicst , Panther$ . Root: upbcist , Panther#
- 6. Manually configure the internet settings on installation. For example, I made my IP 192.168.236.2 /24 w/ gateway being 192.168.236.1 DNS: 8.8.8.8 , 8.8.8.4
- 7. Update your system: “yum -y upgrade.”
- 8. “yum install bridge-utils net-tools -y.”
- 9. “nano /etc/sysconfig/network-scripts/ifcfg-cloudbr0”
- 10. Add the following (replace IP and gateway with your own)
- 11. “nano /etc/sysconfig/network-scripts/ifcfg-eth0”
- 12. add BRIDGE=cloudbr0 and delete unnecessary lines to make the file look like this:
- 13. “systemctl enable network”
- 14. “systemctl restart network” (verify with “systemctl status network”)
- 15. *If fail, disable network manager. “Systemctl stop NetworkManager “, “systemctl disable NetworkManager”. Verify connection using “systemctl status network” If you get the errors/notices “RTNETLINK answers: File Exists” then run the following command on both interfaces: “ip addr flush dev cloudbr0”
- 16. “hostname –fqdn” (check host name)
- 17. “nano /etc/hosts”
- 18. Comment out ::1 and add your ip and new host name like so:
- 19. Check again to make sure it worked. If it doesn’t, trying “Hostnamectl set-hostname” will change it, but that might mean your hosts file is not setup correctly.
- 20. We need to disable selinux. Run “setenforce 0”
- 21. “nano /etc/selinux/config”
- 22. Set SELINUX=disabled
- 23. Reboot, verify internet connection
- 24. Now we install NTP. “yum -y install ntp”
- 25. “systemctl enable ntpd , systemctl start ntpd , systemctl status ntpd”
- 26. “nano /etc/yum.repos.d/cloudstack.repo” Add the following:
- 27. “yum -y install nfs-utils”
- 28. “nano /etc/exports” add:
- 29. “mkdir -p /export/primary”
- 30. “mkdir /export/secondary”
- 31. “nano /etc/idmapd.conf” uncomment Domain and change it to Domain = [your domain]
- 32. “nano /etc/sysconfig/nfs” add the following:
- 33. “systemctl stop firewalld , systemctl disable firewalld”
- 34. Run the following:
- 35.
- 36. Install SQL:
- 37. “yum -y install mysql-server”
- 38. “nano /etc/my.cnf”
- 39. Add to [mysqld]:
- 40. “systemctl enable mysqld , systemctl start mysqld”
- 41. “ yum -y install mysql-connector-python”
- 42. “yum -y install cloudstack-management”
- 43. “alternatives –config java” – make sure java 11 is selected
- 44. Update sql pass: (try sudo)
- 45. ‘cloudstack-setup-databases cloud:<dbpassword>@localhost --deploy-as=root:<password>” $Panther
- 46. “cloudstack-setup-management”
- 47. /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m /export/secondary -u http://download.cloudstack.org/systemvm/4.15/systemvmtemplate-4.15.0-kvm.qcow2.bz2 -h kvm -F
- 48. “nano /etc/sysconfig/iptables”
- 49. Add the following:
- 50. “service iptables restart”
- 51. Configure kvm and libvirt:
- 52. “nano /etc/libvirt/qemu.conf” uncomment vnc_listen=0.0.0.0
- 53. “yum -y install epel-release”
- 54. “yum -y install cloudstack-agent”
- 55. “nano /etc/libvirt/libvirtd.conf”
- 56.
- 57. “nano /etc/sysconfig/libvirtd” – uncomment #LIBVIRTD_ARGS="--listen"
- 58. “systemctl restart libvirtd”
- 59. “lsmod | grep kvm” make sure kvm 1 is there
- 60. Go to http://[yourip]:8080/client to see if cloudstack is up
- 61. *If cloudstack agent does not work, try going to /etc/cloudstack/agent/agent.properties and manually configure the public nic to eth0 and private nic to cloudbr0*
- 62. When attempting to configure host, it fails. Attempts at fixing so far:
- a. Restarting libvirtd cloudstackagent
- b. Reinstalling cloudstack agent
- c. Generating uuid by using uuidgen and putting them in /etc/cloudstack/agent/agent.properties
- d. update-ca-trust force disable
- e. Turn all values to false when searching for ssl on cloudstack config
- f. Verified nothing in host table
- Shutdown cloudstack management, only error popping up is cant connect to 8250. Nc -v 192.168.236.2 8250 states connection refused.
Advertisement
Add Comment
Please, Sign In to add comment