similar to: Problem halting/restaring a lxc container from within

Displaying 20 results from an estimated 5000 matches similar to: "Problem halting/restaring a lxc container from within"

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
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
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
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
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 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>
2013 Jul 24
3
Re: How to monitor a lxc container started by libvirt_lxc from inside ?
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 >> lxc container resource. Is the /proc dir in lxc container just
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.
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: >
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.
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 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
2017 Feb 03
2
accessing USB as storage device through lxc container.
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. However, they are seen as char devices in the container at the location. There is no issue of ACL, as the capabilities restrictions have been dropped. Has anyone successfully mounted the storage
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 Nov 20
1
Failed to access the console after starting the lxc container
Hello, I am starting the system container without "/" directory So that it can share the host /bin /sbin /lib and /lib64 and i have sepeartely mounted /var, /etc and /usr directory for the container Below is xml file <domain type='lxc'> <name>test6</name> <memory>102400</memory> <os> <type>exe</type>
2017 Feb 07
1
Re: accessing USB as storage device through lxc container.
Thanks Martin for the info. I have tried the below snippet in the libvirt xml. <hostdev mode='capabilities' type='storage'> <source> <block>/dev/sdc1</block> </source> </hostdev> ------------ root@ir800-lxc:~# mount /dev/sdc1 /mnt/usbdr/ mount: permission denied (are you root?) ---------- It works if the
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
2011 Nov 05
1
virt-manager: create lxc app container hangs
libvirt-0.9.6-2.fc15.x86_64 virt-manager-0.9.0-7.fc15.noarch I'm trying to use virt-manager create a simple lxc app container just to see how it works. App is /bin/sh, 128 megs, 1 cpu. All seems to go well, but when I click "Finish" and the "Creating Virtual Machine" box comes up, "Creating Domain..." stays at 0B though the slider keeps going back and forth.
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
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>