Re: [Lxc-users] Help regarding lxc

2011-09-19 Thread nishant mungse
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 serge.hal...@canonical.com
 wrote:

 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.

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] Help regarding lxc

2011-09-17 Thread Matthew Franz
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 issue..

-o, --logfile=FILE
  Output to an alternate log FILE. The default is no log.

   -l, --logpriority=LEVEL
  Set log priority to LEVEL. The default log  priority  is
 ERROR.  Possible
  values are : FATAL, CRIT, WARN, ERROR, NOTICE, INFO, DEBUG.

I would start there

- mdf


On Wed, Aug 24, 2011 at 5:28 AM, nishant mungse nishantmun...@gmail.com wrote:
 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 conf file ] \bin\bash terminal hangs.
 It is not even working for  /usr/bin/lxc-execute -n foo -f
 /usr/share/doc/lxc/examples/lxc-macvlan.conf /bin/bash.
 I am using UBUNTU 10.10.
 Plz help me ASAP.
 Regards,
 Nishant.
 --
 BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
 http://p.sf.net/sfu/rim-devcon-copy2
 ___
 Lxc-users mailing list
 Lxc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/lxc-users





-- 
--
Matthew Franz
mdfr...@gmail.com

--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] help regarding lxc

2011-08-31 Thread nishant mungse
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
or sum times shows failed to download. My internet connection is working
properly. Is there sumtng i m missing??

pLZ hlp me ASAP.
Thnks

Regards,
Nishant.
--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] help regarding lxc

2011-08-31 Thread Serge Hallyn
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 ...
 Downloading ubuntu lucid minimal ...
 I: Retrieving Release
 
 And hangs here
 or sum times shows failed to download. My internet connection is working
 properly. Is there sumtng i m missing??

What is your host distro+release?  what is in /home/nishant/ubuntu.conf?
What is in /etc/default/lxc?  What do you get when you just do

   sudo debootstrap lucid lucid-dir

?

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


[Lxc-users] help regarding lxc

2011-08-30 Thread nishant mungse
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 resource busy - failed to remove cgroup
'/cgrouplxc/guest'

Why it failed to exec /sbin/init? and what might be the solution to this.

And i am not using any of the templates in creating the container.


Regards,
Nishant
--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] help regarding lxc

2011-08-30 Thread Canhua
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 nishantmun...@gmail.com 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 directory - failed to exec /sbin/init
 lxc-start: invalid sequence number 1. expected 2
 lxc-start: failed to spawn 'guest'
 lxc-start: Device or resource busy - failed to remove cgroup
 '/cgrouplxc/guest'
 Why it failed to exec /sbin/init? and what might be the solution to this.
 And i am not using any of the templates in creating the container.

 Regards,
 Nishant

 --
 Special Offer -- Download ArcSight Logger for FREE!
 Finally, a world-class log management solution at an even better
 price-free! And you'll get a free Love Thy Logs t-shirt when you
 download Logger. Secure your free ArcSight Logger TODAY!
 http://p.sf.net/sfu/arcsisghtdev2dev
 ___
 Lxc-users mailing list
 Lxc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/lxc-users



--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] help regarding lxc

2011-08-30 Thread Canhua
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 nishantmun...@gmail.com wrote:
 hii Canhua
 No there is no such  file.
 Regards,
 Nishant

 On Tue, Aug 30, 2011 at 12:20 PM, Canhua dreamerat...@gmail.com wrote:

 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 nishantmun...@gmail.com
 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 directory - failed to exec /sbin/init
  lxc-start: invalid sequence number 1. expected 2
  lxc-start: failed to spawn 'guest'
  lxc-start: Device or resource busy - failed to remove cgroup
  '/cgrouplxc/guest'
  Why it failed to exec /sbin/init? and what might be the solution to
  this.
  And i am not using any of the templates in creating the container.
 
  Regards,
  Nishant
 
 
  --
  Special Offer -- Download ArcSight Logger for FREE!
  Finally, a world-class log management solution at an even better
  price-free! And you'll get a free Love Thy Logs t-shirt when you
  download Logger. Secure your free ArcSight Logger TODAY!
  http://p.sf.net/sfu/arcsisghtdev2dev
  ___
  Lxc-users mailing list
  Lxc-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/lxc-users
 
 



--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] help regarding lxc

2011-08-30 Thread nishant mungse
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 is already mounted on /

Mounting local filesystems:[  OK  ]
Enabling local filesystem quotas:  [  OK  ]
Enabling /etc/fstab swaps: [  OK  ]

hangs after this ..

What should i do.?? i have deleted allthe contents form fstab also.
What might be d problem???

plZ hlp me ASAP

Regards,
Nishant.


On Tue, Aug 30, 2011 at 12:40 PM, Canhua dreamerat...@gmail.com wrote:

 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 nishantmun...@gmail.com
 wrote:
  hii Canhua
  No there is no such  file.
  Regards,
  Nishant
 
  On Tue, Aug 30, 2011 at 12:20 PM, Canhua dreamerat...@gmail.com wrote:
 
  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 
 nishantmun...@gmail.com
  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 directory - failed to exec /sbin/init
   lxc-start: invalid sequence number 1. expected 2
   lxc-start: failed to spawn 'guest'
   lxc-start: Device or resource busy - failed to remove cgroup
   '/cgrouplxc/guest'
   Why it failed to exec /sbin/init? and what might be the solution to
   this.
   And i am not using any of the templates in creating the container.
  
   Regards,
   Nishant
  
  
  
 --
   Special Offer -- Download ArcSight Logger for FREE!
   Finally, a world-class log management solution at an even better
   price-free! And you'll get a free Love Thy Logs t-shirt when you
   download Logger. Secure your free ArcSight Logger TODAY!
   http://p.sf.net/sfu/arcsisghtdev2dev
   ___
   Lxc-users mailing list
   Lxc-users@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/lxc-users
  
  
 
 

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] help regarding lxc

2011-08-29 Thread nishant mungse
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-execute: No such file or directory - failed to mount a new instance of
'/dev/pts'
lxc-execute: failed to setup the new pts instance

lxc-execute: failed to setup the container
lxc-execute: invalid sequence number 1. expected 2
lxc-execute: failed to spawn 'guest'

Regards,
Nishant.

On Wed, Aug 24, 2011 at 3:00 PM, nishant mungse nishantmun...@gmail.comwrote:

 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 conf file ] \bin\bash terminal hangs.

 It is not even working for  /usr/bin/lxc-execute -n foo -f
 /usr/share/doc/lxc/examples/lxc-macvlan.conf /bin/bash.

 I am using UBUNTU 10.10.

 Plz help me ASAP.

 Regards,
 Nishant.

--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] help regarding lxc

2011-08-29 Thread Joerg Gollnick
Hi Nishant,
your rootfs is missing rootfs/dev/pts.
I use normaly following script: (replace rootfs with your location of the 
container rootfs)

DEV=rootfs/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 9
mkdir -m 755 ${DEV}/pts
mkdir -m 1777 ${DEV}/shm
mknod -m 666 ${DEV}/tty c 5 0
mknod -m 666 ${DEV}/tty0 c 4 0
mknod -m 666 ${DEV}/tty1 c 4 1
mknod -m 666 ${DEV}/full c 1 7
mknod -m 600 ${DEV}/initctl p
mknod -m 666 ${DEV}/ptmx c 5 2

With best regards Joerg

Am Montag, 29. August 2011, 13:22:28 schrieb nishant mungse:
 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-execute: No such file or directory - failed to mount a new instance of
 '/dev/pts'
 lxc-execute: failed to setup the new pts instance
 
 lxc-execute: failed to setup the container
 lxc-execute: invalid sequence number 1. expected 2
 lxc-execute: failed to spawn 'guest'
 
 Regards,
 Nishant.
 
 On Wed, Aug 24, 2011 at 3:00 PM, nishant mungse 
nishantmun...@gmail.comwrote:
  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 conf file ] \bin\bash terminal
  hangs.
  
  It is not even working for  /usr/bin/lxc-execute -n foo -f
  /usr/share/doc/lxc/examples/lxc-macvlan.conf /bin/bash.
  
  I am using UBUNTU 10.10.
  
  Plz help me ASAP.
  
  Regards,
  Nishant.

--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] help regarding lxc

2011-08-25 Thread nishant mungse
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/lxc/vm2/rootfs/etc/ssh/ssh_host_rsa_key.
Your public key has been saved in
/var/lib/lxc/vm2/rootfs/etc/ssh/ssh_host_rsa_key.pub.
The key fingerprint is:
28:b5:ba:f9:ab:48:c2:7f:e0:3e:a2:f8:8f:c8:7b:3e root@ubuntu
The key's randomart image is:
+--[ RSA 2048]+
| |
| |
|  .  |
| . o |
|. o S|
|.  . o   |
|..o o|
|o=.E +   |
|=+X=Ooo. |
+-+
Generating public/private dsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in
/var/lib/lxc/vm2/rootfs/etc/ssh/ssh_host_dsa_key.
Your public key has been saved in
/var/lib/lxc/vm2/rootfs/etc/ssh/ssh_host_dsa_key.pub.
The key fingerprint is:
b6:c6:1b:ad:77:ab:4e:6e:f9:cd:c2:6d:af:d7:d4:f8 root@ubuntu
The key's randomart image is:
+--[ DSA 1024]+
| |
| |
| |
| |
|S  ..|
|   o o. o|
|= oo . o.|
|   . *+ +oo E|
|o+++o+++.|
+-+
'sshd' template installed
'vm2' created

2) When i did
lxc-start -n vm2 -f /home/nishant/vm2//lxc-macvlan.conf /bin/bash
 After this command the terminal hangs

3)lxc-ls
   vm2

4)lxc-info -n vm2
vm2 is stopped

am i right in executing command or is there something i m missing in
executing..
Plz help me.

The only change i did is copied conf file to loc /home/nishant/vm2 and
changed lxc.rootfs=/home/nishant/vm2 and changed the lxc.utsname = vm2.
Do i need to make some changes in /etc/fstab and creating control groups.





Regards,
Nishant.


On Thu, Aug 25, 2011 at 5:36 AM, Canhua dreamerat...@gmail.com wrote:

 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
 nishantmun...@gmail.com wrote:
  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 in that site but
 still
  it is not working.
  These are things i did::
  1) Copied all the contents of config path and only changed ipv4 add and
 hwd
  address .
   Container with network virtualized using the macvlan device driver
  lxc.utsname = vm0
  lxc.network.type = macvlan
  lxc.network.flags = up
  lxc.network.link = eth0
  lxc.network.hwaddr = **
  lxc.network.ipv4 =  **
  lxc.tty = 4
  lxc.pts = 1024
  lxc.rootfs = /srv/lxc/vm0/rootfs
  lxc.cgroup.devices.deny = a
  # /dev/null and zero
  lxc.cgroup.devices.allow = c 1:3 rwm
  lxc.cgroup.devices.allow = c 1:5 rwm
  # consoles
  lxc.cgroup.devices.allow = c 5:1 rwm
  lxc.cgroup.devices.allow = c 5:0 rwm
  lxc.cgroup.devices.allow = c 4:0 rwm
  lxc.cgroup.devices.allow = c 4:1 rwm
  # /dev/{,u}random
  lxc.cgroup.devices.allow = c 1:9 rwm
  lxc.cgroup.devices.allow = c 1:8 rwm
  lxc.cgroup.devices.allow = c 136:* rwm
  lxc.cgroup.devices.allow = c 5:2 rwm
  # rtc
  lxc.cgroup.devices.allow = c 254:0 rwm
 
 
  2) wrote cgroup /cgroup cgroup defaults 0 0 in /etc/fstab
 
  3) mount cgroup
  4)  after that i did::
  lxc-start -n vm0 -f /var/lib/lxc/vm0/lxc-macvlan.conf -d
  and lxc-info -n vm0 gives vm0 is stopped
  4) and lxc-checkconfig gave
  Kernel config /proc/config.gz not found, looking in other places...
  Found kernel config file /boot/config-2.6.35-22-generic
  --- Namespaces ---
  Namespaces: enabled
  Utsname namespace: enabled
  Ipc namespace: enabled
  Pid namespace: enabled
  User namespace: enabled
  Network namespace: enabled
  Multiple /dev/pts instances: enabled
  --- Control groups ---
  Cgroup: enabled
  Cgroup namespace: enabled
  Cgroup device: enabled
  Cgroup sched: enabled
  Cgroup cpu account: enabled
  Cgroup memory controller: enabled
  Cgroup cpuset: enabled
  --- Misc ---
  Veth pair device: enabled
  Macvlan: enabled
  Vlan: enabled
  Note : Before booting a new kernel, you can check its configuration
  usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig
  Please help me out ASAP.
  Regards,
  Nishant.
 
  On Wed, Aug 24, 2011 at 5:25 PM, Canhua dreamerat...@gmail.com wrote:
 
  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 
 nishantmun...@gmail.com
  wrote:
   Hii all
   I am using lxc for 

Re: [Lxc-users] help regarding lxc

2011-08-25 Thread Canhua
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 nishantmun...@gmail.com 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 public/private rsa key pair.
 Enter passphrase (empty for no passphrase):
 Enter same passphrase again:
 Your identification has been saved in
 /var/lib/lxc/vm2/rootfs/etc/ssh/ssh_host_rsa_key.
 Your public key has been saved in
 /var/lib/lxc/vm2/rootfs/etc/ssh/ssh_host_rsa_key.pub.
 The key fingerprint is:
 28:b5:ba:f9:ab:48:c2:7f:e0:3e:a2:f8:8f:c8:7b:3e root@ubuntu
 The key's randomart image is:
 +--[ RSA 2048]+
 |                 |
 |                 |
 |      .          |
 |     . o         |
 |    . o S        |
 |.  . o           |
 |..o o            |
 |o=.E +           |
 |=+X=Ooo.         |
 +-+
 Generating public/private dsa key pair.
 Enter passphrase (empty for no passphrase):
 Enter same passphrase again:
 Your identification has been saved in
 /var/lib/lxc/vm2/rootfs/etc/ssh/ssh_host_dsa_key.
 Your public key has been saved in
 /var/lib/lxc/vm2/rootfs/etc/ssh/ssh_host_dsa_key.pub.
 The key fingerprint is:
 b6:c6:1b:ad:77:ab:4e:6e:f9:cd:c2:6d:af:d7:d4:f8 root@ubuntu
 The key's randomart image is:
 +--[ DSA 1024]+
 |                 |
 |                 |
 |                 |
 |                 |
 |        S      ..|
 |       o o    . o|
 |        = oo . o.|
 |       . *+ +oo E|
 |        o+++o+++.|
 +-+
 'sshd' template installed
 'vm2' created
 2) When i did
 lxc-start -n vm2 -f /home/nishant/vm2//lxc-macvlan.conf /bin/bash
  After this command the terminal hangs
 3)lxc-ls
    vm2
 4)lxc-info -n vm2
 vm2 is stopped
 am i right in executing command or is there something i m missing in
 executing..
 Plz help me.
 The only change i did is copied conf file to loc /home/nishant/vm2 and
 changed lxc.rootfs=/home/nishant/vm2 and changed the lxc.utsname = vm2.
 Do i need to make some changes in /etc/fstab and creating control groups.




 Regards,
 Nishant.

 On Thu, Aug 25, 2011 at 5:36 AM, Canhua dreamerat...@gmail.com wrote:

 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
 nishantmun...@gmail.com wrote:
  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 in that site but
  still
  it is not working.
  These are things i did::
  1) Copied all the contents of config path and only changed ipv4 add and
  hwd
  address .
   Container with network virtualized using the macvlan device driver
  lxc.utsname = vm0
  lxc.network.type = macvlan
  lxc.network.flags = up
  lxc.network.link = eth0
  lxc.network.hwaddr = **
  lxc.network.ipv4 =  **
  lxc.tty = 4
  lxc.pts = 1024
  lxc.rootfs = /srv/lxc/vm0/rootfs
  lxc.cgroup.devices.deny = a
  # /dev/null and zero
  lxc.cgroup.devices.allow = c 1:3 rwm
  lxc.cgroup.devices.allow = c 1:5 rwm
  # consoles
  lxc.cgroup.devices.allow = c 5:1 rwm
  lxc.cgroup.devices.allow = c 5:0 rwm
  lxc.cgroup.devices.allow = c 4:0 rwm
  lxc.cgroup.devices.allow = c 4:1 rwm
  # /dev/{,u}random
  lxc.cgroup.devices.allow = c 1:9 rwm
  lxc.cgroup.devices.allow = c 1:8 rwm
  lxc.cgroup.devices.allow = c 136:* rwm
  lxc.cgroup.devices.allow = c 5:2 rwm
  # rtc
  lxc.cgroup.devices.allow = c 254:0 rwm
 
 
  2) wrote cgroup /cgroup cgroup defaults 0 0 in /etc/fstab
 
  3) mount cgroup
  4)  after that i did::
  lxc-start -n vm0 -f /var/lib/lxc/vm0/lxc-macvlan.conf -d
  and lxc-info -n vm0 gives vm0 is stopped
  4) and lxc-checkconfig gave
  Kernel config /proc/config.gz not found, looking in other places...
  Found kernel config file /boot/config-2.6.35-22-generic
  --- Namespaces ---
  Namespaces: enabled
  Utsname namespace: enabled
  Ipc namespace: enabled
  Pid namespace: enabled
  User namespace: enabled
  Network namespace: enabled
  Multiple /dev/pts instances: enabled
  --- Control groups ---
  Cgroup: enabled
  Cgroup namespace: enabled
  Cgroup device: enabled
  Cgroup sched: enabled
  Cgroup cpu account: enabled
  Cgroup memory controller: enabled
  Cgroup cpuset: enabled
  --- Misc ---
  Veth pair device: enabled
  Macvlan: enabled
  Vlan: enabled
  Note : Before booting a new kernel, you can check its configuration
  usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig
  Please help me out ASAP.
  Regards,
  Nishant.
 
  On Wed, Aug 24, 2011 at 5:25 PM, Canhua dreamerat...@gmail.com wrote:
 
  It seems you didn't bootstrap any distribution.  Please 

Re: [Lxc-users] help regarding lxc

2011-08-25 Thread nishant mungse
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.pub  ssh_host_rsa_key.pub
ssh_config  ssh_host_dsa_key  ssh_host_rsa_key


What is problem this time ?

Regards,
Nishant.


On Thu, Aug 25, 2011 at 1:26 PM, Canhua dreamerat...@gmail.com wrote:

 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 nishantmun...@gmail.com
 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 public/private rsa key pair.
  Enter passphrase (empty for no passphrase):
  Enter same passphrase again:
  Your identification has been saved in
  /var/lib/lxc/vm2/rootfs/etc/ssh/ssh_host_rsa_key.
  Your public key has been saved in
  /var/lib/lxc/vm2/rootfs/etc/ssh/ssh_host_rsa_key.pub.
  The key fingerprint is:
  28:b5:ba:f9:ab:48:c2:7f:e0:3e:a2:f8:8f:c8:7b:3e root@ubuntu
  The key's randomart image is:
  +--[ RSA 2048]+
  | |
  | |
  |  .  |
  | . o |
  |. o S|
  |.  . o   |
  |..o o|
  |o=.E +   |
  |=+X=Ooo. |
  +-+
  Generating public/private dsa key pair.
  Enter passphrase (empty for no passphrase):
  Enter same passphrase again:
  Your identification has been saved in
  /var/lib/lxc/vm2/rootfs/etc/ssh/ssh_host_dsa_key.
  Your public key has been saved in
  /var/lib/lxc/vm2/rootfs/etc/ssh/ssh_host_dsa_key.pub.
  The key fingerprint is:
  b6:c6:1b:ad:77:ab:4e:6e:f9:cd:c2:6d:af:d7:d4:f8 root@ubuntu
  The key's randomart image is:
  +--[ DSA 1024]+
  | |
  | |
  | |
  | |
  |S  ..|
  |   o o. o|
  |= oo . o.|
  |   . *+ +oo E|
  |o+++o+++.|
  +-+
  'sshd' template installed
  'vm2' created
  2) When i did
  lxc-start -n vm2 -f /home/nishant/vm2//lxc-macvlan.conf /bin/bash
   After this command the terminal hangs
  3)lxc-ls
 vm2
  4)lxc-info -n vm2
  vm2 is stopped
  am i right in executing command or is there something i m missing in
  executing..
  Plz help me.
  The only change i did is copied conf file to loc /home/nishant/vm2 and
  changed lxc.rootfs=/home/nishant/vm2 and changed the lxc.utsname = vm2.
  Do i need to make some changes in /etc/fstab and creating control groups.
 
 
 
 
  Regards,
  Nishant.
 
  On Thu, Aug 25, 2011 at 5:36 AM, Canhua dreamerat...@gmail.com wrote:
 
  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
  nishantmun...@gmail.com wrote:
   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 in that site but
   still
   it is not working.
   These are things i did::
   1) Copied all the contents of config path and only changed ipv4 add
 and
   hwd
   address .
Container with network virtualized using the macvlan device driver
   lxc.utsname = vm0
   lxc.network.type = macvlan
   lxc.network.flags = up
   lxc.network.link = eth0
   lxc.network.hwaddr = **
   lxc.network.ipv4 =  **
   lxc.tty = 4
   lxc.pts = 1024
   lxc.rootfs = /srv/lxc/vm0/rootfs
   lxc.cgroup.devices.deny = a
   # /dev/null and zero
   lxc.cgroup.devices.allow = c 1:3 rwm
   lxc.cgroup.devices.allow = c 1:5 rwm
   # consoles
   lxc.cgroup.devices.allow = c 5:1 rwm
   lxc.cgroup.devices.allow = c 5:0 rwm
   lxc.cgroup.devices.allow = c 4:0 rwm
   lxc.cgroup.devices.allow = c 4:1 rwm
   # /dev/{,u}random
   lxc.cgroup.devices.allow = c 1:9 rwm
   lxc.cgroup.devices.allow = c 1:8 rwm
   lxc.cgroup.devices.allow = c 136:* rwm
   lxc.cgroup.devices.allow = c 5:2 rwm
   # rtc
   lxc.cgroup.devices.allow = c 254:0 rwm
  
  
   2) wrote cgroup /cgroup cgroup defaults 0 0 in /etc/fstab
  
   3) mount cgroup
   4)  after that i did::
   lxc-start -n vm0 -f /var/lib/lxc/vm0/lxc-macvlan.conf -d
   and lxc-info -n vm0 gives vm0 is stopped
   4) and lxc-checkconfig gave
   Kernel config /proc/config.gz not found, looking in other places...
   Found kernel config file /boot/config-2.6.35-22-generic
   --- Namespaces ---
   Namespaces: enabled
   Utsname namespace: enabled
   Ipc namespace: enabled
   Pid namespace: enabled
   User namespace: enabled
   Network namespace: enabled
   

[Lxc-users] help regarding lxc

2011-08-24 Thread nishant mungse
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 conf file ] \bin\bash terminal hangs.

It is not even working for  /usr/bin/lxc-execute -n foo -f
/usr/share/doc/lxc/examples/lxc-macvlan.conf /bin/bash.

I am using UBUNTU 10.10.

Plz help me ASAP.

Regards,
Nishant.
--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] help regarding lxc

2011-08-24 Thread nishant mungse
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 in that site but still
it is not working.

These are things i did::

1) Copied all the contents of config path and only changed ipv4 add and hwd
address .
 Container with network virtualized using the macvlan device driver
lxc.utsname = vm0
lxc.network.type = macvlan
lxc.network.flags = up
lxc.network.link = eth0
lxc.network.hwaddr = **
lxc.network.ipv4 =  **

lxc.tty = 4
lxc.pts = 1024
lxc.rootfs = /srv/lxc/vm0/rootfs
lxc.cgroup.devices.deny = a
# /dev/null and zero
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
# consoles
lxc.cgroup.devices.allow = c 5:1 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 4:0 rwm
lxc.cgroup.devices.allow = c 4:1 rwm
# /dev/{,u}random
lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c 5:2 rwm
# rtc
lxc.cgroup.devices.allow = c 254:0 rwm



2) wrote cgroup /cgroup cgroup defaults 0 0 in /etc/fstab


3) mount cgroup

4)  after that i did::

lxc-start -n vm0 -f /var/lib/lxc/vm0/lxc-macvlan.conf -d

and lxc-info -n vm0 gives vm0 is stopped

4) and lxc-checkconfig gave
Kernel config /proc/config.gz not found, looking in other places...
Found kernel config file /boot/config-2.6.35-22-generic
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: enabled
Network namespace: enabled
Multiple /dev/pts instances: enabled

--- Control groups ---
Cgroup: enabled
Cgroup namespace: enabled
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled

--- Misc ---
Veth pair device: enabled
Macvlan: enabled
Vlan: enabled

Note : Before booting a new kernel, you can check its configuration
usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig

Please help me out ASAP.

Regards,
Nishant.


On Wed, Aug 24, 2011 at 5:25 PM, Canhua dreamerat...@gmail.com wrote:

 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 nishantmun...@gmail.com
 wrote:
  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 conf file ] \bin\bash terminal hangs.
  It is not even working for  /usr/bin/lxc-execute -n foo -f
  /usr/share/doc/lxc/examples/lxc-macvlan.conf /bin/bash.
  I am using UBUNTU 10.10.
  Plz help me ASAP.
  Regards,
  Nishant.
 
 --
  EMC VNX: the world's simplest storage, starting under $10K
  The only unified storage solution that offers unified management
  Up to 160% more powerful than alternatives and 25% more efficient.
  Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
  ___
  Lxc-users mailing list
  Lxc-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/lxc-users
 
 

--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] help regarding lxc

2011-08-24 Thread Canhua
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
nishantmun...@gmail.com wrote:
 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 in that site but still
 it is not working.
 These are things i did::
 1) Copied all the contents of config path and only changed ipv4 add and hwd
 address .
  Container with network virtualized using the macvlan device driver
 lxc.utsname = vm0
 lxc.network.type = macvlan
 lxc.network.flags = up
 lxc.network.link = eth0
 lxc.network.hwaddr = **
 lxc.network.ipv4 =  **
 lxc.tty = 4
 lxc.pts = 1024
 lxc.rootfs = /srv/lxc/vm0/rootfs
 lxc.cgroup.devices.deny = a
 # /dev/null and zero
 lxc.cgroup.devices.allow = c 1:3 rwm
 lxc.cgroup.devices.allow = c 1:5 rwm
 # consoles
 lxc.cgroup.devices.allow = c 5:1 rwm
 lxc.cgroup.devices.allow = c 5:0 rwm
 lxc.cgroup.devices.allow = c 4:0 rwm
 lxc.cgroup.devices.allow = c 4:1 rwm
 # /dev/{,u}random
 lxc.cgroup.devices.allow = c 1:9 rwm
 lxc.cgroup.devices.allow = c 1:8 rwm
 lxc.cgroup.devices.allow = c 136:* rwm
 lxc.cgroup.devices.allow = c 5:2 rwm
 # rtc
 lxc.cgroup.devices.allow = c 254:0 rwm


 2) wrote cgroup /cgroup cgroup defaults 0 0 in /etc/fstab

 3) mount cgroup
 4)  after that i did::
 lxc-start -n vm0 -f /var/lib/lxc/vm0/lxc-macvlan.conf -d
 and lxc-info -n vm0 gives vm0 is stopped
 4) and lxc-checkconfig gave
 Kernel config /proc/config.gz not found, looking in other places...
 Found kernel config file /boot/config-2.6.35-22-generic
 --- Namespaces ---
 Namespaces: enabled
 Utsname namespace: enabled
 Ipc namespace: enabled
 Pid namespace: enabled
 User namespace: enabled
 Network namespace: enabled
 Multiple /dev/pts instances: enabled
 --- Control groups ---
 Cgroup: enabled
 Cgroup namespace: enabled
 Cgroup device: enabled
 Cgroup sched: enabled
 Cgroup cpu account: enabled
 Cgroup memory controller: enabled
 Cgroup cpuset: enabled
 --- Misc ---
 Veth pair device: enabled
 Macvlan: enabled
 Vlan: enabled
 Note : Before booting a new kernel, you can check its configuration
 usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig
 Please help me out ASAP.
 Regards,
 Nishant.

 On Wed, Aug 24, 2011 at 5:25 PM, Canhua dreamerat...@gmail.com wrote:

 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 nishantmun...@gmail.com
 wrote:
  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 conf file ] \bin\bash terminal hangs.
  It is not even working for  /usr/bin/lxc-execute -n foo -f
  /usr/share/doc/lxc/examples/lxc-macvlan.conf /bin/bash.
  I am using UBUNTU 10.10.
  Plz help me ASAP.
  Regards,
  Nishant.
 
  --
  EMC VNX: the world's simplest storage, starting under $10K
  The only unified storage solution that offers unified management
  Up to 160% more powerful than alternatives and 25% more efficient.
  Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
  ___
  Lxc-users mailing list
  Lxc-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/lxc-users
 
 



--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users