tests/ostree: use local install and lower memory
Download the boot.iso to the hypervisor to use local install instead of networked which allows to use lower RAM.
This commit is contained in:
parent
e18cda1fa2
commit
fe554ad184
4 changed files with 17 additions and 7 deletions
|
|
@ -497,7 +497,7 @@ sudo qemu-img create -f qcow2 "${LIBVIRT_UEFI_IMAGE_PATH}" 20G
|
|||
greenprint "💿 Install ostree image via installer(ISO) on BIOS VM"
|
||||
sudo virt-install --name="${IMAGE_KEY}-bios" \
|
||||
--disk path="${LIBVIRT_BIOS_IMAGE_PATH}",format=qcow2 \
|
||||
--ram 3072 \
|
||||
--ram 2048 \
|
||||
--vcpus 2 \
|
||||
--network network=integration,mac=34:49:22:B0:83:30 \
|
||||
--os-type linux \
|
||||
|
|
@ -566,7 +566,7 @@ sudo rm -f "$LIBVIRT_BIOS_IMAGE_PATH"
|
|||
greenprint "💿 Install ostree image via installer(ISO) on UEFI VM"
|
||||
sudo virt-install --name="${IMAGE_KEY}-uefi"\
|
||||
--disk path="${LIBVIRT_UEFI_IMAGE_PATH}",format=qcow2 \
|
||||
--ram 3072 \
|
||||
--ram 2048 \
|
||||
--vcpus 2 \
|
||||
--network network=integration,mac=34:49:22:B0:83:31 \
|
||||
--os-type linux \
|
||||
|
|
|
|||
|
|
@ -351,18 +351,23 @@ echo -e 'admin\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
|||
%end
|
||||
STOPHERE
|
||||
|
||||
# Get the boot.iso from BOOT_LOCATION
|
||||
curl -O "$BOOT_LOCATION"/images/boot.iso
|
||||
sudo mv boot.iso /var/lib/libvirt/images
|
||||
LOCAL_BOOT_LOCATION="/var/lib/libvirt/images/boot.iso"
|
||||
|
||||
# Install ostree image via anaconda on BIOS vm.
|
||||
greenprint "Install ostree image via anaconda on BIOS vm"
|
||||
sudo virt-install --initrd-inject="${KS_FILE}" \
|
||||
--extra-args="inst.ks=file:/ks.cfg console=ttyS0,115200" \
|
||||
--name="${IMAGE_KEY}-bios"\
|
||||
--disk path="${LIBVIRT_IMAGE_PATH}",format=qcow2 \
|
||||
--ram 3072 \
|
||||
--ram 2048 \
|
||||
--vcpus 2 \
|
||||
--network network=integration,mac=34:49:22:B0:83:30 \
|
||||
--os-type linux \
|
||||
--os-variant ${OS_VARIANT} \
|
||||
--location "${BOOT_LOCATION}" \
|
||||
--location "${LOCAL_BOOT_LOCATION}" \
|
||||
--nographics \
|
||||
--noautoconsole \
|
||||
--wait=-1 \
|
||||
|
|
|
|||
|
|
@ -353,18 +353,23 @@ greenprint "Create uefi vm qcow2 file for virt install"
|
|||
LIBVIRT_IMAGE_PATH=/var/lib/libvirt/images/${IMAGE_KEY}-uefi.qcow2
|
||||
sudo qemu-img create -f qcow2 "${LIBVIRT_IMAGE_PATH}" 20G
|
||||
|
||||
# Get the boot.iso from BOOT_LOCATION
|
||||
curl -O "$BOOT_LOCATION"/images/boot.iso
|
||||
sudo mv boot.iso /var/lib/libvirt/images
|
||||
LOCAL_BOOT_LOCATION="/var/lib/libvirt/images/boot.iso"
|
||||
|
||||
# Install ostree image via anaconda on UEFI vm.
|
||||
greenprint "Install ostree image via anaconda on UEFI vm"
|
||||
sudo virt-install --initrd-inject="${KS_FILE}" \
|
||||
--extra-args="inst.ks=file:/ks.cfg console=ttyS0,115200" \
|
||||
--name="${IMAGE_KEY}-uefi"\
|
||||
--disk path="${LIBVIRT_IMAGE_PATH}",format=qcow2 \
|
||||
--ram 3072 \
|
||||
--ram 2048 \
|
||||
--vcpus 2 \
|
||||
--network network=integration,mac=34:49:22:B0:83:31 \
|
||||
--os-type linux \
|
||||
--os-variant ${OS_VARIANT} \
|
||||
--location "${BOOT_LOCATION}" \
|
||||
--location "${LOCAL_BOOT_LOCATION}" \
|
||||
--boot "$BOOT_ARGS"\
|
||||
--nographics \
|
||||
--noautoconsole \
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ CONTAINER_TYPE=edge-container
|
|||
CONTAINER_FILENAME=container.tar
|
||||
INSTALLER_TYPE=edge-simplified-installer
|
||||
INSTALLER_FILENAME=simplified-installer.iso
|
||||
MEMORY=3072
|
||||
MEMORY=2048
|
||||
BOOT_ARGS="uefi"
|
||||
|
||||
# Set up temporary files.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue