qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] Setting a interface name with qemu-bridge-helper?


From: Thomas Huth
Subject: Re: [Qemu-discuss] Setting a interface name with qemu-bridge-helper?
Date: Mon, 15 Jan 2018 08:03:32 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

On 13.01.2018 01:34, Shaun Reitan wrote:
> When starting vm's with '-netdev bridge,id=net0,br=br0' each vm is given
> a tapX interface name and from what I can tell, there is no simple way
> to figure out which interface belongs to which VM.
> 
> I'd like to see a name option added to it which would be passed along to
> the qemu-bridge-helper.  Something like '-netdev
> bridge,id=net0,br=br0,name=vm1net0' or '-netdev
> bridge,id=net0,br=br0,ifname=vm1net0'
> 
> Any reason why setting the tap's interface name was left out before I go
> attempting to patch this functionality in? Or maybe is there a fast and
> simple way to get the tap interface of the VM

I think it should be possible to specify the name of the tap interface
via the "ifname=" parameter, e.g.: -netdev tap,ifname=tap2

In case you already started QEMU without that parameter, you can look up
the tapX name via the "info network" monitor command.

 HTH,
  Thomas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]