From 283553060d92345b6788db90ef1a035e00e3cd02 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sun, 3 Aug 2014 21:22:07 +0100 Subject: [PATCH] arm: On arm the virtual console is PL011-based ttyAMA0. Confusingly real ARM hardware can have either PC-like 8250 devices, which the Linux kernel calls /dev/ttyS0, or ARM-only PL011-based /dev/ttyAMA0. qemu can emulate either, but the default for `-M virt' is the PL011 so /dev/ttyAMA0. Change the warning message so it uses ttyAMA0 instead. --- virt-install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/virt-install b/virt-install index 0f09153b..fdd8d9d1 100755 --- a/virt-install +++ b/virt-install @@ -358,10 +358,13 @@ def _show_nographics_warnings(options, guest): return serial_arg = "console=ttyS0" + serial_arm_arg = "console=ttyAMA0" virtio_arg = "console=hvc0" console_type = None if guest.conn.is_test() or guest.conn.is_qemu(): console_type = serial_arg + if guest.os.arch.startswith("arm") or guest.os.arch == "aarch64": + console_type = serial_arm_arg if guest.get_devices("console")[0].target_type == "virtio": console_type = virtio_arg