Skip to content

Commit

Permalink
Silence output to console during boot
Browse files Browse the repository at this point in the history
Eliminating the output to the serial console, boot time[1] of 2 levels
nested kubevirt vm is 1.8 times faster.

   bare metal -> drenv vm -> minikube vm -> kubevirt vm

system    nested    before    after
-----------------------------------
libvirt1       0        4s       4s
libvirt1       1       10s      10s
libvirt2       2       45s      25s
vmware         2       80s      55s
kubevirt       2     >150s      85s

This probably means there is something wrong in the way serial console
is handled in kubevirt. Until this is improved we can use this change
to speed up testing DR with kubvirt.

[1] time since vm is reported ready until `virtctl ssh` succeeds,
    measured using `test/addons/kubevirt/test`

Thanks: Peter Lauterbach <pelauter@redhat.com>
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
  • Loading branch information
nirs committed Oct 31, 2023
1 parent f3ca78e commit 5e3aaf4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/vms/cirros/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ $(disk):
virt-customize --add $(work) \
--copy-in ../ramen:/tmp \
--run-command "/tmp/ramen/install" \
--run-command "sed -i 's/console=tty1/quiet/' /boot/grub/menu.lst" \
--run-command "sed -i 's/console=ttyS0//' /boot/grub/menu.lst" \
--delete "/tmp/ramen"
qemu-img convert -f qcow2 -O qcow2 -c $(work) $@

Expand Down

0 comments on commit 5e3aaf4

Please sign in to comment.