[Netkit.users] Problem creating tap

Vsevolod Krishchenko mstu at sevik.ru
Fri Nov 14 14:36:13 CET 2008


On Friday 14 November 2008 11:56:55 Carlos García Argos wrote:

Some ideas:

1. I believe you need to enable root account or (better) replace su 
with sudo in netkit/bin/lcommon. Both ways work for me in ubuntu 
8.04.

2. It is required to apply patch to avoid future problems with tap: 
http://list.dia.uniroma3.it/pipermail/netkit.users/2008-February/000349.html
(just join two lines 'if [ "${BASE_HUB_...' before patching)

> Hello all,
>
> I've searched for this error in several places but no luck.
>
> I am trying to set up a virtual machine connected to a LAN out of
> the computer running Netkit. I've followed the instructions in the
> FAQ and either no tap is established or I get the error I include
> below.
>
> Some things I've tried:
>
> - Using eth0 for the tap (in the error below it's eth2, but it's
> the same in both cases)
> - Creating interfaces with the IP addresses in the host and the
> guest, in the host but not the guest, the other way around and none
> of them. - Using lab.conf and command 'vstart vm ...' below. With
> lab.conf, the line that lstart uses is something like 'vstart vm
> --eth2=tap10100101010002', that is, no commas nor dots.
>
> Maybe I'm just missing something here. My Netkit version is as
> follows:
>
> netkit at intersection-netkit:~$ /opt/netkit2/bin/vstart --version
> vstart version 2.3
> Netkit version:            2.4
> Netkit kernel version:     K2.3 (2.6.23.1)
> Netkit filesystem version: F3.0a
> Host kernel version:       2.6.24-16-generic
>
> Also, my system information is:
> netkit at intersection-netkit:~$ uname -a
> Linux intersection-netkit 2.6.24-16-generic #1 SMP Thu Apr 10
> 13:23:42 UTC 2008 i686 GNU/Linux
>
> It's a recently installed Kubuntu 8.04.
>
> *************
> root at intersection-netkit:~/netkit-labs/even-simpler-bgp# vstart
> router1 --eth2=tap,10.100.0.1,10.100.0.2
>
>
> ============= Starting virtual machine "router1" =============
>   Kernel:     /opt/netkit2/kernel/netkit-kernel
>   Modules:    /opt/netkit2/kernel/modules
>   Memory:     8 MB
>   Model fs:   /opt/netkit2/fs/netkit-fs
>   Filesystem:
> /home/netkit/netkit-labs/even-simpler-bgp/router1.disk Interfaces:
> vstart: In command line "/opt/netkit2/bin/vstart router1
> --eth2=tap,10.100.0.1,10.100.0.2"
> Invalid tap collision domain specification:
> "eth2=tap,10.100.0.1,10.100.0.2".
> Use /opt/netkit2/bin/vstart --help to get help.
>
> *************
>
> Hope someone can help :)
>
> Best regards,
>
> Carlos García Argos
>
> _______________________________________________
> Netkit.users mailing list
> Netkit.users at list.dia.uniroma3.it
> http://list.dia.uniroma3.it/mailman/listinfo/netkit.users



-- 
Крищенко Всеволод Александрович
к.т.н., доцент МГТУ им. Н.Э. Баумана


More information about the Netkit.users mailing list