Displaying 20 results from an estimated 40000 matches similar to: "Does libvirt support attach volume to linux container now?"
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
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 :)
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>
>   
2019 Jan 22
0
Re: libvirt 5.0.0 - LXC container still in "virsh list" output after shutdown
> 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
2012 Mar 06
1
Correctly using libvirt to mount /dev/pts and /dev in an lxc application container
We would like to mount /dev and /dev/pts correctly using the libvirt xml
config file instead of doing a bind mount in a container init script we use.
Currently the container config is:
<domain type='lxc'>
  <name>CentOS_57</name>
  <uuid>ff5d3c04-49e6-a3cc-0a14-ff13625eca3c</uuid>
  <memory>262144</memory>
 
2015 Jul 30
2
libvirt-1.2.17 I can't define lxc container
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>
   <os>
 <type>exe</type>
 <init>/init</init>
   </os>
  
2015 Oct 21
0
Libvirt-LXC, container get stuck if it prints too much logs in the console
Hi,
I am creating containers using libvirt-lxc. My problem is that a process 
at bootup gets stuck at some point. My usecase is Puppet, but I can 
reproduce with a loop in bash. I noticed it is stuck until I connect to 
the console of the container (virsh -c lxc:/// console id). Then after 
disconnecting the console, waiting some times, the process gets stuck 
again. The more the process outputs
2013 Feb 08
1
libvirt v1.0.2 fails to boot LXC container, but v1.0.0 works
Hello.
tl;dr = v1.0.0 can boot my LXC containers, v.1.0.1 and v.1.0.2 fails.
Paraphrased error message: "lxcContainerMountProcFuse:616 : Failed to
mount ..../meminfo"
    I'd like to know if my host is misconfigured, or my domains, or
... why 1.0.2 and 1.0.1 are not working for me.
    I've been using libvirt for a while to manage QEMU instances.  I
have experimented with lxc.
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 Jul 17
0
Set IP for LXC-container through libvirt XML
Hi!
How I can set IP to container without using dhcp?
From http://libvirt.org/formatnetwork.html I have:
<network>
<mac address='00:16:3E:5D:C7:9E'/>
  <ip address="192.168.122.1" netmask="255.255.255.0">
    <dhcp>
      <range start="192.168.122.100" end="192.168.122.254" />
      <host
2014 May 07
0
Libvirtd failed to start inside container: libvirt-qemu.so.0: cannot open shared object file: Permission denied
Hi all.
I run into trouble, while try to start libvirtd inside docker container
(actually it is LXC container).
During startup libvirtd can't load shared library libvirt-qemu.so.0 (and
strace results looks very odd).
* I run libvirtd as root.
* libvirt-bin - 0.9.8-2ubuntu17
* selinux/apparmor both disabled.
* No other security extension are used.
* No sticky bits are set.
* Required library
2013 Sep 11
0
Re: libvirt-1.2.2-r1 (Gentoo) fails to start LXC containers
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.
> 
> ostara ~ # tail /var/log/libvirt/lxc/dwj-hfax-dev.log
> 2013-09-10
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
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
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
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 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 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
2013 Sep 10
2
Re: libvirt-1.1.2-r1 (Gentoo) fails to start LXC containers (subject line minor edit, was libvirt-1.2.2-r1)
On Tue, Sep 10, 2013 at 1:34 PM, Doug Goldstein <cardoe@gentoo.org> wrote:
> On Tue, Sep 10, 2013 at 9:09 AM, Dennis Jenkins
> <dennis.jenkins.75@gmail.com> wrote:
>
> Yeah our security people got a bit over zealous. That's being rectified.
>
> :)
> >
> > TL;DR: My container is configured to use "br0" for its networking.  "br0"