Skip to contentSkip to conversation

ts-debian-hvm-install: use text installer frontend

PATCH Superseded Wei Liu 2 participants 9 messages May 1, 2014 – May 9, 2014

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

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.

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
index c322d6b..03f585a 100755
@@ -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
#1 lore raw
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
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
index c322d6b..03f585a 100755
@@ -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
 }
 
author
#2 lore raw
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_xencfg sets serial='file:/dev/stderr' which I suppose directs it to the qemu stderr which is logged?

I suppose it goes to guest console log.

Like:
http://www.chiark.greenend.org.uk/~xensrcts/logs/26098/test-amd64-i386-xl-qemuu-ovmf-amd64/guest-ovmf.guest.osstest-console

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
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
index c322d6b..03f585a 100755
@@ -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
 }
 
#3 lore raw
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_xencfg sets 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.

Like:
http://www.chiark.greenend.org.uk/~xensrcts/logs/26098/test-amd64-i386-xl-qemuu-ovmf-amd64/guest-ovmf.guest.osstest-console

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.

author
#4 lore raw
In reply to Wei Liu
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_xencfg sets 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.

Like:
http://www.chiark.greenend.org.uk/~xensrcts/logs/26098/test-amd64-i386-xl-qemuu-ovmf-amd64/guest-ovmf.guest.osstest-console

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.

http://www.chiark.greenend.org.uk/~xensrcts/logs/26098/test-amd64-i386-xl-qemuu-ovmf-amd64/itch-mite---var-log-xen-qemu-dm-ovmf.guest.osstest.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
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
index c322d6b..03f585a 100755
@@ -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
 }
 
#6 lore raw
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.

author
#7 lore raw
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.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.

OK, then a prerequisite patch to change serial='file:/dev/stderr' to serial='pty' is required.

Wei.

Quoted 2 lines

Ian.

#8 lore raw
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.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.

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.