Skip to content
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

Upgrade container disk image to CentOS Stream 9 #73

Merged
merged 2 commits into from
Jul 30, 2024
Merged
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
2 changes: 1 addition & 1 deletion pkg/internal/checkup/executor/console/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (e Expecter) LoginToCentOSAsRoot(password string) error {

func configureConsole(expecter expect.Expecter) error {
batch := []expect.Batcher{
&expect.BSnd{S: "stty cols 500 rows 500\n"},
&expect.BSnd{S: "stty cols 160 rows 50\n"},
&expect.BExp{R: PromptExpression},
&expect.BSnd{S: "echo $?\n"},
&expect.BExp{R: RetValue("0")},
Expand Down
4 changes: 2 additions & 2 deletions vms/vm-under-test/scripts/build-vm-image
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@

export LIBGUESTFS_BACKEND=direct

virt-builder centosstream-8 \
virt-builder centosstream-9 \
--format qcow2 \
--root-password password:redhat \
--install cloud-init,kernel-rt,tuned,rt-tests \
--install cloud-init,tuned,realtime-tests \
--run /root/scripts/customize-vm \
--selinux-relabel \
--output /output/kubevirt-realtime-checkup-vm.qcow2
7 changes: 6 additions & 1 deletion vms/vm-under-test/scripts/customize-vm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ disable_services() {

# Install required packages
install_packages() {
dnf --enablerepo=rt install -y tuned-profiles-realtime
dnf --enablerepo=rt install -y kernel-rt tuned-profiles-realtime
dnf --enablerepo=nfv install -y tuned-profiles-nfv-guest
}

Expand All @@ -45,7 +45,12 @@ enable_guest_exec() {
sed -i '/^BLACKLIST_RPC=/ { s/,\+/,/g; s/^,\|,$//g }' /etc/sysconfig/qemu-ga
}

disable_bracketed_paste() {
echo "set enable-bracketed-paste off" >> /root/.inputrc
}

disable_services
install_packages
disable_swap
enable_guest_exec
disable_bracketed_paste
Loading