Professional Web Applications Themes

QEMU needs /dev/tun0 ? - FreeBSD

Hi, I am trying to run Windows 2000 inside QEMU, and it works well (though a bit slow). In order to get my emulated machine on the Internet, I have to use "/dev/tun0". I read online that the default FreeBSD 5.x has "tun" turned on in the kernel, but I do not appear to have a "/dev/tun0" device. Does anybody know anything about this? I tried using the "-user-mode" networking, and it worked - I can ping 10.0.2.2, but I cannot talk to any computer except my FreeBSD host. So I think I need to figure out "tun". Most of ...

  1. #1

    Default QEMU needs /dev/tun0 ?


    Hi,

    I am trying to run Windows 2000 inside QEMU, and it works well (though a
    bit slow). In order to get my emulated machine on the Internet, I have
    to use "/dev/tun0". I read online that the default FreeBSD 5.x has
    "tun" turned on in the kernel, but I do not appear to have a "/dev/tun0"
    device.
    Does anybody know anything about this?

    I tried using the "-user-mode" networking, and it worked - I can ping
    10.0.2.2, but I cannot talk to any computer except my FreeBSD host. So
    I think I need to figure out "tun".

    Most of the literature on the internet related to "tun" and "tun/tap"
    seems to be about linux, but I suspect FreeBSD is similar. I am really
    impressed with QEMU!

    thx
    bsdzz Guest

  2. #2

    Default Re: QEMU needs /dev/tun0 ?

    Hey,
    tun0 is there, you just don't see it :), do "ls /dev/tun0", anyway, I could'nt
    make qemu work that way, then I realize that using nat on the bsd host all
    worked fine for my guest system (gentoo), I hope this helps

    good luck

    El Miércoles 09 Marzo 2005 23:32, bsdzz escribió: 

    --
    www.eXactas.org - La Universidad Evolutiva
    Luciano Guest

  3. #3

    Default Re: QEMU needs /dev/tun0 ?

     
    You're right, I see /dev/tun0 now!

    I notice in the docs located here:

    http://fabrice.bellard.free.fr/qemu/qemu-doc.html#SEC10

    they say this:

    "You must verify that your host kernel supports the TUN/TAP network
    interfaces: the device `/dev/net/tun' must be present."

    Maybe I can make a soft link from /dev/tun0 to to /dev/net/tun0 ??

    How do you use "nat" to make QEMU work?

    thx


    bsdzz Guest

  4. #4

    Default Re: QEMU needs /dev/tun0 ?

     
    I'm using "-user-net" again, and now it works..hm. I'm not sure why it
    is now working, but my virtual machine can access the internet - so I'm
    happy. Feels like a good time to make a backup of my machine.

    thx!
    bsdzz Guest

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139