Connect PowerPC and ARM VMs' serial ports to autopkgtest-virt-qemu' sockets
This is a minimal change to support ARM and PowerPC VMs. This MR does two things:
- Add one virtconsole to a ARM and PowerPC VMs
- Connect the default serial port and newly added viriconsole to autopkgtest's sockets.
Backgroud:
- PowerPC VM has a serial port called
/dev/hvc0
and it is the console showing BIOS boot messages etc. The newly added virtconsole is named/dev/hvc1
- ARM VM has a serial port called
/dev/ttyAMA0
and it is the console showing BIOS boot message etc. The newly added virtconsole is named/dev/hvc0
.
Because of the above, agetty should be attached to /dev/hvc0
in PowerPC VM while agetty should be attached to /dev/ttyAMA0
in ARM. The root shell has to be attached to /dev/hvc1
in PowerPC and /dev/hvc0
in ARM. I prepared disk images with these setup at http://153.240.174.134:64193/autopkgtest-VM-virtio-serial/
On my Debian Bullseye amd64 notebook, I tested this MR in the following way with the above disk images and I have seen no problem:
autopkgtest -u debci -B bash -- qemu -q qemu-system-ppc64le --debug --show-boot --timeout-reboot 1200 /var/tmp/autopkgtest-sid-ppc64el.qcow2
autopkgtest -u debci -B bash -- qemu -q qemu-system-ppc64 --debug --show-boot --timeout-reboot 1200 /var/tmp/autopkgtest-sid-ppc64.qcow2
autopkgtest -u debci -B bash -- qemu --efi -q qemu-system-aarch64 --qemu-options='-machine virt -cpu max' --debug --show-boot --timeout-reboot 1200 /var/tmp/autopkgtest-sid-arm64.qcow2
autopkgtest -u debci -B bash -- qemu --efi -q qemu-system-arm --qemu-options='-machine virt -cpu max' --debug --show-boot --timeout-reboot 1200 /var/tmp/autopkgtest-sid-armel.qcow2
autopkgtest -u debci -B bash -- qemu --efi -q qemu-system-arm --qemu-options='-machine virt -cpu max' --debug --show-boot --timeout-reboot 1200 /var/tmp/autopkgtest-sid-armhf.qcow2
autopkgtest -u debci -B bash -- qemu --efi -q qemu-system-x86_64 --debug --show-boot /var/tmp/autopkgtest-sid-amd64.qcow2
autopkgtest -u debci -B bash -- qemu --efi -q qemu-system-x86_64 --debug --show-boot /var/tmp/autopkgtest-sid-amd64-sysvinit.qcow2
Edited by Ryutaroh Matsumoto