Re: [libvirt] iface-list command in virsh

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

 



Here is the full test :
--------------------------------------------------------------------------------
[root@mingwenv arnaud]# whoami
root
[root@mingwenv arnaud]# virsh
Bienvenue dans virsh, le terminal de virtualisation interactif.

Taper :  « help » pour l'aide ou « help » avec la commande
        « quit » pour quitter

virsh # iface-list
Nom                  Ãtat      MAC Address
--------------------------------------------
eth0                 actif      00:0c:29:28:bb:3e
lo                   actif      00:00:00:00:00:00

virsh # quit

[root@mingwenv arnaud]# exit
exit
[arnaud@mingwenv ~]$ whoami
arnaud
[arnaud@mingwenv ~]$ virsh
Bienvenue dans virsh, le terminal de virtualisation interactif.

Taper :  « help » pour l'aide ou « help » avec la commande
        « quit » pour quitter

virsh # iface-list
erreur :Failed to list active interfaces
erreur :this function is not supported by the hypervisor: virConnectNumOfInterfaces

virsh # quit

[arnaud@mingwenv ~]$

--------------------------------------------------------------------------------

As you can see, at first, with root it works, not with my user account.


--------------------------------------------------
From: "Matthias Bolte" <matthias.bolte@xxxxxxxxxxxxxx>
Sent: Tuesday, April 20, 2010 9:53 AM
To: "Dev.Atom" <arnaud.champion@xxxxxxxxxx>
Cc: <libvir-list@xxxxxxxxxx>
Subject: Re: [libvirt] iface-list command in virsh

2010/4/20 Dev.Atom <arnaud.champion@xxxxxxxxxx>:
Hi,

Yes I know that, and I use the fedora 12 distro, with netcf support and
libvirt rpm are compiled with netcf support. That's why it works when I am
root, but only when I am root

--------------------------------------------------
From: "Matthias Bolte" <matthias.bolte@xxxxxxxxxxxxxx>
Sent: Monday, April 19, 2010 11:08 PM
To: "Dev.Atom" <arnaud.champion@xxxxxxxxxx>
Cc: <libvir-list@xxxxxxxxxx>
Subject: Re: [libvirt] iface-list command in virsh

2010/4/19 Dev.Atom <arnaud.champion@xxxxxxxxxx>:

Hi,

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 ?


The current interface driver used in combination with libvirtd is
nefcf [1] based. If your libvirt is compiled without netcf then there
will be no interface support for QEMU, Xen and so on.

You'll also need to have a distro (e.g. Fedora) that supports netcf or
is supported by netcf, because netcf handles the interface
configuration files and those are in different locations of have other
distro dependent differences.

[1] https://fedorahosted.org/netcf/

Matthias


Ah, sorry I misread the part where you say it works locally as root.
That's strange.

What error message do you get in cases where it doesn't work?

Do you use the same libvirt version on all hosts that are involved?

Matthias


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]