Skip to content

Install qemu-kvm-ev and update kernel #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 11 commits into
base: sofia-lab
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Ansible/roles/cloudstack-manager/tasks/centos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,15 @@
- name: Ensure CA Certs are latest
yum: name=ca-certificates state=latest enablerepo=base

- name: install rng-tools to get entropy
- name: install haveged to get entropy
yum: name=haveged state=present

- name: start haveged for entropy
service:
name: haveged
state: started
enabled: yes

- name: update lvm2 as fix for bugzilla.redhat.com/show_bug.cgi?id=1294128
yum: name=lvm2 state=latest

Expand Down
10 changes: 8 additions & 2 deletions Ansible/roles/cloudstack-manager/tasks/centos8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,15 @@
- name: Ensure CA Certs are latest
dnf: name=ca-certificates state=latest enablerepo=base

- name: install rng-tools to get entropy
- name: install haveged to get entropy
dnf: name=haveged state=present

- name: start haveged for entropy
service:
name: haveged
state: started
enabled: yes

- name: determine number of db hosts
set_fact: num_xen_hosts="{{ groups['xenserver_hosts'] | length }}"

Expand Down Expand Up @@ -135,4 +141,4 @@
shell: "dnf install -y {{ sb_repo }}/ipmi/{{ ipmitool_binary }}"

- name: Upgrade gcrypt library on CentOS 8 MS
dnf: name=libgcrypt state=present
dnf: name=libgcrypt state=present
36 changes: 34 additions & 2 deletions Ansible/roles/kvm/tasks/centos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
- rpcbind
- parted
- vim
- wget
tags:
- kvm

Expand Down Expand Up @@ -127,6 +128,26 @@
- kvm
- kvm-agent

- name: Install centos-release
shell: /usr/bin/wget http://10.0.3.122/centos-release/{{ item }} -P /tmp
with_items:
- centos-release-7-9.2009.0.el7.centos.x86_64.rpm

- name: Cleanup old repos
shell: rm /etc/yum.repos.d/CentOS- -f; rpm -ivh --replacepkgs --replacefiles /tmp/centos-release-7-9.2009.0.el7.centos.x86_64.rpm

- name: ensure yum cache is cleared
shell: command="yum clean all"

- name: Ensure centos-release-qemu-ev is installed
yum: name=centos-release-qemu-ev state=present

- name: Ensure qemu-kvm-ev is installed
yum: name=qemu-kvm-ev state=present
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think in the main/sofia branch we shouldn't install qemu-kvm-ev by default; rest of the packages/changes are okay if they're general purpose (for ex. haveged etc). cc arch team @alexandremattioli @andrijapanicsb @NuxRo cc @davidjumani @nvazquez


- name: Remove centos-release-qemu-ev
shell: "yum remove centos-release-qemu-ev -y"

- name: Update /etc/sysconfig/libvirtd - LIBVIRTD_ARGS
lineinfile: dest=/etc/sysconfig/libvirtd regexp='LIBVIRTD_ARGS' line='LIBVIRTD_ARGS="--listen"' state=present
tags:
Expand Down Expand Up @@ -204,6 +225,17 @@
shell: "echo {{ kvm_password }} | passwd {{ kvm_username }} --stdin"

- include: ./centos_elrepokernel.yml
when: kvm_install_elrepo_kernel
#when: kvm_install_elrepo_kernel
tags:
- kvm
- kvm

- name: Install cryptsetup and rng-tools to support encryption and entropy respectively
yum: name={{ item }} state=present enablerepo=base
with_items:
- cryptsetup
- rng-tools
tags:
- kvm

- name: Start rng service
shell: "systemctl start rngd"
11 changes: 11 additions & 0 deletions Ansible/roles/kvm/tasks/centos8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,3 +218,14 @@
# when: kvm_install_elrepo_kernel
tags:
- kvm

- name: Install cryptsetup and rng-tools to support encryption and entropy respectively
dnf: name={{ item }} state=present enablerepo=base
with_items:
- cryptsetup
- rng-tools
tags:
- kvm

- name: Start rng service
shell: "systemctl start rngd"
8 changes: 8 additions & 0 deletions Ansible/templates/CentOS-Base.repo.j2
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,11 @@ baseurl={{ os_repo }}/centos/$releasever/updates/$basearch/
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-$releasever
enabled = {{ update_repo_enabled | default(1) }}

[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled = {{ update_repo_enabled | default(1) }}