From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson To: passt-dev@passt.top Subject: [PATCH 13/15] tests: Move distro image download to asset build makefile Date: Wed, 06 Jul 2022 17:29:07 +1000 Message-ID: <20220706072909.596805-14-david@gibson.dropbear.id.au> In-Reply-To: <20220706072909.596805-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4925187755943986057==" --===============4925187755943986057== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Rather than directly download distro images from the test scripts, handle all the downloads during the test asset build, then just clone them for the tests themselves. This avoids repeated downloads which can be very slow when debugging failing tests. Signed-off-by: David Gibson --- test/.gitignore | 2 + test/Makefile | 131 ++++++++++++++++++++++++++++++++++++++++++- test/distro/debian | 25 +++++---- test/distro/fedora | 38 ++++++------- test/distro/opensuse | 14 ++--- test/distro/ubuntu | 14 ++--- 6 files changed, 178 insertions(+), 46 deletions(-) diff --git a/test/.gitignore b/test/.gitignore index 360da92..225ecd9 100644 --- a/test/.gitignore +++ b/test/.gitignore @@ -3,3 +3,5 @@ test_logs/ mbuto/ *.img QEMU_EFI.fd +*.qcow2 +*.raw.xz diff --git a/test/Makefile b/test/Makefile index 9990841..b858e0e 100644 --- a/test/Makefile +++ b/test/Makefile @@ -5,7 +5,54 @@ # Copyright Red Hat # Author: David Gibson =20 -DOWNLOAD_ASSETS =3D mbuto +WGET =3D wget -c + +DEBIAN_IMGS =3D debian-8.11.0-openstack-amd64.qcow2 \ + debian-9-nocloud-amd64-daily-20200210-166.qcow2 \ + debian-10-nocloud-amd64.qcow2 \ + debian-10-generic-arm64.qcow2 \ + debian-10-generic-ppc64el.qcow2 \ + debian-11-nocloud-amd64.qcow2 \ + debian-11-generic-arm64.qcow2 \ + debian-11-generic-ppc64el.qcow2 \ + debian-sid-nocloud-amd64-daily.qcow2 \ + debian-sid-nocloud-arm64-daily.qcow2 \ + debian-sid-nocloud-ppc64el-daily.qcow2 + +FEDORA_IMGS =3D Fedora-Cloud-Base-26-1.5.x86_64.qcow2 \ + Fedora-Cloud-Base-27-1.6.x86_64.qcow2 \ + Fedora-Cloud-Base-28-1.1.x86_64.qcow2 \ + Fedora-Cloud-Base-28-1.1.aarch64.qcow2 \ + Fedora-Cloud-Base-29-1.2.x86_64.qcow2 \ + Fedora-Cloud-Base-29-1.2.aarch64.qcow2 \ + Fedora-Cloud-Base-30-1.2.x86_64.qcow2 \ + Fedora-Cloud-Base-30-1.2.aarch64.qcow2 \ + Fedora-Cloud-Base-31-1.9.x86_64.qcow2 \ + Fedora-Cloud-Base-31-1.9.aarch64.qcow2 \ + Fedora-Cloud-Base-32-1.6.x86_64.qcow2 \ + Fedora-Cloud-Base-32-1.6.aarch64.qcow2 \ + Fedora-Cloud-Base-33-1.2.x86_64.qcow2 \ + Fedora-Cloud-Base-33-1.2.aarch64.qcow2 \ + Fedora-Cloud-Base-34-1.2.x86_64.qcow2 \ + Fedora-Cloud-Base-34-1.2.aarch64.qcow2 \ + Fedora-Cloud-Base-35-1.2.x86_64.qcow2 \ + Fedora-Cloud-Base-35-1.2.aarch64.qcow2 + +OPENSUSE_IMGS =3D openSUSE-Leap-15.1-JeOS.x86_64-kvm-and-xen.qcow2 \ + openSUSE-Leap-15.2-JeOS.x86_64-kvm-and-xen.qcow2 \ + openSUSE-Leap-15.3-JeOS.x86_64-kvm-and-xen.qcow2 \ + openSUSE-Tumbleweed-ARM-JeOS-efi.aarch64.raw.xz \ + openSUSE-Tumbleweed-ARM-JeOS-efi.armv7l.raw.xz \ + openSUSE-Tumbleweed-JeOS.x86_64-kvm-and-xen.qcow2 + +UBUNTU_IMGS =3D trusty-server-cloudimg-amd64-disk1.img \ + trusty-server-cloudimg-i386-disk1.img \ + trusty-server-cloudimg-ppc64el-disk1.img \ + xenial-server-cloudimg-powerpc-disk1.img \ + jammy-server-cloudimg-s390x.img + +DOWNLOAD_ASSETS =3D mbuto \ + $(DEBIAN_IMGS) $(FEDORA_IMGS) $(OPENSUSE_IMGS) $(UBUNTU_IMGS) LOCAL_ASSETS =3D mbuto.img QEMU_EFI.fd =20 ASSETS =3D $(DOWNLOAD_ASSETS) $(LOCAL_ASSETS) @@ -34,3 +81,85 @@ clean: =20 realclean: clean rm -rf $(DOWNLOAD_ASSETS) + +# Debian downloads +debian-8.11.0-openstack-%.qcow2: + $(WGET) -O $@ https://cloud.debian.org/images/cloud/OpenStack/archive/8.11.= 0/debian-8.11.0-openstack-$*.qcow2 + +debian-9-nocloud-%-daily-20200210-166.qcow2: + $(WGET) -O $@ https://cloud.debian.org/images/cloud/stretch/daily/20200210-= 166/debian-9-nocloud-$*-daily-20200210-166.qcow2 + +debian-10-nocloud-%.qcow2: + $(WGET) -O $@ https://cloud.debian.org/images/cloud/buster/latest/debian-10= -nocloud-$*.qcow2 + +debian-10-generic-%.qcow2: + $(WGET) -O $@ https://cloud.debian.org/images/cloud/buster/latest/debian-10= -generic-$*.qcow2 + +debian-11-nocloud-%.qcow2: + $(WGET) -O $@ https://cloud.debian.org/images/cloud/bullseye/latest/debian-= 11-nocloud-$*.qcow2 + +debian-11-generic-%.qcow2: + $(WGET) -O $@ https://cloud.debian.org/images/cloud/bullseye/latest/debian-= 11-generic-$*.qcow2 + +debian-sid-nocloud-%-daily.qcow2: + $(WGET) -O $@ https://cloud.debian.org/images/cloud/sid/daily/latest/debian= -sid-nocloud-$*-daily.qcow2 + +# Fedora downloads +Fedora-Cloud-Base-26-1.5.%.qcow2: + $(WGET) -O $@ http://archives.fedoraproject.org/pub/archive/fedora/linux/re= leases/26/CloudImages/$*/images/Fedora-Cloud-Base-26-1.5.$*.qcow2 + +Fedora-Cloud-Base-27-1.6.%.qcow2: + $(WGET) -O $@ http://archives.fedoraproject.org/pub/archive/fedora/linux/re= leases/27/CloudImages/$*/images/Fedora-Cloud-Base-27-1.6.$*.qcow2 + +Fedora-Cloud-Base-28-1.1.%.qcow2: + $(WGET) -O $@ http://archives.fedoraproject.org/pub/archive/fedora/linux/re= leases/28/Cloud/$*/images/Fedora-Cloud-Base-28-1.1.$*.qcow2 + +Fedora-Cloud-Base-29-1.2.%.qcow2: + $(WGET) -O $@ http://archives.fedoraproject.org/pub/archive/fedora/linux/re= leases/29/Cloud/$*/images/Fedora-Cloud-Base-29-1.2.$*.qcow2 + +Fedora-Cloud-Base-30-1.2.%.qcow2: + $(WGET) -O $@ http://archives.fedoraproject.org/pub/archive/fedora/linux/re= leases/30/Cloud/$*/images/Fedora-Cloud-Base-30-1.2.$*.qcow2 + +Fedora-Cloud-Base-31-1.9.%.qcow2: + $(WGET) -O $@ http://archives.fedoraproject.org/pub/archive/fedora/linux/re= leases/31/Cloud/$*/images/Fedora-Cloud-Base-31-1.9.$*.qcow2 + +Fedora-Cloud-Base-32-1.6.%.qcow2: + $(WGET) -O $@ https://download.fedoraproject.org/pub/fedora/linux/releases/= 32/Cloud/$*/images/Fedora-Cloud-Base-32-1.6.$*.qcow2 + +Fedora-Cloud-Base-33-1.2.%.qcow2: + $(WGET) -O $@ https://download.fedoraproject.org/pub/fedora/linux/releases/= 33/Cloud/$*/images/Fedora-Cloud-Base-33-1.2.$*.qcow2 + +Fedora-Cloud-Base-34-1.2.%.qcow2: + $(WGET) -O $@ https://download.fedoraproject.org/pub/fedora/linux//releases= /34/Cloud/$*/images/Fedora-Cloud-Base-34-1.2.$*.qcow2 + +Fedora-Cloud-Base-35-1.2.%.qcow2: + $(WGET) -O $@ https://download.fedoraproject.org/pub/fedora/linux/releases/= 35/Cloud/$*/images/Fedora-Cloud-Base-35-1.2.$*.qcow2 + +# OpenSuSE downloads +openSUSE-Leap-15.1-JeOS.x86_64-kvm-and-xen.qcow2: + $(WGET) -O $@ https://download.opensuse.org/distribution/leap/15.1/jeos/ope= nSUSE-Leap-15.1-JeOS.x86_64-kvm-and-xen.qcow2 + +openSUSE-Leap-15.2-JeOS.x86_64-kvm-and-xen.qcow2: + $(WGET) -O $@ https://download.opensuse.org/distribution/leap/15.2/applianc= es/openSUSE-Leap-15.2-JeOS.x86_64-kvm-and-xen.qcow2 + +openSUSE-Leap-15.3-JeOS.x86_64-kvm-and-xen.qcow2: + $(WGET) -O $@ https://download.opensuse.org/distribution/leap/15.3/applianc= es/openSUSE-Leap-15.3-JeOS.x86_64-kvm-and-xen.qcow2 + +openSUSE-Tumbleweed-ARM-JeOS-efi.aarch64.raw.xz: + $(WGET) -O $@ http://download.opensuse.org/ports/aarch64/tumbleweed/applian= ces/openSUSE-Tumbleweed-ARM-JeOS-efi.aarch64.raw.xz + +openSUSE-Tumbleweed-ARM-JeOS-efi.armv7l.raw.xz: + $(WGET) -O $@ http://download.opensuse.org/ports/armv7hl/tumbleweed/applian= ces/openSUSE-Tumbleweed-ARM-JeOS-efi.armv7l.raw.xz + +openSUSE-Tumbleweed-JeOS.x86_64-kvm-and-xen.qcow2: + $(WGET) -O $@ https://download.opensuse.org/tumbleweed/appliances/openSUSE-= Tumbleweed-JeOS.x86_64-kvm-and-xen.qcow2 + +# Ubuntu downloads +trusty-server-cloudimg-%-disk1.img: + $(WGET) -O $@ https://cloud-images.ubuntu.com/trusty/current/trusty-server-= cloudimg-$*-disk1.img + +xenial-server-cloudimg-powerpc-disk1.img: + $(WGET) -O $@ https://cloud-images.ubuntu.com/xenial/current/xenial-server-= cloudimg-powerpc-disk1.img + +jammy-server-cloudimg-s390x.img: + $(WGET) -O $@ https://cloud-images.ubuntu.com/jammy/current/jammy-server-cl= oudimg-s390x.img diff --git a/test/distro/debian b/test/distro/debian index 9992b69..a7a0f98 100644 --- a/test/distro/debian +++ b/test/distro/debian @@ -12,7 +12,7 @@ # Author: Stefano Brivio =20 temp PIDFILE -htools wget virt-edit guestfish head sed cat kill qemu-system-x86_64 qemu-sy= stem-aarch64 qemu-system-ppc64 +htools qemu-img virt-edit guestfish head sed cat kill qemu-system-x86_64 qem= u-system-aarch64 qemu-system-ppc64 =20 # Quick pasta test: send message from init to ns, and from ns to init def distro_quick_pasta_test @@ -45,7 +45,7 @@ hout GUEST_FILES ls -1 *.c *.h *.sh passt.1 qrap.1 Makefile= | tr '\n' ' '; echo test Debian GNU/Linux 8 (jessie), amd64 =20 temp IMG -host wget https://cloud.debian.org/images/cloud/OpenStack/archive/8.11.0/deb= ian-8.11.0-openstack-amd64.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/debian-8.11.0-opensta= ck-amd64.qcow2 __IMG__ host virt-edit -a __IMG__ /etc/systemd/system/getty.target.wants/getty(a)tty= 1.service -e 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8= --keep-baud 115200,38400,9600 ttyS0 $TERM/g' host guestfish --rw -a __IMG__ -i rm /lib/systemd/system/serial-getty(a).ser= vice host guestfish --rw -a __IMG__ -i rm /etc/init.d/cloud-config @@ -76,7 +76,7 @@ hout PID cat __PIDFILE__ test Debian GNU/Linux 9 (stretch, oldoldstable), amd64 =20 temp IMG -host wget https://cloud.debian.org/images/cloud/stretch/daily/20200210-166/d= ebian-9-nocloud-amd64-daily-20200210-166.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/debian-9-nocloud-amd6= 4-daily-20200210-166.qcow2 __IMG__ host virt-edit -a __IMG__ /etc/systemd/system/getty.target.wants/getty(a)tty= 1.service -e 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8= --keep-baud 115200,38400,9600 ttyS0 $TERM/g' host guestfish --rw -a __IMG__ -i rm /lib/systemd/system/serial-getty(a).ser= vice host guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/ @@ -100,7 +100,7 @@ sleep 1 test Debian GNU/Linux 10 (buster, oldstable), amd64 =20 temp IMG -host wget https://cloud.debian.org/images/cloud/buster/latest/debian-10-nocl= oud-amd64.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/debian-10-nocloud-amd= 64.qcow2 __IMG__ host virt-edit -a __IMG__ /etc/systemd/system/getty.target.wants/getty(a)tty= 1.service -e 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8= --keep-baud 115200,38400,9600 ttyS0 $TERM/g' host guestfish --rw -a __IMG__ -i rm /lib/systemd/system/serial-getty(a).ser= vice host guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/ @@ -124,7 +124,7 @@ sleep 1 test Debian GNU/Linux 10 (buster, oldstable), aarch64 =20 temp IMG -host wget https://cloud.debian.org/images/cloud/buster/latest/debian-10-gene= ric-arm64.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/debian-10-generic-arm= 64.qcow2 __IMG__ host virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty(a).service -e= 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud= 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.serv= ice @@ -155,7 +155,8 @@ sleep 1 test Debian GNU/Linux 10 (buster, oldstable), ppc64le =20 temp IMG -host wget https://cloud.debian.org/images/cloud/buster/latest/debian-10-gene= ric-ppc64el.qcow2 -O __IMG__ + +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/debian-10-generic-ppc= 64el.qcow2 __IMG__ host virt-edit -a __IMG__ /etc/systemd/system/getty.target.wants/getty(a)tty= 1.service -e 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8= --keep-baud 115200,38400,9600 ttyS0 $TERM/g' host virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty(a).service -e= 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud= 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice @@ -188,7 +189,7 @@ hostb reset test Debian GNU/Linux 11 (bullseye, stable), amd64 =20 temp IMG -host wget https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-no= cloud-amd64.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/debian-11-nocloud-amd= 64.qcow2 __IMG__ host virt-edit -a __IMG__ /etc/systemd/system/getty.target.wants/getty(a)tty= 1.service -e 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8= --keep-baud 115200,38400,9600 ttyS0 $TERM/g' host guestfish --rw -a __IMG__ -i rm /lib/systemd/system/serial-getty(a).ser= vice host guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/ @@ -210,7 +211,7 @@ sleep 1 test Debian GNU/Linux 11 (bullseye, stable), aarch64 =20 temp IMG -host wget https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-ge= neric-arm64.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/debian-11-generic-arm= 64.qcow2 __IMG__ host virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty(a).service -e= 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud= 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.serv= ice @@ -239,7 +240,7 @@ sleep 1 test Debian GNU/Linux 11 (bullseye, stable), ppc64le =20 temp IMG -host wget https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-ge= neric-ppc64el.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/debian-11-generic-ppc= 64el.qcow2 __IMG__ host virt-edit -a __IMG__ /etc/systemd/system/getty.target.wants/getty(a)tty= 1.service -e 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8= --keep-baud 115200,38400,9600 ttyS0 $TERM/g' host virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty(a).service -e= 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud= 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice @@ -270,7 +271,7 @@ hostb reset test Debian GNU/Linux sid (experimental), amd64 =20 temp IMG -host wget https://cloud.debian.org/images/cloud/sid/daily/latest/debian-sid-= nocloud-amd64-daily.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/debian-sid-nocloud-am= d64-daily.qcow2 __IMG__ host virt-edit -a __IMG__ /etc/systemd/system/getty.target.wants/getty(a)tty= 1.service -e 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8= --keep-baud 115200,38400,9600 ttyS0 $TERM/g' host guestfish --rw -a __IMG__ -i rm /lib/systemd/system/serial-getty(a).ser= vice host guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/ @@ -292,7 +293,7 @@ sleep 1 test Debian GNU/Linux sid (experimental), aarch64 =20 temp IMG -host wget https://cloud.debian.org/images/cloud/sid/daily/latest/debian-sid-= nocloud-arm64-daily.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/debian-sid-nocloud-ar= m64-daily.qcow2 __IMG__ host virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty(a).service -e= 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud= 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/ =20 @@ -313,7 +314,7 @@ sleep 1 test Debian GNU/Linux sid (experimental), ppc64le =20 temp IMG -host wget https://cloud.debian.org/images/cloud/sid/daily/latest/debian-sid-= nocloud-ppc64el-daily.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/debian-sid-nocloud-pp= c64el-daily.qcow2 __IMG__ host virt-edit -a __IMG__ /etc/systemd/system/getty.target.wants/getty(a)tty= 1.service -e 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8= --keep-baud 115200,38400,9600 ttyS0 $TERM/g' host virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty(a).service -e= 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud= 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/ diff --git a/test/distro/fedora b/test/distro/fedora index 9fbba6b..783d0ea 100644 --- a/test/distro/fedora +++ b/test/distro/fedora @@ -12,7 +12,7 @@ # Author: Stefano Brivio =20 temp PIDFILE -htools wget virt-edit guestfish head sed cat kill qemu-system-x86_64 +htools qemu-img virt-edit guestfish head sed cat kill qemu-system-x86_64 =20 # Quick pasta test: send message from init to ns, and from ns to init def distro_quick_pasta_test @@ -66,7 +66,7 @@ hout GUEST_FILES ls -1 *.c *.h *.sh passt.1 qrap.1 Makefile= | tr '\n' ' '; echo test Fedora 26, x86_64 =20 temp IMG -host wget http://archives.fedoraproject.org/pub/archive/fedora/linux/release= s/26/CloudImages/x86_64/images/Fedora-Cloud-Base-26-1.5.x86_64.qcow2 -O __IMG= __ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/Fedora-Cloud-Base-26-= 1.5.x86_64.qcow2 __IMG__ host virt-edit -a __IMG__ /etc/systemd/system/getty.target.wants/getty(a)tty= 1.service -e 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8= --keep-baud 115200,38400,9600 ttyS0 $TERM/g' host guestfish --rw -a __IMG__ -i rm /lib/systemd/system/serial-getty(a).ser= vice host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice @@ -96,7 +96,7 @@ hout PID cat __PIDFILE__ test Fedora 27, x86_64 =20 temp IMG -host wget http://archives.fedoraproject.org/pub/archive/fedora/linux/release= s/27/CloudImages/x86_64/images/Fedora-Cloud-Base-27-1.6.x86_64.qcow2 -O __IMG= __ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/Fedora-Cloud-Base-27-= 1.6.x86_64.qcow2 __IMG__ host virt-edit -a __IMG__ /etc/systemd/system/getty.target.wants/getty(a)tty= 1.service -e 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8= --keep-baud 115200,38400,9600 ttyS0 $TERM/g' host guestfish --rw -a __IMG__ -i rm /lib/systemd/system/serial-getty(a).ser= vice host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice @@ -123,7 +123,7 @@ sleep 1 test Fedora 28, x86_64 =20 temp IMG -host wget http://archives.fedoraproject.org/pub/archive/fedora/linux/release= s/28/Cloud/x86_64/images/Fedora-Cloud-Base-28-1.1.x86_64.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/Fedora-Cloud-Base-28-= 1.1.x86_64.qcow2 __IMG__ host virt-edit -a __IMG__ /etc/systemd/system/getty.target.wants/getty(a)tty= 1.service -e 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8= --keep-baud 115200,38400,9600 ttyS0 $TERM/g' host guestfish --rw -a __IMG__ -i rm /lib/systemd/system/serial-getty(a).ser= vice host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice @@ -150,7 +150,7 @@ sleep 1 test Fedora 28, aarch64 =20 temp IMG -host wget http://archives.fedoraproject.org/pub/archive/fedora/linux/release= s/28/Cloud/aarch64/images/Fedora-Cloud-Base-28-1.1.aarch64.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/Fedora-Cloud-Base-28-= 1.1.aarch64.qcow2 __IMG__ host virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty(a).service -e= 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud= 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.serv= ice @@ -179,7 +179,7 @@ host echo test Fedora 29, x86_64 =20 temp IMG -host wget http://archives.fedoraproject.org/pub/archive/fedora/linux/release= s/29/Cloud/x86_64/images/Fedora-Cloud-Base-29-1.2.x86_64.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/Fedora-Cloud-Base-29-= 1.2.x86_64.qcow2 __IMG__ host virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty(a).service -e= 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud= 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.serv= ice @@ -205,7 +205,7 @@ sleep 1 test Fedora 29, aarch64 =20 temp IMG -host wget http://archives.fedoraproject.org/pub/archive/fedora/linux/release= s/29/Cloud/aarch64/images/Fedora-Cloud-Base-29-1.2.aarch64.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/Fedora-Cloud-Base-29-= 1.2.aarch64.qcow2 __IMG__ host virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty(a).service -e= 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud= 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.serv= ice @@ -234,7 +234,7 @@ host echo test Fedora 30, x86_64 =20 temp IMG -host wget http://archives.fedoraproject.org/pub/archive/fedora/linux/release= s/30/Cloud/x86_64/images/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/Fedora-Cloud-Base-30-= 1.2.x86_64.qcow2 __IMG__ host virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty(a).service -e= 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud= 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.serv= ice @@ -260,7 +260,7 @@ sleep 1 test Fedora 30, aarch64 =20 temp IMG -host wget http://archives.fedoraproject.org/pub/archive/fedora/linux/release= s/30/Cloud/aarch64/images/Fedora-Cloud-Base-30-1.2.aarch64.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/Fedora-Cloud-Base-30-= 1.2.aarch64.qcow2 __IMG__ host virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty(a).service -e= 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud= 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.serv= ice @@ -289,7 +289,7 @@ host echo test Fedora 31, x86_64 =20 temp IMG -host wget http://archives.fedoraproject.org/pub/archive/fedora/linux/release= s/31/Cloud/x86_64/images/Fedora-Cloud-Base-31-1.9.x86_64.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/Fedora-Cloud-Base-31-= 1.9.x86_64.qcow2 __IMG__ host virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty(a).service -e= 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud= 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.serv= ice @@ -315,7 +315,7 @@ sleep 1 test Fedora 31, aarch64 =20 temp IMG -host wget http://archives.fedoraproject.org/pub/archive/fedora/linux/release= s/31/Cloud/aarch64/images/Fedora-Cloud-Base-31-1.9.aarch64.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/Fedora-Cloud-Base-31-= 1.9.aarch64.qcow2 __IMG__ host virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty(a).service -e= 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud= 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.serv= ice @@ -344,7 +344,7 @@ host echo test Fedora 32, x86_64 =20 temp IMG -host wget https://download.fedoraproject.org/pub/fedora/linux/releases/32/Cl= oud/x86_64/images/Fedora-Cloud-Base-32-1.6.x86_64.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/Fedora-Cloud-Base-32-= 1.6.x86_64.qcow2 __IMG__ host virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty(a).service -e= 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud= 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.serv= ice @@ -370,7 +370,7 @@ sleep 1 test Fedora 32, aarch64 =20 temp IMG -host wget https://download.fedoraproject.org/pub/fedora/linux/releases/32/Cl= oud/aarch64/images/Fedora-Cloud-Base-32-1.6.aarch64.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/Fedora-Cloud-Base-32-= 1.6.aarch64.qcow2 __IMG__ host virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty(a).service -e= 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud= 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.serv= ice @@ -399,7 +399,7 @@ host echo test Fedora 33, x86_64 =20 temp IMG -host wget https://download.fedoraproject.org/pub/fedora/linux/releases/33/Cl= oud/x86_64/images/Fedora-Cloud-Base-33-1.2.x86_64.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/Fedora-Cloud-Base-33-= 1.2.x86_64.qcow2 __IMG__ host virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty(a).service -e= 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud= 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.serv= ice @@ -425,7 +425,7 @@ sleep 1 test Fedora 33, aarch64 =20 temp IMG -host wget https://download.fedoraproject.org/pub/fedora/linux/releases/33/Cl= oud/aarch64/images/Fedora-Cloud-Base-33-1.2.aarch64.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/Fedora-Cloud-Base-33-= 1.2.aarch64.qcow2 __IMG__ host virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty(a).service -e= 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud= 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.serv= ice @@ -454,7 +454,7 @@ host echo test Fedora 34, x86_64 =20 temp IMG -host wget https://download.fedoraproject.org/pub/fedora/linux//releases/34/C= loud/x86_64/images/Fedora-Cloud-Base-34-1.2.x86_64.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/Fedora-Cloud-Base-34-= 1.2.x86_64.qcow2 __IMG__ host virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty(a).service -e= 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud= 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.serv= ice @@ -480,7 +480,7 @@ sleep 1 test Fedora 34, aarch64 =20 temp IMG -host wget https://download.fedoraproject.org/pub/fedora/linux//releases/34/C= loud/aarch64/images/Fedora-Cloud-Base-34-1.2.aarch64.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/Fedora-Cloud-Base-34-= 1.2.aarch64.qcow2 __IMG__ host virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty(a).service -e= 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud= 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.serv= ice @@ -509,7 +509,7 @@ host echo test Fedora 35, x86_64 =20 temp IMG -host wget https://download.fedoraproject.org/pub/fedora/linux/releases/35/Cl= oud/x86_64/images/Fedora-Cloud-Base-35-1.2.x86_64.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/Fedora-Cloud-Base-35-= 1.2.x86_64.qcow2 __IMG__ host virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty(a).service -e= 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud= 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.serv= ice @@ -535,7 +535,7 @@ sleep 1 test Fedora 35, aarch64 =20 temp IMG -host wget https://download.fedoraproject.org/pub/fedora/linux/releases/35/Cl= oud/aarch64/images/Fedora-Cloud-Base-35-1.2.aarch64.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/Fedora-Cloud-Base-35-= 1.2.aarch64.qcow2 __IMG__ host virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty(a).service -e= 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud= 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.serv= ice diff --git a/test/distro/opensuse b/test/distro/opensuse index f2da9fe..f9ace68 100644 --- a/test/distro/opensuse +++ b/test/distro/opensuse @@ -12,7 +12,7 @@ # Author: Stefano Brivio =20 temp PIDFILE -htools wget virt-edit guestfish head sed cat kill qemu-system-x86_64 qemu-sy= stem-aarch64 xzcat tr +htools qemu-img virt-edit guestfish head sed cat kill qemu-system-x86_64 qem= u-system-aarch64 xzcat tr =20 # Quick pasta test: send message from init to ns, and from ns to init def distro_quick_pasta_test @@ -45,7 +45,7 @@ hout GUEST_FILES ls -1 *.c *.h *.sh passt.1 qrap.1 Makefile= | tr '\n' ' '; echo test OpenSUSE Leap 15.1 =20 temp IMG -host wget https://download.opensuse.org/distribution/leap/15.1/jeos/openSUSE= -Leap-15.1-JeOS.x86_64-kvm-and-xen.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/openSUSE-Leap-15.1-Je= OS.x86_64-kvm-and-xen.qcow2 __IMG__ host guestfish --rw -a __IMG__ -i rm '/usr/lib/systemd/system/systemd-journa= ld.service' host guestfish --rw -a __IMG__ -i rm /etc/systemd/system/default.target.want= s/jeos-firstboot.service host virt-edit -a __IMG__ /etc/systemd/system/getty.target.wants/getty(a)tty= 1.service -e 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --timeout 5000 --au= tologin root -i -8 --keep-baud 115200,38400,9600 ttyS0 $TERM/g' @@ -73,7 +73,7 @@ hout PID cat __PIDFILE__ =20 test OpenSUSE Leap 15.2 =20 -host wget https://download.opensuse.org/distribution/leap/15.2/appliances/op= enSUSE-Leap-15.2-JeOS.x86_64-kvm-and-xen.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/openSUSE-Leap-15.2-Je= OS.x86_64-kvm-and-xen.qcow2 __IMG__ host guestfish --rw -a __IMG__ -i rm '/usr/lib/systemd/system/systemd-journa= ld.service' host guestfish --rw -a __IMG__ -i rm /etc/systemd/system/default.target.want= s/jeos-firstboot.service host virt-edit -a __IMG__ /etc/systemd/system/getty.target.wants/getty(a)tty= 1.service -e 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --timeout 5000 --au= tologin root -i -8 --keep-baud 115200,38400,9600 ttyS0 $TERM/g' @@ -98,7 +98,7 @@ sleep 1 =20 test OpenSUSE Leap 15.3 =20 -host wget https://download.opensuse.org/distribution/leap/15.3/appliances/op= enSUSE-Leap-15.3-JeOS.x86_64-kvm-and-xen.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/openSUSE-Leap-15.3-Je= OS.x86_64-kvm-and-xen.qcow2 __IMG__ host guestfish --rw -a __IMG__ -i rm '/usr/lib/systemd/system/systemd-journa= ld.service' host guestfish --rw -a __IMG__ -i rm /etc/systemd/system/default.target.want= s/jeos-firstboot.service host virt-edit -a __IMG__ /etc/systemd/system/getty.target.wants/getty(a)tty= 1.service -e 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --timeout 5000 --au= tologin root -i -8 --keep-baud 115200,38400,9600 ttyS0 $TERM/g' @@ -126,7 +126,7 @@ sleep 1 test OpenSUSE Tumbleweed aarch64 =20 temp IMG -host wget http://download.opensuse.org/ports/aarch64/tumbleweed/appliances/o= penSUSE-Tumbleweed-ARM-JeOS-efi.aarch64.raw.xz -O - | xzcat > __IMG__ +host xzcat __BASEPATH__/openSUSE-Tumbleweed-ARM-JeOS-efi.aarch64.raw.xz > __= IMG__ host virt-edit -a __IMG__ -m /dev/sda3 /usr/lib/systemd/system/serial-getty(= a).service -e 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --timeout 5000 --a= utologin root -i -8 --keep-baud 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/ =20 @@ -153,7 +153,7 @@ test OpenSUSE Tumbleweed armv7l temp IMG temp ZIMAGE temp INITRD -host wget http://download.opensuse.org/ports/armv7hl/tumbleweed/appliances/o= penSUSE-Tumbleweed-ARM-JeOS-efi.armv7l.raw.xz -O - | xz -d > __IMG__ +host xzcat __BASEPATH__/openSUSE-Tumbleweed-ARM-JeOS-efi.armv7l.raw.xz -O > = __IMG__ host guestfish -a __IMG__ -i download /boot/zImage __ZIMAGE__ host guestfish -a __IMG__ -i download /boot/initrd __INITRD__ host virt-edit -a __IMG__ -m /dev/sda3 /usr/lib/systemd/system/serial-getty(= a).service -e 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --timeout 5000 --a= utologin root -i -8 --keep-baud 115200,38400,9600 %I $TERM/g' @@ -179,7 +179,7 @@ sleep 1 test OpenSUSE Tumbleweed =20 temp IMG -host wget https://download.opensuse.org/tumbleweed/appliances/openSUSE-Tumbl= eweed-JeOS.x86_64-kvm-and-xen.qcow2 -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/openSUSE-Tumbleweed-J= eOS.x86_64-kvm-and-xen.qcow2 __IMG__ host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/systemd-journal= d.service host guestfish --rw -a __IMG__ -i rm /etc/systemd/system/default.target.want= s/jeos-firstboot.service host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/serial-getty(a)= .service diff --git a/test/distro/ubuntu b/test/distro/ubuntu index 20b861a..6e094d7 100644 --- a/test/distro/ubuntu +++ b/test/distro/ubuntu @@ -1,4 +1,4 @@ -<# SPDX-License-Identifier: AGPL-3.0-or-later +# SPDX-License-Identifier: AGPL-3.0-or-later # # PASST - Plug A Simple Socket Transport # for qemu/UNIX domain socket mode @@ -12,7 +12,7 @@ # Author: Stefano Brivio =20 temp PIDFILE -htools wget virt-edit guestfish head sed cat kill qemu-system-x86_64 qemu-sy= stem-ppc64 qemu-system-s390x +htools qemu-img virt-edit guestfish head sed cat kill qemu-system-x86_64 qem= u-system-ppc64 qemu-system-s390x =20 # Quick pasta test: send message from init to ns, and from ns to init def distro_quick_pasta_test @@ -44,7 +44,7 @@ hout GUEST_FILES ls -1 *.c *.h *.sh passt.1 qrap.1 Makefile= | tr '\n' ' '; echo test Ubuntu 14.04.5 LTS (Trusty Tahr), amd64 =20 temp IMG -host wget https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloud= img-amd64-disk1.img -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/trusty-server-cloudim= g-amd64-disk1.img __IMG__ host virt-edit -a __IMG__ /etc/init/ttyS0.conf -e 's/\/getty/\/getty --autol= ogin root/' host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-config.conf host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-final.conf @@ -77,7 +77,7 @@ hout PID cat __PIDFILE__ test Ubuntu 14.04.5 LTS (Trusty Tahr), i386 =20 temp IMG -host wget https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloud= img-i386-disk1.img -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/trusty-server-cloudim= g-i386-disk1.img __IMG__ host virt-edit -a __IMG__ /etc/init/ttyS0.conf -e 's/\/getty/\/getty --autol= ogin root/' host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-config.conf host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-final.conf @@ -107,7 +107,7 @@ sleep 1 test Ubuntu 14.04.5 LTS (Trusty Tahr), ppc64le =20 temp IMG -host wget https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloud= img-ppc64el-disk1.img -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/trusty-server-cloudim= g-ppc64el-disk1.img __IMG__ host virt-edit -a __IMG__ /etc/init/hvc0.conf -e 's/\/getty/\/getty --autolo= gin root/' host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-config.conf host guestfish --rw -a __IMG__ -i rm /etc/init/cloud-final.conf @@ -140,7 +140,7 @@ host echo test Ubuntu 16.04 LTS (Xenial Xerus), ppc64 (be) =20 temp IMG -host wget https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloud= img-powerpc-disk1.img -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/xenial-server-cloudim= g-powerpc-disk1.img __IMG__ host virt-edit -a __IMG__ /lib/systemd/system/serial-getty(a).service -e 's/= ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud 115= 200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i rm /etc/systemd/system/cloud-init.target.w= ants/cloud-config.service host guestfish --rw -a __IMG__ -i rm /etc/systemd/system/cloud-init.target.w= ants/cloud-final.service @@ -170,7 +170,7 @@ host echo =20 test Ubuntu 22.04 (Jammy Jellyfish), s390x temp IMG -host wget https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudim= g-s390x.img -O __IMG__ +host qemu-img create -f qcow2 -F qcow2 -b __BASEPATH__/jammy-server-cloudimg= -s390x.img __IMG__ host virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty(a).service -e= 's/ExecStart=3D.*/ExecStart=3D\/sbin\/agetty --autologin root -8 --keep-baud= 115200,38400,9600 %I $TERM/g' host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.se= rvice host guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.serv= ice --=20 2.36.1 --===============4925187755943986057==--