Details for revision 1882 of testcase: QEMU riscv64 Install



BugReport a bug against the content of this testcase
ID1753
TitleQEMU riscv64 Install
LinkNo link provided
Part of testsuitesUbuntu Subiquity riscv64

RevisionWritten on the 2022-04-27 18:03 by brian-murray
RevisionWritten on the 2022-03-31 16:33 by brian-murray
Text

This testcase checks the installation of the live installer image for the
riscv64 architecture on QEMU.

On your installed Ubuntu machine.

sudo apt install -y opensbi qemu-system-misc u-boot-qemu
curl https://cdimage.ubuntu.com/ubuntu-server/daily-live/current/jammy-live-s... --output jammy-live-server-riscv64.img.gz
gzip -d jammy-live-server-riscv64.img.gz
rm -f disk
dd if=/dev/zero bs=1M of=disk count=1 seek=16383
Start the installer with:
/usr/bin/qemu-system-riscv64 -machine virt -m 4G -smp cpus=2 -nographic \
    -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.bin \
    -kernel /usr/lib/u-boot/qemu-riscv64_smode/u-boot.bin \
    -netdev user,id=net0 \
    -device virtio-net-device,netdev=net0 \
    -drive file=jammy-live-server-riscv64.img,format=raw,if=virtio \
    -drive file=disk,format=raw,if=virtio \
    -device virtio-rng-pci
Install on the 16 GiB drive.
The installation finishes without reporting failures.
During the reboot press the Enter key to access U-Boot's command line.
Execute the poweroff command
QEMU terminates
Run the installed system with:
/usr/bin/qemu-system-riscv64 -machine virt -m 4G -smp cpus=2 -nographic \
    -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.bin \
    -kernel /usr/lib/u-boot/qemu-riscv64_smode/u-boot.bin \
    -netdev user,id=net0 \
    -device virtio-net-device,netdev=net0 \
    -drive file=disk,format=raw,if=virtio \
    -device virtio-rng-pci
The system boots via GRUB.
Login in with the username and password defined during the installation
Run any command that is not installed, e.g. hello.
Check that command-not-found recommends things to install
Install a package, e.g. hello.
Check that the package performs correctly.
Install a snap, e.g. hello.
check that the snap works correctly.
Poweroff
Console messages should reach the poweroff target
There should be final message 'reboot: Power down'
QEMU should terminate automatically

If all actions produce the expected results listed, please submit a 'passed' result.
If an action fails, or produces an unexpected result, please submit a 'failed' result and file a bug. Please be sure to include the bug number when you submit your result.