On Thu, Jul 17, 2014 at 12:50:44AM +0100, Stuart Henderson wrote: > On 2014/07/16 19:31, Brad Smith wrote: > > This one still has some -daemonize -display none -vga none in places > where -nographic is the most appropriate option:
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 23:54:26 -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: @@ -22,16 +22,16 @@ $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 + $ qemu-system-i386 -m 64 -monitor stdio -no-fd-bootchk \ + -hda virtual.img -cdrom i386/cd56.iso -boot d or: - $ qemu-system-x86_64 -m 32 -monitor stdio -no-fd-bootchk \ - -hda virtual.img -cdrom cd52.iso -boot d + $ qemu-system-x86_64 -m 64 -monitor stdio -no-fd-bootchk \ + -hda virtual.img -cdrom amd64/cd56.iso -boot d - $ qemu-system-sparc -m 32 -monitor stdio \ - -hda virtual.img -cdrom cd52.iso -boot d + $ qemu-system-sparc -m 64 -monitor stdio \ + -hda virtual.img -cdrom sparc/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 64 -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 64 -display none -vga none -no-fd-bootchk \ + -hda virtual.img - $ qemu-system-sparc -m 32 -nographic -hda virtual.img + $ qemu-system-sparc -m 64 -display none -vga none -hda virtual.img ==> Networking @@ -112,8 +114,8 @@ $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 -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 +200,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 i386/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 +208,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 -display none -vga none .. virtual.img -fda \ + i386/floppy56.fs -boot a - this maps both the serial port and the (qemu) monitor prompt to the terminal QEMU was started on. @@ -215,7 +218,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 i386/floppy56.fs mount /dev/vnd0c /mnt mkdir /mnt/etc echo set tty com0 > /mnt/etc/boot.conf @@ -252,14 +255,13 @@ $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 \ -hda $hddir/virtual.img \ - -serial telnet:127.0.0.1:1080,server,nowait \ - -monitor telnet:127.0.0.1:1081,server,nowait \ + -serial telnet:127.0.0.1:1085,server,nowait \ + -monitor telnet:127.0.0.1:1086,server,nowait \ -no-fd-bootchk 3<>/dev/tun0" ) echo "." -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
