Honestly, I have two problems with this. 1) nowhere do you mention you require root privs
2) this does not drop to a non root user Unfortunately, we almost need to mention somewhere that amd64 sucks wrt 'user' aka 'slirp' mode net. Let me get back with a better solution tomorrow. Thanks, -- Todd Fries .. t...@fries.net _____________________________________________ | \ 1.636.410.0632 (voice) | Free Daemon Consulting, LLC \ 1.405.227.9094 (voice) | http://FreeDaemonConsulting.com \ 1.866.792.3418 (FAX) | "..in support of free software solutions." \ 250797 (FWD) | \ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 37E7 D3EB 74D0 8D66 A68D B866 0326 204E 3F42 004A http://todd.fries.net/pgp.txt Penned by Antoine Jacoutot on 20090210 22:18.01, we have: | On Tue, 10 Feb 2009, Marco Peereboom wrote: | | > Never got a reply on this. | > | | As I'm dumb too, I'm all for it. | However, I wonder if it wouln't be a better idea to merge the "Quick | start" and your "Even quicker start...". | Also, I would use /bin/sh instead of /bin/ksh for the scripts. | While here, could you add RCS Id to the README.OpenBSD file. | | If this eventually gets commited, it also needs a package bump. | | Anyway, I like the idea :) | | Cheers! | | > On Wed, Dec 24, 2008 at 11:47:23AM -0600, Marco Peereboom wrote: | > > I always spend 30 minutes re-figuring out how to get qemu running. I | > > know folks like thib and some others have the same issue. We simply | > > aren't smart enough to understand the rest of the README. Here is a | > > diff to the README to make it useful for people who don't know how to | > > get this working quickly. | > > | > > ok | > > | > > --- /usr/ports/emulators/qemu/files/README.OpenBSD Thu Dec 11 03:17:33 2008 | > > +++ /usr/local/share/doc/qemu/README.OpenBSD Wed Dec 24 11:40:58 2008 | > > @@ -12,7 +12,35 @@ README for OpenBSD users | > > 5. qemu -m 32 -monitor stdio virtual.hd | > > (normal boot from hard drive) | > > | > > +==> Even quicker start with access to the outside world | > > | > > +1. Get a CDROM image: | > > + ftp ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/i386/cd44.iso | > > +2. Create a virtual disk image: | > > + qemu-img create boot.img 1G | > > +3. First run with network access (replace nfe0 with the nic that is attached | > > + to the physical network): | > > + ETHER=nfe0 BRIDGE=bridge0 qemu -no-fd-bootchk -hda boot.img \ | > > + -cdrom cd44.iso -net nic,model=rtl8139 -net tap | > > +4. Install OS as usual and use re0 for external network access; optionally | > > + select serial console. | > > +5. Create runqemu script with the following: | > > + #!/bin/ksh | > > + export ETHER=nfe0 | > > + export BRIDGE=bridge0 | > > + qemu -no-fd-bootchk -hda boot.img -net nic,model=rtl8139 -net tap | > > + | > > + In serial console mode do this: | > > + #!/bin/ksh | > > + export ETHER=nfe0 | > > + export BRIDGE=bridge0 | > > + qemu -no-fd-bootchk -nographic -serial stdio -hda boot.img \ | > > + -net nic,model=rtl8139 -net tap | > > + 6. Make the script runable: | > > + chmod +x runqemu | > > + 7. Run it! | > > + ./runqemu | > > + | > > ==> Networking | > > | > > 1. Default Settings | > > | > | > | | -- | Antoine