linux-um archives
 help / color / mirror / Atom feed
From: "roland" <for_spam@gmx.de>
To: Naomi Fox <schpoo@Dartmouth.EDU>, Nix <nix@esperi.org.uk>
Cc: user-mode-linux-user@lists.sourceforge.net,
	user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] [BUG!?] Re: [uml-user] TUNSETIFF failed, errno = 16SIOCSIFFLAGS: Device or resource busy
Date: Wed, 16 Jun 2004 18:47:17 +0200	[thread overview]
Message-ID: <25d101c453c1$9978f090$2000000a@schlepptopp> (raw)
In-Reply-To: 87zn73biui.fsf@amaterasu.srvr.nix

hi!

> > When I start up my UML, the networking works fine.  If I bring down my
> > interface and attempt to bring it back up again, I get the following
> > message.
> >
> > # ifconfig eth0 down
> > # ifconfig eth0 up
> > TUNSETIFF failed, errno = 16SIOCSIFFLAGS: Device or resource busy

> ... which it is: it's a component of the bridge, and doesn't have its
> own independent existence anymore.

yes - and that is why we should somewhat call it a "bug" - because a uml user indeed is allowed to bring down/up eth0, but he
(usually) isn't allowed to do something outside the uml.

so - what could he do?
call his uml provider to tell him he should fix the tun/tap/bridge for him?

no - uml should handle this itself,IMHO.

> Either bring down br0, or bring down the UML side of the link.
that is a workaround , not a solution.
i think UML needs some fix to handle tun/tap via bridge appropriately.

regards
roland






----- Original Message ----- 
From: "Nix" <nix@esperi.org.uk>
To: "Naomi Fox" <schpoo@Dartmouth.EDU>
Cc: <user-mode-linux-user@lists.sourceforge.net>
Sent: Wednesday, June 16, 2004 5:52 PM
Subject: Re: [uml-user] TUNSETIFF failed, errno = 16SIOCSIFFLAGS: Device or resource busy


> On Tue, 15 Jun 2004, Naomi Fox stated:
> > I am running a uml using a tuntap device connected to a bridge.
> >
> > # brctl show
> > bridge name     bridge id               STP enabled     interfaces
> > br0             8000.000255ffc0ce       no              eth0
> >                                                         tap0
> >
> > When I start up my UML, the networking works fine.  If I bring down my
> > interface and attempt to bring it back up again, I get the following
> > message.
> >
> > # ifconfig eth0 down
> > # ifconfig eth0 up
> > TUNSETIFF failed, errno = 16SIOCSIFFLAGS: Device or resource busy
>
> ... which it is: it's a component of the bridge, and doesn't have its
> own independent existence anymore.
>
> Either bring down br0, or bring down the UML side of the link.
>
> Example, from my startup scripts, using the brctl and ip tools instead
> of ageing ifconfig:
>
> brctl addbr adsl
> brctl stp adsl off
> brctl setfd adsl 1
> brctl sethello adsl 1
>
> brctl addif adsl adsl-phys
> brctl addif adsl tap0
>
> ip link set dev adsl mtu 1458 up
>
> -- 
> `We in no way believe that this Christ was a space alien.'
>                     --- A creationist website goes completely bonkers
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
> Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
> Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
> REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
> _______________________________________________
> User-mode-linux-user mailing list
> User-mode-linux-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
>



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

       reply	other threads:[~2004-06-16 16:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20040615113816.02b911c5.schpoo@dartmouth.edu>
     [not found] ` <87zn73biui.fsf@amaterasu.srvr.nix>
2004-06-16 16:47   ` roland [this message]
2004-06-16 21:59     ` [uml-devel] Re: [BUG!?] Re: [uml-user] TUNSETIFF failed, errno = 16SIOCSIFFLAGS: Device or resource busy Nix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='25d101c453c1$9978f090$2000000a@schlepptopp' \
    --to=for_spam@gmx.de \
    --cc=nix@esperi.org.uk \
    --cc=schpoo@Dartmouth.EDU \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    --cc=user-mode-linux-user@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox