Displaying 20 results from an estimated 25 matches for "drvlxc".
2014 Jul 08
2
Re: How to get uuid info inside a lxc container created by libvirt_lxc
...gt; 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:
> http://libvirt.org/drvlxc.html#envvars
> pid 1 inside lxc inherits $container_uuid into its environment variables.
Thanks for help.
But in my lxc container, It seems no such envvars existed:
root@debian:~# ps auxf
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.1 10652...
2013 Jul 23
2
Is there any document about the feauture and usage of lxc supported by libvirt?
Hi Guys,
Recently, I'm doing some tests on openstack with lxc virtualization supported by libvirt. I need some recently new documents about libvirt lxc.
Anything related is just ok. Thanks!
--------------
Best regards!
GuanQiang
2013-07-23
2014 Jul 08
2
How to get uuid info inside a lxc container created by libvirt_lxc
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?
Thanks for any help~
--
------------
Jackie
Best Regards
2010 Aug 03
2
libvirt and lxc
Is anyone using libvirt for lxc ? I am trying to do so and running
into an issue. The system container starts fine with lxc tools and am
able to connect to it.
Here is the snippet of my xml file (rest is same as in
http://libvirt.org/drvlxc.html)
<devices>
<emulator>/usr/libexec/libvirt_lxc</emulator>
<filesystem type='mount'>
<source dir='/lxc/f12'/>
<target dir='/'/>
</filesystem>
<interface type='bridge'>
<mac addr...
2010 Nov 02
1
Libvirt and LXC
(oops accidentally sent to -owners)
Hi, i'm trying to start a LXC guest on a F14 computer .. followed the
examples in http://libvirt.org/drvlxc.html, but got stuck when
starting it ..
03:07:23.706: debug : virCgroupNew:542 : New group /
03:07:23.707: debug : lxcControllerRun:563 : Setting up private /dev/pts
03:07:23.711: debug : lxcControllerRun:589 : Mouting 'devpts' on
/var/lxc/f14/dev/pts
03:07:23.711: debug : lxcControllerRun...
2013 Jun 10
2
Re: libvirt_lxc and sysfs
...t; > Am I doing something wrong or is this feature of libvirt_lxc?
> >
>
> Absolutely it's not a feature.
>
> Thanks!
>
Thanks for the quick reply.
I was surprised too. I didn't post /proc/mounts to container.
libvirt_lxc did it for me.
I read http://libvirt.org/drvlxc.html about Filesystem mounts:
"
In the absence of any explicit configuration, the container will
inherit the host OS filesystem mounts. A number of mount points will be
made read only, or re-mounted with new instances to provide container
specific data. The following special mounts are setup b...
2013 Jul 06
2
Permission problem with /dev/net/tun
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi lxc folks,
the symptom my libvirt LXC container suffers from is:
root@depot:/dev/net# ls -la
total 0
drwxr-xr-x 2 root root 40 Jun 29 16:26 .
drwxr-xr-x 5 root root 480 Jun 29 16:26 ..
root@depot:/dev/net# mknod tun c 10 200
mknod: `tun': Operation not permitted
The host is an up-to-date AMD64 Ubuntu raring on 3.8.0-25-generic that
was
2012 Mar 09
0
Errors trying to install centos 6.2 as an lxc guest under centos 6.2 host
...LXC_NAME=mysqlsrv /sbin/init
16:39:23.115: 1: info : libvirt version: 0.9.4, package: 23.el6_2.6
16:39:23.115: 1: error : lxcContainerChild:896 : cannot find init path
'/sbin/init' relative to container root: No such file or directory
I have followed these instructions: http://libvirt.org/drvlxc.html
and http://berrange.com/posts/2011/09/27/getting-started-with-lxc-using-libvirt/
I have tried to do the same using rhel6.2 instead of centos 6.2 and
results are the same ...
What am I doing wrong?? Do I need to copy all host files to this
guest?? I f yes, then, how can I apply security upd...
2012 Oct 10
0
virsh start failed (Failed to query file context on ...)
hi all,
I try to follow the instructions in http://libvirt.org/drvlxc.html to config libvirt-lxc, but failed when starting the lxc.
The domain config file:
# cat b.xml
<domain type='lxc'>
<name>b</name>
<memory>32768</memory>
<os>
<type>exe</type>
<init>/bin/sh</init>
</os...
2013 May 28
0
Re: libvirt for Citrix XenServer
...ts Citrix XenServer hypervisors. per the libvirt.org only following hypervisors are supported :
* The KVM/QEMU<http://libvirt.org/drvqemu.html> Linux hypervisor
* The Xen<http://libvirt.org/drvxen.html> hypervisor on Linux and Solaris hosts.
* The LXC<http://libvirt.org/drvlxc.html> Linux container system
* The OpenVZ<http://libvirt.org/drvopenvz.html> Linux container system
* The User Mode Linux<http://libvirt.org/drvuml.html> paravirtualized kernel
* The VirtualBox<http://libvirt.org/drvvbox.html> hypervisor
* The VMware ESX and GSX...
2013 Jul 23
0
Re: Is there any document about the feauture and usage of lxc supported by libvirt?
...iang wrote:
> Hi Guys,
> Recently, I'm doing some tests on openstack with lxc virtualization
> supported by libvirt. I need some recently new documents about libvirt
> lxc.
> Anything related is just ok. Thanks!
The best (only) formal documentation is here:
http://libvirt.org/drvlxc.html
I'll be expanding it over time to improve it. Suggestions for extra
information to write about are welcome.
A much older blog post of my own is here
https://www.berrange.com/posts/2011/09/27/getting-started-with-lxc-using-libvirt/
Regards,
Daniel
--
|: http://berrange.com -o-...
2014 Feb 12
0
Re: LXC container driver
.../>
</devices>
</domain>
Unfortunately :
gabx@hortensia ➤➤ /drawer/vm # virsh define dahlia.xml
error: Failed to define domain from dahlia.xml
error: internal error: unexpected domain type lxc, expecting one of
these: qemu, kqemu, kvm, xen
What is wrong ?
[1]http://libvirt.org/drvlxc.html
[2]https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/7-Beta/html-single/Linux_Containers_Guide/index.html
[3]https://www.berrange.com/posts/2011/09/27/getting-started-with-lxc-using-libvirt/
2014 Mar 28
1
TUN/TAP device for lxc guest
I want to run a VPN software inside an lxc guest, but the required TUN/TAP
device (/dev/net/tun) is missing in the container. Anyone knows how to
enable this device ? Here is the definition XML:
<domain type="lxc">
<name>centos</name>
<memory unit="MiB">1024</memory>
<os>
<type>exe</type>
2014 Jul 08
0
Re: How to get uuid info inside a lxc container created by libvirt_lxc
...uan 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:
http://libvirt.org/drvlxc.html#envvars
pid 1 inside lxc inherits $container_uuid into its environment variables.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
2014 Jul 08
0
Re: How to get uuid info inside a lxc container created by libvirt_lxc
...o 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:
> > http://libvirt.org/drvlxc.html#envvars
> > pid 1 inside lxc inherits $container_uuid into its environment variables.
> Thanks for help.
> But in my lxc container, It seems no such envvars existed:
Look at the environment of the process with PID 1:
# tr '\0' '\n' < /proc/1/environ
--
Claudi...
2013 Jul 08
0
Re: Permission problem with /dev/net/tun
...tainer direct access to the hosts' /dev would be
a security flaw, so libvirt sets up a private /dev for the container.
Allowing the container to use mknod would also be insecure, so we
blocking mknod using both cgroups device ACL, and also droping the
CAP_MKNOD capability.
http://libvirt.org/drvlxc.html#devnodes
Any device that the container is authorized to access per the XML
configuration, will be pre-created in the container's /dev. To
explicitly allow /dev/net/tun you need to tell libvirt about it.
http://libvirt.org/formatdomain.html#elementsHostDevCaps
Daniel
--
|: http://ber...
2013 Jun 10
0
Re: libvirt_lxc and sysfs
...rong or is this feature of libvirt_lxc?
> > >
> >
> > Absolutely it's not a feature.
> >
> > Thanks!
> >
Thanks for the quick reply.
I was surprised too. I didn't post /proc/mounts to container.
libvirt_lxc did it for me.
I read http://libvirt.org/drvlxc.html about Filesystem mounts:
"
In the absence of any explicit configuration, the container will
inherit the host OS filesystem mounts. A number of mount points will be
made read only, or re-mounted with new instances to provide container
specific data. The following special mounts are setup b...
2013 Jul 08
4
Re: Permission problem with /dev/net/tun
...the hosts' /dev would be a
> security flaw, so libvirt sets up a private /dev for the
> container. Allowing the container to use mknod would also be
> insecure, so we blocking mknod using both cgroups device ACL, and
> also droping the CAP_MKNOD capability.
> http://libvirt.org/drvlxc.html#devnodes
Good to know.
> Any device that the container is authorized to access per the XML
> configuration, will be pre-created in the container's /dev. To
> explicitly allow /dev/net/tun you need to tell libvirt about it.
> http://libvirt.org/formatdomain.html#elementsHos...
2012 Apr 19
1
Building an RPM
...ry 'make rpm', however that ends in the below error:
missing XHTML1 DTD
cp: cannot stat `./api.html': No such file or directory
make[2]: *** [distdir] Error 1
rm news.html.tmp goals.html.tmp archnetwork.html.tmp formatsecret.html.tmp drvopenvz.html.tmp windows.html.tmp testtck.html.tmp drvlxc.html.tmp apps.html.tmp docs.html.tmp formatstorageencryption.html.tmp drvvbox.html.tmp formatdomain.html.tmp php.html.tmp drvhyperv.html.tmp errors.html.tmp hacking.html.tmp format.html.tmp hooks.html.tmp api.html.tmp storage.html.tmp formatcaps.html.tmp relatedlinks.html.tmp compiling.html.tmp ind...
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