similar to: LXC with --filesystem - control/impose filesystem(/ in container) size limits - how?

Displaying 20 results from an estimated 40000 matches similar to: "LXC with --filesystem - control/impose filesystem(/ in container) size limits - how?"

2017 Nov 13
0
how to add mount options for root filesystem inside lxc container
Hi all We use libvirt 3.0.0 + lxc, disk for container described with <filesystem/> tag, example: <filesystem type='block' accessmode='passthrough'> <source dev='/dev/data/lvm-part1'/> <target dir='/'/> </filesystem> Now we start use ssd disk and think how to provide additional options for mount root FS in container:
2018 Oct 20
1
how to use LV(container) created by lxc-create?
hi everyone, how can I use a LV created by lxc in libvirt guest domain? You know, you lxc-create with LV as backstore for a container(ubuntu in my case) and now you want to give to libvit. That, I thought would be a very common case but I failed to find a good howto on how one: lxc-create(lvm) => let libvirt take control over it. Or it's not how you would do it at all? many thanks, L.
2014 Sep 15
0
Re: cgroups inside LXC containers losts memory limits after some time
HI all >After unpredictable time passed (1-5 day ?), cgroups inside LXC >magicaly removed. virsh dumpxml config look like this: <domain type='lxc' id='3566'> <name>puppet</name> <uuid>6d49b280-5686-4e3c-b048-1b5d362fb137</uuid> <memory unit='KiB'>8388608</memory> <currentMemory
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
2019 Jan 21
2
libvirt 5.0.0 - LXC container still in "virsh list" output after shutdown
Hello. Centos 7.6 with libvirt build from base "virt" repository: libvirt-daemon-driver-lxc-5.0.0-1.el7.x86_64 libvirt-client-5.0.0-1.el7.x86_64 libvirt-daemon-5.0.0-1.el7.x86_64 libvirt-daemon-driver-network-5.0.0-1.el7.x86_64 libvirt-libs-5.0.0-1.el7.x86_64 + systemd-219-62.el7_6.2.x86_64 Now lxc containers with type='direct' can be started, but can't be stopped :)
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
2013 Jul 31
1
Fail to destroy lxc container: internal error Some container PIDs refused to die
Hey guys, When I destroy a lxc container, It reported an error with details as following: root@debian:~$ vir destroy 901eef81-06b2-4252-aeef-53b87c402585 error: Failed to destroy domain 901eef81-06b2-4252-aeef-53b87c402585 error: internal error Some container PIDs refused to die root@debian:~$ vir version Compiled against library: libvirt 1.1.0 Using library: libvirt 1.1.0 Using API: LXC
2014 Sep 15
2
cgroups inside LXC containers losts memory limits after some time
Hi all I have CentOS Linux release 7.0.1406, libvirt 1.2.7 installed. Just after create and start inside LXC container present cgroups. Example for memory: [root@ce7-t1 /]# ls -la /sys/fs/cgroup/memory/ total 0 drwxr-xr-x 2 root root 0 Sep 15 17:14 . drwxr-xr-x 12 root root 280 Sep 15 17:14 .. -rw-r--r-- 1 root root 0 Sep 15 17:14 cgroup.clone_children --w--w--w- 1 root root 0 Sep 15
2014 Feb 12
1
Re: LXC container driver
On Wed, Feb 12, 2014 at 03:21:18PM +0100, arnaud gaboury wrote: > I am totally lost in this UID/GID mapping. Maybe all this stuff is > just beyond my competence. > > For now, I am writing a basic mydomain.xml file following these 3 wiki: > LXC container from libvirt.org[1] > Linux containers guide from Rad Hat 7[2] > getting start with lxc from P.Berrange [3] > > This
2012 Jul 04
1
Problem halting/restaring a lxc container from within
Hi, I've been making some tests with libvirt and LXC and found some problems when halting/restarting a LXC container from within. Basically, on a Ubuntu 12.04 system with libvirt installed as package (0.9.8), I've created a basic container image with: lxc-create -t ubuntu -n lxc And started it using the libvirt XML listed below and the following command: virsh -c lxc:// create
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
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
2013 Jul 23
0
Re: How to monitor a lxc container started by libvirt_lxc from inside ?
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 > lxc container resource. Is the /proc dir in lxc container just > showing the same thing as the lxc host? If I want to monitor the > realtime resource usage inside the lxc
2013 Jul 23
3
How to monitor a lxc container started by libvirt_lxc from inside ?
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 lxc container resource. Is the /proc dir in lxc container just showing the same thing as the lxc host? If I want to monitor the realtime resource usage inside the lxc container, What should I do? -------------- Best regards! GuanQiang 2013-07-23
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 Jul 30
0
Re: libvirt-1.2.17 I can't define lxc container
On Thu, Jul 30, 2015 at 12:49:39PM +0200, Marcin Mirosław wrote: > Hello! > > I'd like to set up my first lxc container using libvirt. I'd like to > start using the simplest configuration and next add things I need. So > I've got xml as below: > <domain type='lxc'> > <name>vm1</name> > <memory>32768</memory> >
2013 Sep 03
0
"lxc-centos" container automation script
Hello, For me as a debianista who has need to run some software (Kolab) in the vendor(provider)-supported OS (CentOS), LXC is a godsend. However, lxc distributions I am aware of do not ship the "lxc-fedora" or "lxc-debian" equivalent to construct a container. I have thus set out to modify the former (please find the result attached). In the process of getting that to work
2014 Jul 08
2
Re: How to get uuid info inside a lxc container created by libvirt_lxc
于 2014年07月08日 12:06, Eric Blake 写道: > On 07/07/2014 10:02 PM, Qiang Guan wrote: >> Hi , >> >> Is there anyway to get uuid info inside a lxc container which is created >> by libvirt_lxc? >> >> For kvm, we can use dmidecode or lshw to get this info inside vm. Is >> there any tools >> to do this thing for libvirt lxc? > Per the docs: >
2014 Feb 12
0
Re: LXC container driver
I am totally lost in this UID/GID mapping. Maybe all this stuff is just beyond my competence. For now, I am writing a basic mydomain.xml file following these 3 wiki: LXC container from libvirt.org[1] Linux containers guide from Rad Hat 7[2] getting start with lxc from P.Berrange [3] This is the basic .xml file: <domain type='lxc'> <name>dahlia</name>
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.