Start collecting logs from virt-install

This commit is contained in:
Alexander Todorov 2023-07-17 11:07:52 +03:00 committed by Ondřej Budai
parent ee0c7b53dc
commit 38ed9a39be
4 changed files with 39 additions and 8 deletions

View file

@ -355,6 +355,10 @@ sudo qemu-img create -f qcow2 "${LIBVIRT_IMAGE_PATH}" 20G
#########################
# Install image via anaconda.
VIRT_LOG="$ARTIFACTS/installers-sh-virt-install-console.log"
touch "$VIRT_LOG"
sudo chown qemu:qemu "$VIRT_LOG"
greenprint "💿 Install image via installer(ISO) on VM"
sudo virt-install --name="${IMAGE_KEY}"\
--disk path="${LIBVIRT_IMAGE_PATH}",format=qcow2 \
@ -367,7 +371,8 @@ sudo virt-install --name="${IMAGE_KEY}"\
--nographics \
--noautoconsole \
--wait=-1 \
--noreboot
--noreboot \
--console pipe,source.path="$VIRT_LOG"
# Start VM.