search for: mycontainer

Displaying 16 results from an estimated 16 matches for "mycontainer".

2013 Jul 22
2
Libvirt-lxc and systemd question
...mail the list for some advice. What I'm trying to accomplish is a libvirt-lxc, systemd-based container running on my system (Fedora 19). I've read that sharing the underlying OS filesystem with the containers doesn't work, so I've installed a minimal Fedora 19 install in /srv/mycontainer. Everything seems to work okay but what I'm struggling with is how to setup the initial accounts. I've tried to attach to the container using 'nsenter' (entering all the namespaces) but it doesn't appear that the bind mounts are in place. For example, I see the /etc/passw...
2013 Jul 22
0
Re: Libvirt-lxc and systemd question
...or some advice. What I'm trying to accomplish is a libvirt-lxc, > systemd-based container running on my system (Fedora 19). I've read > that sharing the underlying OS filesystem with the containers > doesn't work, so I've installed a minimal Fedora 19 install in > /srv/mycontainer. Everything seems to work okay but what I'm > struggling with is how to setup the initial accounts. I've tried to > attach to the container using 'nsenter' (entering all the > namespaces) but it doesn't appear that the bind mounts are in place. > For example, I see...
2014 Feb 26
6
[libvirt] LXC, user namespaces and systemd
...ained commit 6fb42d7cdc57da453691d043d6b9bf23e2bae15e Patch from Richard Weinberger "Ensure systemd cgroup ownership is delegated to container with userns" 2. Container configuration - setup Fedora environment # yum -y --releasever=20 --nogpg --installroot=/var/lib/libvirt/filesystems/mycontainer --disablerepo='*' --enablerepo=fedora install systemd passwd yum fedora-release vim-minimal openssh-server procps-ng # echo "pts/0" >> /var/lib/libvirt/filesystems/mycontainer/etc/securetty # chroot /var/lib/libvirt/filesystems/mycontainer /bin/passwd root - In the final...
2013 Jul 22
1
Re: Libvirt-lxc and systemd question
...What I'm trying to accomplish is a libvirt-lxc, >> systemd-based container running on my system (Fedora 19). I've read >> that sharing the underlying OS filesystem with the containers >> doesn't work, so I've installed a minimal Fedora 19 install in >> /srv/mycontainer. Everything seems to work okay but what I'm >> struggling with is how to setup the initial accounts. I've tried to >> attach to the container using 'nsenter' (entering all the >> namespaces) but it doesn't appear that the bind mounts are in place. >> Fo...
2014 Feb 27
2
Re: [libvirt] LXC, user namespaces and systemd
On 26.02.2014 17:59, Stephan Sachse wrote: >> # chown -R foo:foo /var/lib/libvirt/filesystems/mycontainer > > you must "shift" the uids for the container 0 -> 666, 1 -> 667, 2 -> > 668. there is a tool for this: uidmapshift I prepared two containers, the first I used chown, in the second uidmapshift, here is the results. ./uidmapshift -r /var/lib/libvirt/filesystems/myco...
2014 Apr 30
1
How can I have more than one console/terminal windows when connecting to lxc
Dear all, I use virsh command to start a container and connect to it. When I use virsh -c lxc:/// console mycontainer, I only have one console. I wonder how to open multiple terminal windows for the same container. Thank you in advance Cheng Wang
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 Mar 03
0
Re: [libvirt] LXC, user namespaces and systemd
...emd[26]: Failed to create root cgroup hierarchy: Permission denied systemd[26]: Failed to allocate manager object: Permission denied systemd[29]: pam_unix(systemd-user:session): session closed for user darek The Cgroup hierarchy for the machine looks as follows: ├─machine.slice │ └─machine-lxc\x2dmycontainer.scope │ ├─17303 /usr/libexec/libvirt_lxc --name mycontainer --console 22 --security=selinux --handshake 25 --background │ └─machine.slice │ └─machine-lxc\x2dmycontainer.scope │ ├─17306 /usr/lib/systemd/systemd │ ├─machine.slice │ │ └─machine-lxc\x2dmycontainer.scope │...
2014 Feb 27
0
Re: [libvirt] LXC, user namespaces and systemd
On Thu, Feb 27, 2014 at 3:07 PM, Dariusz Michaluk <d.michaluk@samsung.com> wrote: > On 26.02.2014 17:59, Stephan Sachse wrote: >>> >>> # chown -R foo:foo /var/lib/libvirt/filesystems/mycontainer >> >> you must "shift" the uids for the container 0 -> 666, 1 -> 667, 2 -> >> 668. there is a tool for this: uidmapshift > > I prepared two containers, the first I used chown, in the second > uidmapshift, here is the results. > > ./uidmapshift -r...
2014 Feb 26
0
Re: [libvirt] LXC, user namespaces and systemd
> # chown -R foo:foo /var/lib/libvirt/filesystems/mycontainer you must "shift" the uids for the container 0 -> 666, 1 -> 667, 2 -> 668. there is a tool for this: uidmapshift some tools may not work, because of the missing file capabilities. chown removes all file capabilities! try ping as user inside the container. (missing file cap cap_...
2014 Sep 26
1
How to configure the container's NIC automatically with an assigned IP address
Dear all, I want to run a TCP/IP application automatically after I start the container using "virsh -c lxc:/// start mycontainer". Does anybody know how to configure the NIC automatically with an assigned IP address? I couldn't find useful information from domain XML format spec and it only talks how to set the mac address (http://libvirt.org/formatdomain.html) . Your response will be highly appreciated. Cheng
2014 Sep 28
0
Re: How to configure the container's NIC automatically with an assigned IP address
...t; TYPE="Ethernet" ONBOOT="yes" IPADDR=192.168.128.15 PREFIX=24 GATEWAY=192.168.128.254 With my warmest regards, Cheng > Dear all, > > I want to run a TCP/IP application automatically after I start the > container using "virsh -c lxc:/// start mycontainer". Does anybody > know how to configure the NIC automatically with an assigned IP > address? I couldn't find useful information from domain XML format > spec and it only talks how to set the mac address > (http://libvirt.org/formatdomain.html) . > > Your response wil...
2014 Oct 23
0
Re: How can a user process be automatically started after the container is started?
On Thu, Oct 23, 2014 at 05:09:50AM +0000, WANG Cheng D wrote: > 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? Whatever you specify as the <init>....</init> binary in the container XML file is started when the container is created. If you only want 1 application to run, then this is straightforward. If you want to run multiple applications either point the &qu...
2014 Oct 24
1
Re: How can a user process be automatically started after the container is started?
...users] How can a user process be automatically started after the container is started? On Thu, Oct 23, 2014 at 05:09:50AM +0000, WANG Cheng D wrote: > 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? Whatever you specify as the <init>....</init> binary in the container XML file is started when the container is created. If you only want 1 application to run, then this is straightforward. If you want to run multiple applications either point the &qu...
2014 Mar 03
2
Re: [libvirt] LXC, user namespaces and systemd
...up hierarchy: Permission denied > systemd[26]: Failed to allocate manager object: Permission denied > systemd[29]: pam_unix(systemd-user:session): session closed for user darek > > The Cgroup hierarchy for the machine looks as follows: > > ├─machine.slice > │ └─machine-lxc\x2dmycontainer.scope > │ ├─17303 /usr/libexec/libvirt_lxc --name mycontainer --console 22 > --security=selinux --handshake 25 --background > │ └─machine.slice > │ └─machine-lxc\x2dmycontainer.scope > │ ├─17306 /usr/lib/systemd/systemd > │ ├─machine.slice > │ │ └─mach...
2005 Aug 29
9
can a class find out it''s instance name?
Hi friends - a javascript question.... Does the prototype object add some way for a class to find out the variable name of its instance variable? Or does javascript have some built in way to do this? This is confusing to describe - but if I define a variable as some object: var myVariable= new Widget(''fdfa''); can some built-in method inside the Widget class be