On Wed, Jul 16, 2014 at 03:54:16PM -0500, Todd T. Fries wrote: > I probably authored the bits in question. > > The '-daemonize -nographic' was the equivalent of the current > > -daemonize -display none -vga none > > The whole point of '-nographic' was to force serial console. > > When a system is serial console only, no vnc, just a unix socket or a > tcp port, what is the point of having graphics when daemonized again? > > While here please s/55/56/ in your diff. > > I will specifically check to see if sparc serial console is functioning > with the above, I've mailed the qemu list about it in the past.
Something like this? Let me know if this is Ok or if there is room for any further improvement to the README. Index: Makefile =================================================================== RCS file: /home/cvs/ports/emulators/qemu/Makefile,v retrieving revision 1.116 diff -u -p -u -p -r1.116 Makefile --- Makefile 25 Apr 2014 20:59:43 -0000 1.116 +++ Makefile 16 Jul 2014 21:30:14 -0000 @@ -5,6 +5,7 @@ ONLY_FOR_ARCHS= amd64 i386 powerpc sparc COMMENT= multi system emulator DISTNAME= qemu-2.0.0 +REVISION= 0 CATEGORIES= emulators MASTER_SITES= http://wiki.qemu.org/download/ EXTRACT_SUFX= .tar.bz2 Index: pkg/README =================================================================== RCS file: /home/cvs/ports/emulators/qemu/pkg/README,v retrieving revision 1.10 diff -u -p -u -p -r1.10 README --- pkg/README 3 Jan 2013 08:30:54 -0000 1.10 +++ pkg/README 16 Jul 2014 21:29:09 -0000 @@ -8,13 +8,13 @@ $OpenBSD: README,v 1.10 2013/01/03 08:30 1. Get a bootable CDROM image: - $ ftp ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/i386/cd52.iso + $ ftp ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/i386/cd56.iso or to use a 64-bit client OS or SPARC, respectively: - $ ftp ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/amd64/cd52.iso + $ ftp ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/amd64/cd56.iso - $ ftp ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/sparc/cd52.iso + $ ftp ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/sparc/cd56.iso 2. Create a virtual disk image: @@ -23,15 +23,15 @@ $OpenBSD: README,v 1.10 2013/01/03 08:30 3. Install the OS: $ qemu-system-i386 -m 32 -monitor stdio -no-fd-bootchk \ - -hda virtual.img -cdrom cd52.iso -boot d + -hda virtual.img -cdrom cd56.iso -boot d or: $ qemu-system-x86_64 -m 32 -monitor stdio -no-fd-bootchk \ - -hda virtual.img -cdrom cd52.iso -boot d + -hda virtual.img -cdrom cd56.iso -boot d $ qemu-system-sparc -m 32 -monitor stdio \ - -hda virtual.img -cdrom cd52.iso -boot d + -hda virtual.img -cdrom cd56.iso -boot d NOTE: start this inside an xterm or equivalent. NOTE: be sure to choose serial console during install. @@ -50,13 +50,15 @@ $OpenBSD: README,v 1.10 2013/01/03 08:30 5. Boot normally from the virtual disk: - $ qemu-system-i386 -m 32 -nographic -no-fd-bootchk -hda virtual.img + $ qemu-system-i386 -m 32 -daemonize -display none -vga none -no-fd-bootchk \ + -hda virtual.img or: - $ qemu-system-x86_64 -m 32 -nographic -no-fd-bootchk -hda virtual.img + $ qemu-system-x86_64 -m 32 -daemonize -display none -vga none -no-fd-bootchk \ + -hda virtual.img - $ qemu-system-sparc -m 32 -nographic -hda virtual.img + $ qemu-system-sparc -m 32 -daemonize -display none -vga none -hda virtual.img ==> Networking @@ -112,8 +114,9 @@ $OpenBSD: README,v 1.10 2013/01/03 08:30 root open the tunnel device and then use sudo again to drop privileges and start QEMU: - $ sudo sh -c "sudo -u $USER qemu-system-i386 -nographic -net nic \ - -net tap,fd=3 -no-fd-bootchk -hda virtual.img 3<>/dev/tun0" + $ sudo sh -c "sudo -u $USER qemu-system-i386 -daemonize -display none \ + -vga none -net nic -net tap,fd=3 -no-fd-bootchk -hda virtual.img \ + 3<>/dev/tun0" NOTE: sudo calls closefrom(2). In order to have more than one fd passed tap interface, a line to sudoers akin to: @@ -198,7 +201,7 @@ $OpenBSD: README,v 1.10 2013/01/03 08:30 accomplish this, both in effect the same solution: a. qemu-system-i386 -vnc :0 -serial stdio .. virtual.img \ - -cdrom install52.iso -boot d + -cdrom install56.iso -boot d - this option permits you to use VNC from some system to connect to the QEMU instance and 'set tty com0' at the @@ -206,7 +209,8 @@ $OpenBSD: README,v 1.10 2013/01/03 08:30 - you may then disconnect VNC and use the terminal from which you started QEMU to do the install. - b. qemu-system-i386 -nographic .. virtual.img -fda floppy52.fs -boot a + b. qemu-system-i386 -daemonize -display none -vga none .. virtual.img \ + -fda floppy56.fs -boot a - this maps both the serial port and the (qemu) monitor prompt to the terminal QEMU was started on. @@ -215,7 +219,7 @@ $OpenBSD: README,v 1.10 2013/01/03 08:30 - preparation of the floppy image to force serial console mode is straightforward: - vnconfig vnd0 floppy52.fs + vnconfig vnd0 floppy56.fs mount /dev/vnd0c /mnt mkdir /mnt/etc echo set tty com0 > /mnt/etc/boot.conf @@ -253,7 +257,7 @@ $OpenBSD: README,v 1.10 2013/01/03 08:30 sh -c "sudo -u $USER \ ${TRUEPREFIX}/bin/qemu-system-i386 \ -daemonize \ - -nographic \ + -daemonize -display none -vga none \ -net nic,vlan=0,macaddr=52:54:00:4e:62:8f \ -net tap,vlan=0,fd=3 \ -m 128 \ -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
