On 16/07/14 6:52 PM, Stuart Henderson wrote:
On 2014/07/16 17:35, Brad Smith wrote:

      $ 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

Please use -m 64, it seems 32MB is no longer enough to run the amd64
installer.

That is fine with me.

32MB may still be ok for i386 but there are problems with the current
i386 snapshot ramdisk I have (the installer only lists kernels and x sets,
no base sets), I'm assuming this is a temporary build problem for now, but
anyway it means I can't test that properly. Maybe just use -m 64 for both
for consistency.

I will change it to 64 for i386 as well. It is only an example anyway
so users can use whatever they want if they choose to use a different value. I am also going to bump the sparc examples as 32MB isn't a
whole lot of memory.

     NOTE: start this inside an xterm or equivalent.

Alternatively you can swap "-monitor stdio" for "-monitor none -display
curses" and avoid A) the need for X and B) the risk of getting stuck
with the keyboard grabbed and unable to exit without switching to a text
VT and killing qemu. Downside of this is that a standard xterm is 80x24
and PC screen is 80x25 so you have to resize or lose a line - not sure
which is better.

Seeing as I haven't used any of these examples to date and don't
really have an opinion regarding this change. Todd, what do you
think about this change?

  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

This is not supposed to -daemonize - intent here is to display serial on
stdout (this matches the "NOTE: be sure to choose serial console during
install.") - the existing command line works perfectly for that, no
change is necessary.

That was not intended. I was copying and pasting around the -display
none -vga none bits but it looks like I copied -daemonize while I was
at it.

              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 is the one that needs changing. Also on the lines below this the
default tcp port to connect serial i/o to is 1080 which is in common use
for socks so I have adjusted that in the possible diff below.

Ya, good idea to move that away from 1080.

Index: README
===================================================================
RCS file: /cvs/ports/emulators/qemu/pkg/README,v
retrieving revision 1.10
diff -u -p -r1.10 README
--- README      3 Jan 2013 08:30:54 -0000       1.10
+++ README      16 Jul 2014 22:49:02 -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,17 +23,18 @@ $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 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
+       -hda virtual.img -cdrom sparc/cd56.iso -boot d

-   NOTE: start this inside an xterm or equivalent.
+   NOTE: start this inside an xterm or equivalent, or swap "-monitor stdio"
+         for "-monitor none -display curses" and use an 80x25+ terminal.
     NOTE: be sure to choose serial console during install.
     NOTE: -no-fd-bootchk permits booting faster when no floppy is
           in use, but is not supported for qemu-system-sparc.
@@ -54,7 +55,7 @@ $OpenBSD: README,v 1.10 2013/01/03 08:30

     or:

-    $ qemu-system-x86_64 -m 32 -nographic -no-fd-bootchk -hda virtual.img
+    $ qemu-system-x86_64 -m 64 -nographic -no-fd-bootchk -hda virtual.img

      $ qemu-system-sparc -m 32 -nographic -hda virtual.img

@@ -198,7 +199,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 +207,7 @@ $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 -nographic .. 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 +216,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
@@ -252,14 +253,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 \
                  -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.

Reply via email to