ts-debian-hvm-install: use text installer frontend
PATCH 1/1 ts-debian-hvm-install: use text installer frontend
The installation log is output to serial console so that we can know if there's anything wrong.
--- ts-debian-hvm-install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
ts-debian-hvm-install +2 -2
@@ -88,7 +88,7 @@ set default="0" set timeout=5 menuentry 'debian guest auto Install' { - linux /install.amd/vmlinuz console=vga console=ttyS0,115200n8 preseed/file=/preseed.cfg + linux /install.amd/vmlinuz DEBCONF_DEBUG=5 DEBIAN_FRONTEND=text console=ttyS0,115200n8 preseed/file=/preseed.cfg initrd /install.amd/initrd.gz } END
@@ -102,7 +102,7 @@ sub isolinux_cfg () { label autoinstall kernel /install.amd/vmlinuz - append video=vesa:ywrap,mtrr vga=788 console=ttyS0,115200n8 preseed/file=/preseed.cfg initrd=/install.amd/initrd.gz + append DEBCONF_DEBUG=5 DEBIAN_FRONTEND=text console=ttyS0,115200n8 preseed/file=/preseed.cfg initrd=/install.amd/initrd.gz END }
Signature · 1 line
1.7.10.4
Quoted 2 lines · Wei Liu
The installation log is output to serial console so that we can know if there's anything wrong.
Where does the serial console end up? prepareguest_part_xencfg sets serial='file:/dev/stderr' which I suppose directs it to the qemu stderr which is logged?
FWIW I normally use serial='pty', which ends up directing it to xenconsole (somehow...)
Quoted 30 lines
Signed-off-by Wei Liu <[email protected]>Cc Ian Campbell <[email protected]>Cc Ian Jackson <[email protected]>--- ts-debian-hvm-install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)ts-debian-hvm-install +2
-2@@ -88,7 +88,7 @@ set default="0" set timeout=5 menuentry 'debian guest auto Install' { - linux /install.amd/vmlinuz console=vga console=ttyS0,115200n8 preseed/file=/preseed.cfg + linux /install.amd/vmlinuz DEBCONF_DEBUG=5 DEBIAN_FRONTEND=text console=ttyS0,115200n8 preseed/file=/preseed.cfg initrd /install.amd/initrd.gz } END@@ -102,7 +102,7 @@ sub isolinux_cfg () { label autoinstall kernel /install.amd/vmlinuz - append video=vesa:ywrap,mtrr vga=788 console=ttyS0,115200n8 preseed/file=/preseed.cfg initrd=/install.amd/initrd.gz + append DEBCONF_DEBUG=5 DEBIAN_FRONTEND=text console=ttyS0,115200n8 preseed/file=/preseed.cfg initrd=/install.amd/initrd.gz END }
Quoted 7 lines · Ian Campbell
Quoted 2 lines · Wei Liu
The installation log is output to serial console so that we can know if there's anything wrong.
Where does the serial console end up?
prepareguest_part_xencfgsets serial='file:/dev/stderr' which I suppose directs it to the qemu stderr which is logged?
I suppose it goes to guest console log.
Did I overlook something?
Wei.
Quoted 35 lines
FWIW I normally use serial='pty', which ends up directing it to xenconsole (somehow...)
Quoted 30 lines
Signed-off-by Wei Liu <[email protected]>Cc Ian Campbell <[email protected]>Cc Ian Jackson <[email protected]>--- ts-debian-hvm-install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)ts-debian-hvm-install +2
-2@@ -88,7 +88,7 @@ set default="0" set timeout=5 menuentry 'debian guest auto Install' { - linux /install.amd/vmlinuz console=vga console=ttyS0,115200n8 preseed/file=/preseed.cfg + linux /install.amd/vmlinuz DEBCONF_DEBUG=5 DEBIAN_FRONTEND=text console=ttyS0,115200n8 preseed/file=/preseed.cfg initrd /install.amd/initrd.gz } END@@ -102,7 +102,7 @@ sub isolinux_cfg () { label autoinstall kernel /install.amd/vmlinuz - append video=vesa:ywrap,mtrr vga=788 console=ttyS0,115200n8 preseed/file=/preseed.cfg initrd=/install.amd/initrd.gz + append DEBCONF_DEBUG=5 DEBIAN_FRONTEND=text console=ttyS0,115200n8 preseed/file=/preseed.cfg initrd=/install.amd/initrd.gz END }
Quoted 9 lines · Wei Liu
Quoted 7 lines · Ian Campbell
Quoted 2 lines · Wei Liu
The installation log is output to serial console so that we can know if there's anything wrong.
Where does the serial console end up?
prepareguest_part_xencfgsets serial='file:/dev/stderr' which I suppose directs it to the qemu stderr which is logged?
Quoted 6 lines
I suppose it goes to guest console log.
Did I overlook something?
Did you actually confirm this in practice?
http://www.chiark.greenend.org.uk/~xensrcts/logs/26098/test-amd64-i386-xl-qemuu-ovmf-amd64/itch-mite---etc-xen-ovmf.guest.osstest.cfg has the /dev/stderr thing I mentioned.
Ian.
Quoted 9 lines · Wei Liu
Quoted 7 lines · Ian Campbell
Quoted 2 lines · Wei Liu
The installation log is output to serial console so that we can know if there's anything wrong.
Where does the serial console end up?
prepareguest_part_xencfgsets serial='file:/dev/stderr' which I suppose directs it to the qemu stderr which is logged?
Quoted 7 lines
I suppose it goes to guest console log.
Did I overlook something?
In ts-logs-capture, 'xl console' output is saved to the aformentioned file. So 'file:/dev/stderr' is not directed there, but to another file -- qemu's log.
This patch works for both cases. With this patch we should expect installer output in qemu-dm-*.log
Wei.
Quoted 36 lines
Wei.
Quoted 35 lines
FWIW I normally use serial='pty', which ends up directing it to xenconsole (somehow...)
Quoted 30 lines
Signed-off-by Wei Liu <[email protected]>Cc Ian Campbell <[email protected]>Cc Ian Jackson <[email protected]>--- ts-debian-hvm-install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)ts-debian-hvm-install +2
-2@@ -88,7 +88,7 @@ set default="0" set timeout=5 menuentry 'debian guest auto Install' { - linux /install.amd/vmlinuz console=vga console=ttyS0,115200n8 preseed/file=/preseed.cfg + linux /install.amd/vmlinuz DEBCONF_DEBUG=5 DEBIAN_FRONTEND=text console=ttyS0,115200n8 preseed/file=/preseed.cfg initrd /install.amd/initrd.gz } END@@ -102,7 +102,7 @@ sub isolinux_cfg () { label autoinstall kernel /install.amd/vmlinuz - append video=vesa:ywrap,mtrr vga=788 console=ttyS0,115200n8 preseed/file=/preseed.cfg initrd=/install.amd/initrd.gz + append DEBCONF_DEBUG=5 DEBIAN_FRONTEND=text console=ttyS0,115200n8 preseed/file=/preseed.cfg initrd=/install.amd/initrd.gz END }
Ping?
Is there any other concern about this patch?
Wei.
Quoted 3 lines · Wei Liu
Ping?
Is there any other concern about this patch?
I'd far rather see things arranged so that the console log goes into /var/log/xen/consoles/$guest.log than into qemu-dm-$guest.log, for consistency with PV guests and the general principal of least surprise. Also it separates the actual qemu logs from the guest logs.
Ian.
Quoted 10 lines · Ian Campbell
Quoted 3 lines · Wei Liu
Ping?
Is there any other concern about this patch?
I'd far rather see things arranged so that the console log goes into
/var/log/xen/consoles/$guest.logthan into qemu-dm-$guest.log, for consistency with PV guests and the general principal of least surprise. Also it separates the actual qemu logs from the guest logs.
OK, then a prerequisite patch to change serial='file:/dev/stderr' to serial='pty' is required.
Wei.
Quoted 2 lines
Ian.
Quoted 6 lines · Wei Liu
Quoted 5 lines · Ian Campbell
Quoted 3 lines · Wei Liu
Ping?
Is there any other concern about this patch?
Quoted 8 lines
Quoted 5 lines
I'd far rather see things arranged so that the console log goes into
/var/log/xen/consoles/$guest.logthan into qemu-dm-$guest.log, for consistency with PV guests and the general principal of least surprise. Also it separates the actual qemu logs from the guest logs.OK, then a prerequisite patch to change serial='file:/dev/stderr' to serial='pty' is required.
IMHO "make the serial log go somewhere useful and use it for X, Y and Z" could reasonably be a single patch, but you probably want to get Ian's agreement before you do anything.
Ian.