[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Bug 647793] Re: tap-bsd.c has no test for Mac OS X
From: |
Ted Lemon |
Subject: |
[Qemu-devel] [Bug 647793] Re: tap-bsd.c has no test for Mac OS X |
Date: |
Sun, 10 Oct 2010 16:42:34 -0000 |
This is really pathetic, but I'm afraid I have no clue how to do this:
> Could you please resubmit it to qemu-devel using git-send-email and a
full commit message with Signed-off-by?
I tried googling and reading manuals, but I couldn't connect the dots.
Can you send me a sample command line? I'm sure it's dead easy, but my
experience with git is basically just downloading sources--all the
projects I work on regularly still use cvs or svn.
To set this up on Mac OS X, you need to install the tun/tap drivers,
because OSX doesn't come with any. These are available at
tuntaposx.sourceforge.net. If you use Tunnelblick to run openvpn, it
sets up tun/tap for you and then cleverly removes the kernel modules
when you don't have a tunnel open, so that the drivers are there but not
active. You will have to overcome this somehow; I have an older
version of Tunnelblick that doesn't do this, so I don't know how to work
around this problem. If you aren't using Tunnelblick, I think
installing the tun/tap drivers will Just Work.
Once you have them installed, you can just start up qemu normally. I
use the following script:
../qemu/sparc-softmmu/qemu-system-sparc -M SS-5 -bios ./ss5.bin
-nographic -hda SunOS4.1.4 -net tap,script=tap1,vlan=0 -net nic,vlan=0
The startup script (tap1) is this:
#!/bin/sh
ifconfig tap1 192.5.5.1 netmask 255.255.255.0
Because it's running ifconfig, the whole thing has to be started as
root; I think it would be fine to drop privs after that, though.
--
tap-bsd.c has no test for Mac OS X
https://bugs.launchpad.net/bugs/647793
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
Status in QEMU: New
Bug description:
The Mac OS X tun/tap driver is equivalent to the FreeBSD driver, but bsd-tap.c
uses the NetBSD/OpenBSD driver, which works differently. The fix is
easy--just check for __APPLE__ in the same place where you check for FreeBSD in
net/tap-bsd.c.
This problem exists in the current git tree, at least as of yesterday afternoon.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [Bug 647793] Re: tap-bsd.c has no test for Mac OS X,
Ted Lemon <=