From 1340b4067abb42b2f57667123f15d722e1f9957c Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] Add optional 'make boot SERIAL=yes' to test the serial console. --- Makefile.in | 4 +++- README | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index e0baf03..89e6474 100644 --- a/Makefile.in +++ b/Makefile.in @@ -42,7 +42,7 @@ VIRTP2V_RPM := $(PACKAGE)-$(VERSION)-1.noarch.rpm all: @echo "make rpm Build the virt-p2v RPM" @echo "make build Build the live CD ISO" - @echo "make boot [HDA=hda.img] [HDB=hdb.img] [ISO=livecd.iso]" + @echo "make boot [HDA=hda.img] [HDB=hdb.img] [ISO=livecd.iso] [SERIAL=yes]" @echo " Boot built/named ISO (uses qemu)" @echo "make update Update an existing live CD ISO with new" @echo " virt-p2v script, without doing full rebuild" @@ -104,6 +104,8 @@ endif ifneq ($(HDB),) QEMU_ARGS += -hdb $(HDB) endif +SERIAL = none +QEMU_ARGS += -serial $(SERIAL) boot: $(QEMU) $(QEMU_ARGS) diff --git a/README b/README index 521cfb4..9801015 100644 --- a/README +++ b/README @@ -77,3 +77,13 @@ eg. from /var/lib/xen/images, to experiment with). For example: cp /var/lib/xen/images/rhel5gax32fv.img . make boot HDA=rhel5gax32fv.img + + +Serial console +---------------------------------------------------------------------- + +With livecd-tools >= 018, the CD should enable the serial console +(ttyS0, 9600 8N1). + +You can test this with: + make boot [...] SERIAL=yes -- 1.8.3.1