Hii all
I am using lxc for creating containers.
But when i create lxc container using "lxc-create -n abc" it creates a abc
container and when i do lxc-info -n abc its show "abc is stopped" and when i
perform "lxc-start -n abc [-f conf file ]" the terminal hangs and if do
"lxc-execute -n abc [-f
hi Joerg
Thnks 4 reply.
I have executed the script now the error is gone but there is some problem.
lxc-start -n guest
lxc-start: No such file or directory - failed to exec /sbin/init
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'guest'
lxc-start: Device or resourc
Hii all
I am using lxc for creating containers.
But when i create lxc container using "lxc-create -n abc" it creates a abc
container and when i do lxc-info -n abc its show "abc is stopped" and when i
perform "lxc-start -n abc [-f conf file ]" the terminal hangs and if do
"lxc-execute -n abc [-f
It seems you didn't bootstrap any distribution. Please see
http://blog.foaa.de/2010/05/lxc-on-debian-squeeze/ , note especially
the use of debootstrap
On Wed, Aug 24, 2011 at 5:30 PM, nishant mungse wrote:
> Hii all
> I am using lxc for creating containers.
> But when i create lxc container usi
hello Canhua,
I did apt-get bootstrap and installed it.
And now when i did ::
lxc-start -n vm0 [-f config file] -d
and after that i checked
lxc-info -n vm0
o/p was vm0 is stopped.
I did the same thing which is given in that site you mentioned.
Wrote all the things in config file which are given
You may have missed to lxc-create the container. You shoulld run:
lxc-create -n [container-name] -f [/path/to/config-file] -t [template-name]
for example lxc-create -n vm0 -f [lxc-veth.conf] -t debian
On Wed, Aug 24, 2011 at 10:17 PM, nishant mungse
wrote:
> hello Canhua,
> I did apt-get boots
hiii
thnks Canhua.
But still there is a problem
Here are thing i did
1) lxc-create -n vm2 -f /home/nishant/vm2/lxc-macvlan.conf -t sshd
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in
/var/lib/
hi, You may start container just like this:
lxc-start -n vm2
without -f ...
On Thu, Aug 25, 2011 at 3:09 PM, nishant mungse wrote:
> hiii
> thnks Canhua.
> But still there is a problem
> Here are thing i did
> 1) lxc-create -n vm2 -f /home/nishant/vm2/lxc-macvlan.conf -t sshd
> Generating pub
hiii Canhua,
lxc-start -n vm2
/usr/lib/lxc/lxc-init is /usr/lib/lxc/lxc-init
sshd is /usr/sbin/sshd
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
And contents of /etc/ssh are::
ls /etc/ssh/
moduli sshd_config ssh_host_dsa_key.p
hii
The entry in host's fstab contains
none /cgroup cgroup defaults 0 0s
And i have deleted all entries from guest's fstab file
The guest container is created abut when i exe it it shows following error
lxc-execute -n guest -f /home/nishant/lxc/conf.guest /bin/bash
lxc-e
Hi Nishant,
your rootfs is missing /dev/pts.
I use normaly following script: (replace with your location of the
container rootfs)
DEV=/dev
rm ${DEV}/null
rm ${DEV}/zero
mknod -m 666 ${DEV}/null c 1 3
mknod -m 666 ${DEV}/zero c 1 5
mknod -m 666 ${DEV}/random c 1 8
mknod -m 666 ${DEV}/urandom c 1
do you have /sbin/init file in container's rootfs? e.g.
/var/lib/lxc/guest/sbin/init
On Tue, Aug 30, 2011 at 2:39 PM, nishant mungse wrote:
> hi Joerg
> Thnks 4 reply.
> I have executed the script now the error is gone but there is some problem.
> lxc-start -n guest
> lxc-start: No such file or d
this file is needed. some form of bootstrap is need to setup these system files.
On Tue, Aug 30, 2011 at 3:07 PM, nishant mungse wrote:
> hii Canhua
> No there is no such file.
> Regards,
> Nishant
>
> On Tue, Aug 30, 2011 at 12:20 PM, Canhua wrote:
>>
>> do you have /sbin/init file in containe
Hi Canhua
I hv created a fedora container.
commnd::lxc-start -n fedora
Welcome to Fedora
...
..
..
Setting hostname fedora: [ OK ]
Checking filesystems
[ OK ]
mount: according to mtab, rootfs i
On Tue, Aug 30, 2011 at 2:13 PM, nishant mungse wrote:
> Hi Canhua
>
>
> I hv created a fedora container.
>
> commnd::lxc-start -n fedora
>
>
> Welcome to Fedora
> ...
> ..
> ..
> Setting hostname fedora: [ OK ]
> Checking filesystems
>
hi all
when i write create commnd it shows this output::
lxc-create -n ubuntu -t lucid -f /home/nishant/ubuntu.conf
debootstrap is /usr/sbin/debootstrap
Checking cache download in /var/cache/lxc/lucid/rootfs-
i386 ...
Downloading ubuntu lucid minimal ...
I: Retrieving Release
And hangs here...
Quoting nishant mungse (nishantmun...@gmail.com):
> hi all
>
> when i write create commnd it shows this output::
> lxc-create -n ubuntu -t lucid -f /home/nishant/ubuntu.conf
>
> debootstrap is /usr/sbin/debootstrap
> Checking cache download in /var/cache/lxc/lucid/rootfs-
> i386 ...
> Downloadi
A couple of observations. I find LXC to run the best on 11.04 (and the
Oneric beta's) unless you upgrade your 10.x lxc package and kernel. (I
don't run 10.10 though)
When I've run into problems (especially on 10.04 which broke LXC with
their last kernel) turning on logging helped me isolate the is
Quoting nishant mungse (nishantmun...@gmail.com):
> Hii all
>
> I am using lxc for creating containers.
>
> But when i create lxc container using "lxc-create -n abc" it creates a abc
Exactly what command did you use? Please list the configuration file as well.
I will try to reproduce.
---
hello all
Thnks 4 comments. I hv resolved that issue, when we comment lxc.rootfs the
lxc-execute works. My question is why for lxc-execute the rootfs is not
needed ?
Regards,
Nishant.
On Mon, Sep 19, 2011 at 9:16 PM, Serge E. Hallyn wrote:
> Quoting nishant mungse (nishantmun...@gmail.com):
> >
Hi all
I have written a socket program in which i want to start multiple containers
simultaneously.
I am using multicasting. I am forking or creating a new child process and
immediately using exec to detach from the parent process.
But when i run the program it show this output. *What is meaning o
21 matches
Mail list logo