Difference between revisions of "CentOS 8.x Cloudstack 4.15 Setup KVM host"
From Notes_Wiki
(Created page with "<yambe:breadcrumb self="Setup KVM Host">CentOS 8.x Cloudstack 4.15|Cloudstack 4.15</yambe:breadcrumb> =CentOS 8.x Cloudstack 4.15 Setup KVM host= To setup Cloudstack 4.15 KVM...") |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 8.x]] > [[CentOS 8.x virtualization|Virtualization]] > [[CentOS 8.x Cloudstack 4.15|Cloudstack 4.15]] > [[CentOS 8.x Cloudstack 4.15 Setup KVM host|Setup KVM host]] | |||
To setup Cloudstack 4.15 KVM host use following steps: | To setup Cloudstack 4.15 KVM host use following steps: | ||
Line 6: | Line 5: | ||
# Create bridge interface cloudbr0, cloudbr1, etc. based on interfaces to be used for cloud setup. | # Create bridge interface cloudbr0, cloudbr1, etc. based on interfaces to be used for cloud setup. | ||
#: Refer: [[CentOS 8.x Creating bridge interfaces (br0) for virtual hosts to use shared interface]] | #: Refer: [[CentOS 8.x Creating bridge interfaces (br0) for virtual hosts to use shared interface]] | ||
#: '''Best option is to create two bridges cloudbr0 and cloudbr1. Keep management and storage untagged on cloudbr0 via access VLAN. Keep public and guest on cloudbr1 via tagged VLANs. cloudbr0 network NIC can be access VLAN for management/storage. cloudbr1 should be trunk port for all other VLANs.''' | |||
#: In case of bridges you can consider adding following additional configuration: | #: In case of bridges you can consider adding following additional configuration: | ||
#::<pre> | #::<pre> | ||
Line 63: | Line 63: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 8.x]] > [[CentOS 8.x virtualization|Virtualization]] > [[CentOS 8.x Cloudstack 4.15|Cloudstack 4.15]] > [[CentOS 8.x Cloudstack 4.15 Setup KVM host|Setup KVM host]] |
Latest revision as of 03:04, 23 April 2022
Home > CentOS > CentOS 8.x > Virtualization > Cloudstack 4.15 > Setup KVM host
To setup Cloudstack 4.15 KVM host use following steps:
- Initialize server using CentOS 8.x Cloudstack 4.15 Initialize infrastructure server
- Create bridge interface cloudbr0, cloudbr1, etc. based on interfaces to be used for cloud setup.
- Refer: CentOS 8.x Creating bridge interfaces (br0) for virtual hosts to use shared interface
- Best option is to create two bridges cloudbr0 and cloudbr1. Keep management and storage untagged on cloudbr0 via access VLAN. Keep public and guest on cloudbr1 via tagged VLANs. cloudbr0 network NIC can be access VLAN for management/storage. cloudbr1 should be trunk port for all other VLANs.
- In case of bridges you can consider adding following additional configuration:
- HOTPLUG=no
- DELAY=0
- STP=no
- Install virt packages
- dnf -y module install virt
- dnf -y install virt-install virt-viewer
- Change below parameters in '/etc/libvirt/libvirtd.conf' file
- listen_tls = 0
- listen_tcp = 1
- tcp_port = "16509"
- auth_tcp = "none"
- Update '/etc/sysconfig/libvirtd' as follows:
- #LIBVIRTD_ARGS="--timeout 120"
- LIBVIRTD_ARGS="--listen"
- Run below command for enable --listen for libvirtd service so that it works in traditional mode instead of systemd socket activation mode (Refer '<tt<man libvirtd')
- systemctl mask libvirtd.socket libvirtd-ro.socket libvirtd-admin.socket libvirtd-tls.socket libvirtd-tcp.socket
- Start and enable the libvirtd service
- systemctl daemon-reload
- systemctl start libvirtd
- systemctl enable libvirtd
- systemctl status libvirtd
- Configure cloudstack repository by creating '/etc/yum.repos.d/cloudstack.repo'
- [cloudstack]
- name=cloudstack
- baseurl=http://download.cloudstack.org/centos/$releasever/4.15/
- enabled=1
- gpgcheck=0
- Install cloudstack-management package:
- dnf -y install cloudstack-agent
- Mount primary storage on appropriate location on all hosts eg /mnt/primary (Except in case of NFS)
- Enable CloudStack agent
- systemctl enable cloudstack-agent.service
-
- Note that service would fail to start at this stage. It would get started while adding the KVM host to cloudstack
Home > CentOS > CentOS 8.x > Virtualization > Cloudstack 4.15 > Setup KVM host