similar to: Passing environment variables to LXC container

Displaying 20 results from an estimated 60000 matches similar to: "Passing environment variables to LXC container"

2015 Dec 22
1
Setting environment variables for LXC Containers
Hello Is there a way to set custom environment variables for LXC containers so that it is available for all processes within the container? The libvirt-lxc driver seems to be setting up only the below variables (as per the docs), but there doesn't seem to be a way customize it. containerThe fixed string libvirt-lxc to identify libvirt as the creator container_uuidThe UUID assigned to the
2015 Dec 18
1
Getting IP address of a lxc container via libvirt
Hello I wanted to understand if there is a way to get LXC container's ip address. - virDomainInterfaceAddresses API only works for qemu/kvm and not with the lxc driver. What other options do I have? Using enter-lxc-namespace is throwing this error: virsh -c lxc:/// lxc-enter-namespace <domain> --noseclabel /sbin/ifconfig libvirt: error : Expected at least one file descriptor
2015 Nov 02
0
Re: Creating network interfaces with specific name in LXC
On Fri, Oct 30, 2015 at 10:09:51PM +0530, Harish Vishwanath wrote: >Thanks Martin. What I would like to achieve is govern the interface name >created within the container, so that my application can take different >actions on different interfaces (such as eth0, eth1 etc.,). > <interface> <guest dev='devicename'/> </interface> That is what you're
2015 Oct 30
2
Re: Creating network interfaces with specific name in LXC
Thanks Martin. What I would like to achieve is govern the interface name created within the container, so that my application can take different actions on different interfaces (such as eth0, eth1 etc.,). Libvirt's lxc driver seems to create interfaces as eth0, eth1 and so on, when there are multiple <interface /> entries in the domain xml. How can I request for a particular interface
2015 Mar 20
1
Re: libvirt-python Segfaults
Hi Harish, I believe the proper establishment of a connection should be done by libvirt.open() or libvirt.openAuth() or libvirt.openReadOnly(). All of them will return a functional virConnect instance. I'm not sure this segfault is worth to fix since instantiate a virConnect directly is not an expected usage. Hope this information will help you. Best Regards, Hao Liu +86-010-62608262
2015 Oct 30
2
Creating network interfaces with specific name in LXC
Hello I am trying to create interfaces within an LXC container with specific name. I am using the following XML: <interface type='network' name='blah'> <source network='dpbr_n_0'/> </interface> This doesn't seem to work; it always ends up creating interface with name as "eth0". I found some examples here:
2016 Nov 08
1
Re: Sharing network namespace between containers
Thank you. It looks like after I 'ignore', nothing is persisted in xml for the app. Any idea what is the minimum version of libvirt required for this feature? Regards, Harish On Tue, Nov 8, 2016 at 1:36 PM, Martin Kletzander <mkletzan@redhat.com> wrote: > On Tue, Nov 08, 2016 at 09:01:34AM +0530, Harish Vishwanath wrote: > >> Hello >> >> Based on the lxc
2015 Oct 30
0
Re: Creating network interfaces with specific name in LXC
On Fri, Oct 30, 2015 at 08:16:33PM +0530, Harish Vishwanath wrote: >Hello > >I am trying to create interfaces within an LXC container with specific >name. I am using the following XML: > > <interface type='network' name='blah'> > <source network='dpbr_n_0'/> > </interface> > That name='' is not parsed, it
2016 Nov 08
0
Re: Sharing network namespace between containers
On Tue, Nov 08, 2016 at 09:01:34AM +0530, Harish Vishwanath wrote: >Hello > >Based on the lxc driver documentation, I am trying to create an xml to >share an existing network namespace with another container. I am running >libvirt 1.2.15. > >Here is the xml: > ><domain type='lxc' xmlns:lxc='http://libvirt.org/schemas/domain/lxc/1.0'> > >
2015 Apr 20
2
Mounting directory as readonly within LXC
Hello Is there a way to mount a directory as readonly when using LXC with libvirt? Something like: <filesystem type="mount"> <source dir="/sw/py27/python2.7_x86_64"/> <target dir="/opt//py27"/> <readonly/> </filesystem> The documentation says
2015 Mar 19
2
libvirt-python Segfaults
Hello I am trying to get libvirt-python working in Ubuntu 14.04 64 bit system. I tried installing the binaries from the repo itself: 1. root@test-vm8-109:/home/test# libvirtd --version libvirtd (libvirt) 1.2.2 root@test-vm8-109:/home/test# python Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or
2016 Nov 08
3
Sharing network namespace between containers
Hello Based on the lxc driver documentation, I am trying to create an xml to share an existing network namespace with another container. I am running libvirt 1.2.15. Here is the xml: <domain type='lxc' xmlns:lxc='http://libvirt.org/schemas/domain/lxc/1.0'> <name>nt</name> <uuid>43c00192-e114-4e29-8ce7-4b5487f60a75</uuid> <memory
2015 Mar 20
0
Re: libvirt-python Segfaults
Trying again. Is there another mailer list for libvirt-python related discussions? Regards, Harish On Thu, Mar 19, 2015 at 9:02 PM, Harish Vishwanath <harish.shastry@gmail.com > wrote: > Hello > > I am trying to get libvirt-python working in Ubuntu 14.04 64 bit system. I > tried installing the binaries from the repo itself: > > 1. > > root@test-vm8-109:/home/test#
2015 Apr 20
0
Re: Mounting directory as readonly within LXC
On 20.04.2015 12:58, Harish Vishwanath wrote: > Hello > > Is there a way to mount a directory as readonly when using LXC with libvirt? > > Something like: > > <filesystem type="mount"> > <source dir="/sw/py27/python2.7_x86_64"/> > <target dir="/opt//py27"/> >
2011 Oct 24
1
problem using sshd inside a LXC container
Currently I have a RH6.1 host with selinux enabled On this I am running a LXC container with ubuntu (without selinux) with OpenSSH_5.3p1 Debian-3ubuntu4, OpenSSL 0.9.8k 25 Mar 2009 when I try to do a ssh connection to the lxc container I get : ... debug1: Next authentication method: password root at 192.168.2.11's password: debug1: Authentication succeeded (password). debug1: channel 0: new
2017 Feb 03
0
Re: accessing USB as storage device through lxc container.
On Thu, Feb 02, 2017 at 06:30:24PM -0800, ravi mh wrote: >Hi all, > >I am not able to access USB as storage device in the lxc container. >Having tried to pass the usb device with the product and vendor id, not >able to see the device mounted in the lxc file system. > It won't be mounted, it will just be passed through as a device, i.e. you will see it in the lsusb output.
2014 Mar 06
1
Fail to convert LXC container configuration into a domain XML fragment
Hi, all, I used lxc-tools to create a linux container. I am trying to transfrom LXC container configuration into a domain XML fragment using the following command: *$ virsh -c lxc:/// domxml-from-native lxc /var/lib/lxc/my_conatiner/config* However, I get the error message, error: this function is not supported by the connection driver: virConnectDomainXMLFromNative It seems that
2013 Jul 24
0
Re: How to monitor a lxc container started by libvirt_lxc from inside ?
On 07/24/2013 10:28 AM, hzguanqiang wrote: > On 2013-07-23 18:14, "Daniel P. Berrange" <berrange@redhat.com> wrote: > >>> On Tue, Jul 23, 2013 at 04:56:30PM +0800, hzguanqiang wrote: >>> Hi Guys, >>> When I created a lxc container by libvirt, I logged into the lxc >>> container and noticed that info under /proc/ dir did not match the
2012 Apr 02
0
libvirt-lxc Cannot SSH into container
Hi, I am trying to run containers on rhel 6.2 using libvirt-lxc. I want to migrate my containers from sf.net lxc to libvirt-lxc. So, I am using the same root file system for libvirt-lxc, which I used for sf.netlxc. After starting the container, and getting console for it, I can see the boot log for the container, it shows all the services started successfully. I get ping reply from the IP assigned
2017 Sep 21
1
How automatically set group.devices.allow for libvirt-lxc container after start ?
Hi. I need to use /dev/ppp inside the lxc container, for very ancient software. Problem solved this way: 1) virsh edit container name and add section: <features> <capabilities policy='default'> <mknod state='on'/> </capabilities> </features> 2) start container 3) attach or ssh container, be root: #mknod /dev/ppp c 108 0 4) inside