From 4bf2d516fb6a7a94428e289eb0617997b4e7f02b Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Sat, 16 Apr 2016 18:30:24 +0100 Subject: Advise use of log-mode for readable logs Also include notes on UEFI testing with -monitor none --- doc/overview.rst | 8 ++++++++ examples/jessie-uefi-amd64.sh | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/overview.rst b/doc/overview.rst index 670c898..60319f5 100644 --- a/doc/overview.rst +++ b/doc/overview.rst @@ -387,6 +387,10 @@ option to set mode 0644 for the specified user or use chmod manually:: sudo chmod a+w ./test.img +If ``--log`` is also used, consider using ``--log-mode`` as well so +that the logfile is readable by the owner. By default, the log file +permissions are 0o600. The logfile itself will be owned by ``root``. + Execute using qemu, e.g. on amd64 using qemu-system-x86_64:: qemu-system-x86_64 -drive format=raw,file=./test.img @@ -409,6 +413,10 @@ the location of this file with the -L option:: $ qemu-system-x86_64 -L /usr/share/ovmf/ -machine accel=kvm \ -m 4096 -smp 2 -drive format=raw,file=test.img +To use the ``-nographic`` option, ensure that the ``--serial-console`` +option is supplied to ``vmdebootstrap`` and use ``-monitor none`` when +booting the image with QEMU. + For further examples, including u-boot support for beaglebone-black, see ``/usr/share/vmdebootstrap/examples`` diff --git a/examples/jessie-uefi-amd64.sh b/examples/jessie-uefi-amd64.sh index 0578450..4504200 100755 --- a/examples/jessie-uefi-amd64.sh +++ b/examples/jessie-uefi-amd64.sh @@ -6,9 +6,9 @@ WHO=`whoami` sudo vmdebootstrap --owner ${WHO} --verbose \ --sudo --lock-root-password \ --enable-dhcp --configure-apt \ - --log amd64-uefi.log --log-level debug \ + --log amd64-uefi.log --log-mode=0644 --log-level debug \ --size 5G --distribution jessie \ - --grub --use-uefi \ + --grub --use-uefi --serial-console \ --package task-xfce-desktop \ --customize ./examples/qemu-efi-bochs-drm.sh \ "$@" -- cgit v1.2.1