similar to: How can I get the pid mapping relationship between the container and the native OS

Displaying 20 results from an estimated 30000 matches similar to: "How can I get the pid mapping relationship between the container and the native OS"

2014 Apr 14
2
Re: LXC + USB passthrough = Operation not permitted
I'd also like to point out that, when setting up a linux container with _just_ the lxc tools available in ubuntu, all that was needed to be done was whitelist the appropriate cgroups for the Android devices. The lxc tools seem to create the appropriate character devices when you detach/attach the Android device via USB, and the Android `adb` tool recognized the devices. So, a tangential
2014 Apr 14
2
Re: LXC + USB passthrough = Operation not permitted
Can you see the USB device in the lxc? My answering assumes you cannot see the USB device in the container. If you can see it, please ignore my answer. According to my understanding, “hostdev mode='subsystem' “ is used with KVM only. We use this if we want to passthrough a device to a KVM virtual machine. After doing that, the host machine will lose control of the device. If container is
2014 Apr 14
0
Re: LXC + USB passthrough = Operation not permitted
So, if I remove the hostdev element related to the USB device, running `lsusb` and `usb-devices` inside the container lists the proper device, but I do not see the appropriate character device bus for the Android device under /dev/bus/usb. We are not entirely sure that `lsusb` and `usb-devices` queries the appropriate location - it somehow gets information from the host, not the guest container,
2014 Mar 17
2
a question on vCPU setting for lxc
Dear all, I am not clear about the 'vcpu' element for CPU allocation. I allocated 1 vCPU to my container, after I started the container, I ran 4 computation-intensive tasks on the container. And I found all the 4 physical core are 100% used (my host has 4 physical cores and no other application ran on the host except the container). That is, all available cores were used by the container.
2014 Apr 14
3
Re: LXC + USB passthrough = Operation not permitted
Dear Fil, I am not sure if my answer can help you. I had ever asked a similar question to Daniel and I was using a thirty-party card. As a container uses a shared kernel with the host, so hostdev mode='subsystem' doesn't make sense. Maybe you can try to use hostdev mode='capabilities'. Please see http://libvirt.org/formatdomain.html#elementsHostDevCaps Hope this helps Cheng
2014 Mar 17
0
Re: a question on vCPU setting for lxc
Hi, I'm not libvirt expect. My guess is that some vcpu settings only apply to KVM/qemu backend. LXC is quite different from them. If setting vcpu# is not effective for LXC container, you may need to use cgroups. -- Thanks, Yuanle On Mon, Mar 17, 2014 at 2:32 PM, WANG Cheng D < Cheng.d.Wang@alcatel-sbell.com.cn> wrote: > Dear all, > > I am not clear about the
2015 Mar 27
0
Re: Installation of libvirt on Ubuntu
Libvirt is in the standard repositories... Why don't you just install it with ex tasksel? Van: WANG Cheng D [mailto:Cheng.d.Wang@alcatel-sbell.com.cn] Verzonden: donderdag 26 maart 2015 16:06 Aan: libvirt-users@redhat.com Onderwerp: [libvirt-users] Installation of libvirt on Ubuntu Dear all, I wonder if libvirt can work on Ubuntu. As you know, it is very convenient to install libvirt on
2015 Mar 26
2
Installation of libvirt on Ubuntu
Dear all, I wonder if libvirt can work on Ubuntu. As you know, it is very convenient to install libvirt on Fedora. I can download the libvirt packet from libvirt.org and install it using command ./configure, make and make install. As I am going to install an open source simulation system named openairinterface, Ubuntu is the recommended OS, and I want to install the simulation system in libvirt
2014 Oct 28
0
Why a "core dump" error occurs when a thread exits in container but it's correct when running in native linux
Dear all, When I run my application in a container, sometimes the thread can exit correctly, sometime a "core dump" error occurs when it exits. But the application always exits correctly when it runs in a native fedora. Malloc() and free() functions are used in my application. I wonder if this is the reason for the core dump error. Is the thread exit event treated differently by the
2014 Apr 14
0
Re: LXC + USB passthrough = Operation not permitted
Hi Chang Weng, Thanks for answering! Could you explain why subsystem=USB does not make sense? I was simply following the documentation for USB devices (right above the section you linked to). For what it's worth, I've also tried mounting the specific character device related to the appropriate android device into the container in the way you suggest, with no luck; `adb` still does not
2014 Dec 22
0
Re: why CPU pinning doesn't take effect when using lxc-enter-namespace to run an application
On Mon, Dec 22, 2014 at 08:40:03AM +0000, WANG Cheng D wrote: >Dear all, > >I want my container to run on the third CPU core and I define this by the following xml scrpits: ><vcpu placement="static" cpuset="3">1</vcpu> > >When I run my application in a container terminal, I can see the application runs on the third core as expected. >When I run
2014 Oct 24
1
Re: How can a user process be automatically started after the container is started?
Dear Daniel, You said "use a real init system like systemd to spawn off the things", do you mean a full OS distro container? I installed the container using "yum --installroot=/root/fedora19lxc --releasever=19 install -y openssh, bridge-utils" which is described at https://www.redhat.com/archives/libvirt-users/2013-August/msg00007.html. I don't know how to make systemd
2014 Jun 12
0
about sharing the hugepage memory segment between the host and the container
Dear all, What I want to do is to share a hugepage memory segment between the host and a container (I am trying to use intel DPDK package in container). For a normal memory (4k page), the memory sharing can be achieved by memory-mapped I/O (mmap())method with the same disk file on the host exposed to the container (that is, the host and the container share the same disk file). my questions are:
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 Apr 09
1
Re: method for communication between containers
Dear Daniel, As you know, following your suggestion, I can expose shared memory to two containers hosted by the same machine, thus the two containers can exchange data. Now I have a new problem: how does the containers avoid concurrent accesses to the shared memory? In a native system, this can be achieved by using semaphore. But I don't know how the two containers can see the same semaphore.
2014 Mar 03
3
Re: method for communication between containers
Dear Daniel, Thank you for your email. According to your suggestion, I tried to use the shared memory filesystem for data exchange between the host machine and the container. The steps are as follows: 1) create an empty file in the host machine (/tmp1/file1). 2) run #chmod 777 /tmp1 and #chmod 777 /tmp1/file1. 3) expose /tmp1 to the container by configuring the container with the following XML
2014 Oct 23
2
How can a user process be automatically started after the container is started?
Dear All, I want to start my application automatically after I start the container with a virsh command " virsh -c lxc:/// start mycontainer" How can I achieve this? Thank you in advance. Cheng
2014 May 07
1
Can I assign a dedicated NIC to a container?
Dear all, There are two containers hosted by my host machine. And the host machine has two same 1G NICs. I want to assign a dedicated NIC to one container. The host and the other container share the second NIC. How can I achieve this? Any comments will be highly appreciated. Cheng
2016 Dec 21
0
how to create container image for an existing container
Dear all, I installed 8 containers using "yum --installroot=/root/fedora16lxc" to create the container filesystem. Now I want to manage these containers with openstack. So I need to deploy these containers by openstack which needs the container image. Can anyone tell me how to export my existing container's image? I am not sure if openstack can create container without an image
2014 Dec 22
2
why CPU pinning doesn't take effect when using lxc-enter-namespace to run an application
Dear all, I want my container to run on the third CPU core and I define this by the following xml scrpits: <vcpu placement="static" cpuset="3">1</vcpu> When I run my application in a container terminal, I can see the application runs on the third core as expected. When I run my application using lxc-enter-namespace, the CPU pinning doesn't take effect, i.e.,