Displaying 20 results from an estimated 1000 matches similar to: "Getting IP address of a lxc container via libvirt"
2016 Apr 01
1
Using virDomainInterfaceAddresses
Hi,
I'm trying to use virDomainInterfaceAddresses to get interface info for XEN
DOMs but keep getting following error:
libvirt: Domain Config error : this function is not supported by the
connection driver: virDomainInterfaceAddresses
I tried recompiling libvirt with ./configure --with-interface
--with-network and it all went fine but still no luck.
Am i missing something?
Thanks,
2013 Nov 14
2
Re: Problem about lxc-enter-namespace interface
On 11/14/2013 01:52 PM, hzguanqiang@corp.netease.com wrote:
> On 2013-11-14 13:41 , Gao feng <mailto:gaofeng@cn.fujitsu.com> wrote:
>
> On 11/14/2013 01:24 PM, Gao feng wrote:
> > On 11/14/2013 10:59 AM, hzguanqiang@corp.netease.com wrote:
> >> Hi experts,
> >>
> >> When I test lxc-enter-namespace interface, it turned out such
2013 Nov 14
2
Re: Problem about lxc-enter-namespace interface
On 11/14/2013 02:57 PM, hzguanqiang@corp.netease.com wrote:
> On 2013-11-14 14:17 , Gao feng <mailto:gaofeng@cn.fujitsu.com> wrote:
>
> On 11/14/2013 01:52 PM, hzguanqiang@corp.netease.com wrote:
> > On 2013-11-14 13:41 , Gao feng <mailto:gaofeng@cn.fujitsu.com> wrote:
> >
> > On 11/14/2013 01:24 PM, Gao feng wrote:
> > >
2016 Jan 08
1
operation forbidden Read Only Access
Hi,
When issuing virDomainInterfaceAddresses() libvirt C language API, I got following error:
libvirt: Domain Config error : operation forbidden: read only access prevents virDomainInterfaceAddresses
How may I ask for a non-readonly connexion ? ( looks like to be RO by default)
Thx for help.
Regards,
J.P. Ribeauville
P: +33.(0).1.47.17.20.49
.
Puteaux 3 Etage 5 Bureau 4
2013 Nov 14
2
Re: Problem about lxc-enter-namespace interface
On 11/14/2013 01:24 PM, Gao feng wrote:
> On 11/14/2013 10:59 AM, hzguanqiang@corp.netease.com wrote:
>> Hi experts,
>>
>> When I test lxc-enter-namespace interface, it turned out such an error:
>>
>> hzguanqiang@debian:~$ <mailto:hzguanqiang@debian:~$> vir version
>> Compiled against library: libvirt 1.1.4
>> Using library: libvirt 1.1.4
2018 Mar 19
2
Network interface name of guest via python API
Hi,
I'm trying to get some basic data from running guests on a libvirt HV
but one thing I'm missing is the name of the network interfaces of the
guests. I can get the MAC address from the XML but there seems to be no
function to actually get the name of the interface.
The only function that comes close is this one:
2013 Nov 14
2
Re: Problem about lxc-enter-namespace interface
On 11/14/2013 03:09 PM, hzguanqiang@corp.netease.com wrote:
> On 2013-11-14 15:03 , Gao feng <mailto:gaofeng@cn.fujitsu.com> wrote:
>
> On 11/14/2013 02:57 PM, hzguanqiang@corp.netease.com wrote:
> > On 2013-11-14 14:17 , Gao feng <mailto:gaofeng@cn.fujitsu.com> wrote:
> >
> > On 11/14/2013 01:52 PM, hzguanqiang@corp.netease.com wrote:
2015 Apr 02
2
oddity with lxc-enter-namespace
Hi folks
I have a question about lxc-enter-namespace
I am migrating lxc containers from a host running libvirt-1.2.5 on f20 to another one running libvirt-1.2.9 on f21
and now I can't seem to use lxc-enter-namespace for entering in a container any more
I would do
virsh -c lxc:/// lxc-enter-namespace --noseclabel container /bin/bash
but when I try the same now I am getting this:
# virsh
2017 Sep 20
1
Re : Libvirt Java Bindings
I am developing a Java Application using Libvirt. I found that the Java
Bindings are not in active development.
I need to obtain the IP Address of the Domain. In C, it may relate to
virDomainInterfaceAddresses. Is there any way to implement it in Java.
2015 Dec 04
2
virsh attach device equivalent in libvirt API
Hi,
Is there an equivalent of "virsh attach-device -live -persistent " within libvirt API :
virDomainAttachDevice() or virDomainAttachDeviceFlags() or ???
Thanks for help.
Regards,
J.P. Ribeauville
P: +33.(0).1.47.17.20.49
.
Puteaux 3 Etage 5 Bureau 4
jpribeauville@axway.com<mailto:jpribeauville@axway.com>
http://www.axway.com<http://www.axway.com/>
P
2015 Apr 14
1
Re: oddity with lxc-enter-namespace
Hello
The latest attempts that I made on fedora21 all gave me the same result
I have tried
. vanilla rpm from f21 (1.2.9 IIRC)
. 1.2.14
. 1.2.13
. 1.2.12
these three ones I rebuilt from the source rpm published by libvirt
eventually I reworked my own tools to enter the container via ssh, so this is not an immediate concern to me any longer but it is definitely odd
I currently use 1.2.12
2013 Nov 14
2
Problem about lxc-enter-namespace interface
Hi experts,
When I test lxc-enter-namespace interface, it turned out such an error:
hzguanqiang@debian:~$ vir version
Compiled against library: libvirt 1.1.4
Using library: libvirt 1.1.4
Using API: LXC 1.1.4
Running hypervisor: LXC 3.9.6
hzguanqiang@debian:~$ vir list
Id Name State
----------------------------------------------------
1544 instance-00000015
2013 Dec 09
2
Question about setns recognising in libvirt autoconf
Hi experts,
When I test lxc container with lxc-enter-namespace command, It reported an error as
following:
root@debian:~/github/libvirt# vir lxc-enter-namespace lxc --noseclabel /bin/df -hl
error: Cannot get namespaces for 3145: Function not implemented
It seems that setns is not supported by my kernel.
But from the following info, It seemed the reason is just libvirt/autoconf doesn't
2016 Jul 26
2
How can I run command in containers on the host?
How can I run command in containers on the host? Just like the lxc command
lxc-attach.
I run :
virsh -c lxc:/// lxc-enter-namespace fedora2 --noseclabel /bin/ls
but get error:
libvirt: error : Expected at least one file descriptor
error: internal error: Child process (14930) unexpected exit status 125
Here is my libvirt.xml
<domain type='lxc'>
<name>fedora2</name>
2013 Dec 09
2
Re: Question about setns recognising in libvirt autoconf
On 2013-12-09 13:18 , Gao feng wrote:
On 12/09/2013 01:06 PM, hzguanqiang@corp.netease.com wrote:
> Hi experts,
>
> When I test lxc container with lxc-enter-namespace command, It reported an error as
> following:
> root@debian:~/github/libvirt# vir lxc-enter-namespace lxc --noseclabel /bin/df -hl
> error: Cannot get namespaces for 3145: Function not implemented
>
> It
2013 Jul 22
2
Libvirt-lxc and systemd question
Warning - I'm fairly new to libvirt, lxc and systemd so there is a good
chance I'm doing something terribly wrong here. However, instead of
continuing to struggle, I figured I would mail the list for some
advice. What I'm trying to accomplish is a libvirt-lxc, systemd-based
container running on my system (Fedora 19). I've read that sharing the
underlying OS filesystem with
2016 Mar 04
2
Re: Why are virsh vol-upload/vol-download so slow?
On Fri, Mar 04, 2016 at 04:57:30PM +0000, Daniel P. Berrange wrote:
> What version of libvirt ? We had an unfortunate implementation mistake
> which caused us to waste tonnes of time in memmove(). versions since
> 1.2.19 have a fix that addresses it
Ah, this is on F23, which has:
libvirt-1.2.18.2-2.fc23.x86_64
There's nothing more recent right now in either updates or
2016 Mar 06
2
Convincing libvirt to create a bridge device?
I was hoping that I could delegate creation of bridge devices to
libvirt for address-less bridges, in order to not have to deal with
the various ways distributions handle persistent network
configuration, but while this creates a libvirt network...
<network>
<name>provision</name>
<forward mode='bridge'/>
<bridge name='brprov'/>
2018 Oct 09
3
Serial ports: vm vs bare metal
I'm running libvirt under Fedora 28. I would like to attach a USB
device to a VM, but when I select "Redirect USB Device" from the
"Virtual Machine" menu in virt-manager and then select the device, I
get the error:
USB redirection error
spice-client-error-quark: Could not redirect [device name] at 1-11:
Error setting USB device node ACL: 'Not authorized' (0)
2016 Mar 04
2
Why are virsh vol-upload/vol-download so slow?
I was interested in using 'virsh vol-upload' and 'virsh vol-download',
rather than mucking about directly with the filesystem. But while
simply copying the image is relatively quick:
# ls -l /var/lib/libvirt/images/centos-7-cloud.qcow2
-rw-r--r--. 1 qemu qemu 1004994560 Apr 15 2015 centos-7-cloud.qcow2
# time cp /var/lib/libvirt/images/centos-7-cloud.qcow2