Displaying 20 results from an estimated 30000 matches similar to: "LXC container OS upgrade How?"
2014 Nov 14
2
Unable to start container after OS upgrade
I upgraded my container from CentOS 6.4 to CentOS 6.5. Everything looks good after upgrade until reboot. When rebooted to container I'm getting the following errors.. Any help would be greatly appreciated
/bin/mknod: `/dev/lp2': Operation not permitted
/bin/chown: cannot access `/dev/lp2': No such file or directory
/bin/mknod: `/dev/lp3': Operation not permitted
/bin/chown: cannot
2014 Jan 30
2
Dynamically setting permanent memory libvirt-lxc
I'm trying to permanently change memory allocation for a libvirt-lxc domain. So far I tried changing memory in memory.limit_in_bytes under /cgroup/memory/libvirt/lxc/<container>/. This didn't help. It appears that libvirt is not reading changes in cgroup.
My requirements are
1) Be able to dynamically change memory of a LXC domain without reboot
2) The memory change must survive
2013 Jul 31
2
start lxc container on fedora 19
hello,
i am new to lxc, i have created a lxc container on fedora 19
i created a container rootfs of fedora 19 by using
yum --installroot=/containers/test1 --releasever=19 install openssh
test1.xml file for container test1
<domain type="lxc">
<name>test1</name>
<vcpu placement="static">1</vcpu>
<cputune>
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 :)
2016 Jan 21
3
Hostname inside lxc container
Hi all,
I have installed a CentOS6 lxc guest under a Debian 8.x LXC host. All
it is working ok but I can't change the hostname for the centos6 lxc
container (it is using the same hostname from Debian host). I have
modifyed HOSTNAME under /etc/sysconfig/network and /etc/hosts file,
but it doesn't works.
Do I need to change anything else??
Thanks.
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.
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
2012 May 21
2
Cannot connect to the existing LXC containers (console)
Hi,
after 2 years of "pure" LXC usage, I'm trying now to administrate our
LXC containers with libvirt No problem with a LXC container I create
"from Scratch" (lxc-create), but with our existing containers, I've a
strange behavior with the console:
vsonde43 login:
Debian GNU/Linux 5.0 vsonde43 console
vsonde43 login:
Debian GNU/Linux 5.0 vsonde43 tty1
vsonde43 login:
2014 Feb 12
2
LXC container driver
Dear all,
I am slowly building a Arch Linux VM guest on my Arch Linux host.
The guest machine is now built and is recognized as shown by this command :
gabx@hortensia ➤➤ ~ % machinectl list
MACHINE CONTAINER SERVICE
dahlia container nspawn
1 machines listed.
I an following the libvirt.org documentation. Now, according this
page[1] about lxc
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
2016 Jul 10
1
lxc containers won't start in a f24 custom install - odd cgroup fs layout observed
Hi folks
I use libvirt to programmatically spawn lxc containers
I am facing an issue when migrating from fedora23 to fedora24
I use the stock kernel and libvirt version on both deployments, i.e.:
f23: libvirt-1.2.18.3-2.fc23.x86_64 - kernel 4.5.7-202.fc23.x86_64
f24: libvirt-1.3.3.1-4.fc24.x86_64 - kernel 4.6.3-300.fc24.x86_64
First off, I need to outline that the host installation is done
2013 Sep 11
2
Re: libvirt-1.2.2-r1 (Gentoo) fails to start LXC containers
On 09/11/2013 04:44 PM, Daniel P. Berrange wrote:
> On Tue, Sep 10, 2013 at 09:09:44AM -0500, Dennis Jenkins wrote:
>> I recently upgraded "libvirt" on Gentoo to 1.2.2-r1 (latest available). I
>> have not used LXC containers for a few weeks, so I don't recall what
>> version of libvirt I was using when my container last booted successfully.
>>
>>
2013 Sep 10
3
libvirt-1.2.2-r1 (Gentoo) fails to start LXC containers
I recently upgraded "libvirt" on Gentoo to 1.2.2-r1 (latest available). I
have not used LXC containers for a few weeks, so I don't recall what
version of libvirt I was using when my container last booted successfully.
Unfortunately, Gentoo's portage tree does not offer any previous versions
of libvirt that I could downgrade to.
TL;DR: My container is configured to use
2015 Aug 04
3
Does CTDB run under LXC containers?
We're transitioning from a VM based environment to one that uses LXC
based containers running under CentOS 7. CTDB runs fine under our CentOS
7 VMs. The same packages running under LXC however seem to have issues:
# systemctl start ctdb.service
Job for ctdb.service failed. See 'systemctl status ctdb.service' and
'journalctl -xn' for details.
# systemctl status ctdb.service
2015 Aug 04
1
Does CTDB run under LXC containers?
I'm using libvirt_lxc and that has an XML based configuration. Based on
what I've read, I think I need to add this to the ctdb container's config:
<features>
<capabilities policy='default'>
<sys_nice state='on'/>
</capabilities>
</features>
That didn't do the trick though. I need to figure out how to turn on all
caps to
2014 Jan 30
2
Re: Dynamically setting permanent memory libvirt-lxc
Eric, thank you for your response. Virsh memtune, setmaxmem and setmem won't survive a reboot. I'm hoping to find a solution that can survive reboot.
On Thursday, January 30, 2014 11:36 AM, Eric Blake <eblake@redhat.com> wrote:
On 01/30/2014 10:11 AM, mallu mallu wrote:
> I'm trying to permanently change memory allocation for a libvirt-lxc domain. So far I tried
2016 Jul 28
1
LXC containers - systemd takes a long time to start
I've got a CentOS7 server (fully patched) and in it I'm running several
LXC containers. I've noticed that whenever I try to launch a service
via `systemctl start <service_name>` soon after LXC boot, it will take
~5 minutes before the prompt returns. After that initial delay,
starting/stopping/restarting services happens immediately. It might be
that this happens because
2013 Oct 31
2
libvirt_lxc: SELinux MCS
Hello list,
my name is Matteo, i'm new on that list.
I'm working on a multitenancy platform with linux containers through libvirt on a production system with Red Hat 6.4.
Every container run a separate instance of OpenSSH and Apache HTTPd and I need to give root privileges to the developers and I try to configure SELinux using svirt and MCS.
I try the secmodel type dynamic and static in
2014 Feb 12
2
Re: LXC container driver
>
> NB user namespaces are a fairly new piece of functionality that
> is still somewhat rough around the edges. You usuaully want to
> have the most recent kernel.org stable kernel available when
> using this.
>
Yes, I confirm it is a little bit touchy for me.
gabx@hortensia ➤➤ ~ % uname -a
Linux hortensia 3.12.9-2-ARCH #1 SMP PREEMPT Fri Jan 31 10:22:54 CET
2014 x86_64
2015 Aug 10
5
libvirt-lxc
Hi,
I noticed that libvirt-lxc will be deprecated for RedHat:
"Future development on the Linux containers framework is now based on
the docker command-line interface. libvirt-lxc tooling may be removed in
a future release of Red Hat Enterprise Linux (including Red Hat
Enterprise Linux 7) and should not be relied upon for developing custom
container management applications." -