Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Running Rocky Linux 9.4 for the KVM host
- Network Interface
- ens192 = Slave of cloudbr0 bridge. Untagged VLAN for management.
- ens224 = Slave of cloudbr1 bridge. Tagged VLANs for public and guest networks.
- You can refer to the steps that I used to configure a KVM compute node below:
- Install CloudStack agent.
- ```bash
- tmux
- dnf -y install -y epel-release cloudstack-agent
- ```
- ```bash
- systemctl mask libvirtd.socket libvirtd-ro.socket libvirtd-admin.socket libvirtd-tls.socket libvirtd-tcp.socket
- nano /etc/sysconfig/libvirtd
- --------------------------------------------------------
- LIBVIRTD_ARGS="--listen"
- --------------------------------------------------------
- ```
- In order to allow QEMU VNC to listen to ANY address, you must configure the /etc/libvirt/qemu.conf file.
- ```bash
- nano /etc/libvirt/qemu.conf
- --------------------------------------------------------
- vnc_listen=0.0.0.0
- --------------------------------------------------------
- ```
- Restart libvirt
- ```bash
- systemctl enable libvirtd
- systemctl restart libvirtd
- systemctl status libvirtd
- ```
- Configure CPU model for KVM guest
- ```bash
- nano /etc/cloudstack/agent/agent.properties
- --------------------------------------------------------
- guest.cpu.mode=host-model
- --------------------------------------------------------
- ```
- Reboot the machine first for good measure before adding to the cluster.
- ```bash
- reboot now
- ```
Advertisement
Add Comment
Please, Sign In to add comment