<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16535"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px" 
id=MailContainerBody leftMargin=0 topMargin=0 bgColor=#ffffff text=#000000 
CanvasTabStop="true" name="Compose message area">
<DIV><FONT face=Calibri>As the iface-list command doesn't work, I'm trying to 
get physical interface of a host via nodedev-list, but it doesn't give me 
bridges, like br0 for example (which exists anyway). How can I retrieve 
available bridges of a host ?</FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=arnaud.champion@devatom.fr 
href="mailto:arnaud.champion@devatom.fr">Dev.Atom</A> </DIV>
<DIV><B>Sent:</B> Tuesday, April 20, 2010 2:09 PM</DIV>
<DIV><B>To:</B> <A title=laine@laine.org href="mailto:laine@laine.org">Laine 
Stump</A> </DIV>
<DIV><B>Cc:</B> <A title=libvir-list@redhat.com 
href="mailto:libvir-list@redhat.com">libvir-list@redhat.com</A> </DIV>
<DIV><B>Subject:</B> Re: [libvirt] iface-list command in virsh</DIV></DIV></DIV>
<DIV><BR></DIV>
<DIV><FONT face=Calibri>Is there a way to give root privileges to the process 
via setcap ?</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=laine@laine.org 
href="mailto:laine@laine.org">Laine Stump</A> </DIV>
<DIV><B>Sent:</B> Tuesday, April 20, 2010 1:38 PM</DIV>
<DIV><B>To:</B> <A title=arnaud.champion@devatom.fr 
href="mailto:arnaud.champion@devatom.fr">Dev.Atom</A> </DIV>
<DIV><B>Cc:</B> <A title=libvir-list@redhat.com 
href="mailto:libvir-list@redhat.com">libvir-list@redhat.com</A> </DIV>
<DIV><B>Subject:</B> Re: [libvirt] iface-list command in virsh</DIV></DIV></DIV>
<DIV><BR></DIV>On 04/19/2010 04:06 PM, Dev.Atom wrote: 
<BLOCKQUOTE cite=mid:6E4B4F1F6C1F48998AF60B20370DF3EE@ArnaudVAIO type="cite">
  <META name=GENERATOR content="MSHTML 8.00.7600.16535">
  <DIV><FONT face=Calibri>Hi,</FONT></DIV>
  <DIV> </DIV>
  <DIV><FONT face=Calibri>I'm trying to list physical interface of a remote 
  tcp host via the C API and it fails. I have tried to use virsh iface-list 
  in remote TCP connection and it fails also. I have trying on the libvirt host 
  with my normal account and it fails also, but when I connect under root 
  account on the libvirt host, iface-list works. Any clue 
?</FONT></DIV></BLOCKQUOTE><BR>When you run virsh locally as non-root, it 
connects to qemu://session, which doesn't have root privileges, and the iface-* 
commands won't work (because netcf requires root to run). If you run virsh as 
root, you will be connected to qemu://system, which has root, and iface-* will 
work.<BR><BR>The failure to work when connecting to a remote libvirtd is 
puzzling, though. <BR><BR>
<P>
<HR>

<P></P>--<BR>libvir-list mailing 
list<BR>libvir-list@redhat.com<BR>https://www.redhat.com/mailman/listinfo/libvir-list</BODY></HTML>