[Lxc-users] LXC-Create fails after upgrade to Ubuntu 12.10 from 12.04

2012-11-13 Thread bmullan
last week I upgraded from Ubuntu 12.04 to 12.10 and since then LXC no longer
works correctly.

creating a simple LXC container:

sudo lxc-create -t ubuntu -n cont1

appears to be working ok until it gets to the following error near the end:

Get:23 http://archive.ubuntu.com quantal-updates/main Translation-en [38.8 kB]  
 
Get:24 http://archive.ubuntu.com quantal-updates/multiverse Translation-en [587 
B]
Get:25 http://archive.ubuntu.com quantal-updates/restricted Translation-en [635 
B]
Get:26 http://archive.ubuntu.com quantal-updates/universe Translation-en [18.9 
kB]
Fetched 4901 kB in 11s (427 kB/s)   
 
Reading package lists... Done
lxc-unshare: symbol lookup error: lxc-unshare: undefined symbol:
lxc_fill_namespace_flags
Container upgrade failed.  The container cache may be out of date,
in which case flushing the case (see -F in the hep output) may help.
failed to execute template 'ubuntu'
aborted


I've been doing google searches and have read the mail list and although there
appears to be people having various problems with LXC-START ... which I have
seen also.   I am at a loss as to how to troubleshoot this further.

Thanks for any tips/hints.
Brian



--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] LXC-Create fails after upgrade to Ubuntu 12.10 from 12.04

2012-11-13 Thread brian mullan
 And .. Yes I have flushed the cache to no avail.
I've also gone as far as purging then reinstalling lxc.
I also have some pre-existing containers that I now cannot start using -
sudo lxc-start -n name

Having tried multiple times with lxc-create I did notice that they all fail
the same way with the reference to the same undefined symbol:

* Reading package lists... Done*
* lxc-unshare: symbol lookup error: lxc-unshare: undefined
symbol:lxc_fill_namespace_flags
*


-- Forwarded message --
From: bmullan bmullan.m...@gmail.com
To: lxc-users@lists.sourceforge.net
Cc:
Date: Tue, 13 Nov 2012 15:59:34 + (UTC)
Subject: [Lxc-users] LXC-Create fails after upgrade to Ubuntu 12.10 from
12.04
last week I upgraded from Ubuntu 12.04 to 12.10 and since then LXC no longer
works correctly.

creating a simple LXC container:

sudo lxc-create -t ubuntu -n cont1

appears to be working ok until it gets to the following error near the end:

Get:23 http://archive.ubuntu.com quantal-updates/main Translation-en [38.8
kB]
Get:24 http://archive.ubuntu.com quantal-updates/multiverse Translation-en
[587 B]
Get:25 http://archive.ubuntu.com quantal-updates/restricted Translation-en
[635 B]
Get:26 http://archive.ubuntu.com quantal-updates/universe Translation-en
[18.9 kB]
Fetched 4901 kB in 11s (427 kB/s)
Reading package lists... Done
lxc-unshare: symbol lookup error: lxc-unshare: undefined symbol:
lxc_fill_namespace_flags
Container upgrade failed.  The container cache may be out of date,
in which case flushing the case (see -F in the hep output) may help.
failed to execute template 'ubuntu'
aborted


I've been doing google searches and have read the mail list and although
there
appears to be people having various problems with LXC-START ... which I have
seen also.   I am at a loss as to how to troubleshoot this further.

Thanks for any tips/hints.
Brian





--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users
--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] cloud environment

2012-11-13 Thread Serge Hallyn
Quoting Rintcius Blok (rintc...@gmail.com):
 Hi,
 
 Just curious.
 I was running an lxc-create command for ubuntu-cloud and saw this output:
 
 Configuring for running outside of a cloud environment
 If you want to configure for a cloud evironment, please use '-- -C' to 
 create the container
 
 What the difference is between using '-- -C' or not, i.e. what is 
 exactly the 'cloud environment' that is mentioned here?
 Since there is already some cloudy aspect implied by the ubuntu-cloud 
 template name, I guess this is on a different level.
 
 Can someone shed some light on this?

It has to do with cloud-init searching for a metadata server which can
provide per-instance data.  Assuming you don't have a metadata server,
your container would probably never fully come up.  It's something which
comes preconfigured in the ubuntu-cloud images for the sake of
auto-configuration in amazon and openstack clouds (i.e. not in
containers, but on cloud VMs - the same image is used for both).  You
*could* set up your own metadata service, but I've never done it...

(See for instance
http://www.atlanticdynamic.com/you-should-be-using-cloud-init/ )

-serge

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] Problem starting oneiric container in 12.10

2012-11-13 Thread Serge Hallyn
Quoting Rintcius Blok (rintc...@gmail.com):
 How can I properly run an ubuntu-cloud template on 12.10 with an
 oneiric container?
 
 I tried this command:
 
 lxc-create -t ubuntu-cloud -n oneiric.lxc -- --auth-key
 $HOME/.ssh/id_rsa.pub --userdata ~/userdata.txt.gz -r oneiric
 
 This creates the container, but when I try to ssh into it it gives:
 
 Permission denied (publickey).
 
 In the container's auth.log I see lots of entries like this:
 
 getty[5015]: /dev/tty5: cannot open as standard input: Operation not
 permitted
 
 I googled around and saw this related thread: 
 http://www.mail-archive.com/lxc-users@lists.sourceforge.net/msg03496.html
 This thread mentioned that using an older container can be the cause
 of it, so that could the cause in my case as well.
 I don't know how to work around it though in this situation.
 
 Any ideas?
 Also, is this a bug or am I trying something that is outside the
 scope of what should run out-of-the-box?
 
 Thanks, Rintcius

Could be just a bug, but what is in your userdata file?

-serge

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] LXC-Create fails after upgrade to Ubuntu 12.10 from 12.04

2012-11-13 Thread Fajar A. Nugraha
On Tue, Nov 13, 2012 at 10:59 PM, bmullan bmullan.m...@gmail.com wrote:
 last week I upgraded from Ubuntu 12.04 to 12.10 and since then LXC no longer
 works correctly.

 creating a simple LXC container:

 sudo lxc-create -t ubuntu -n cont1

 appears to be working ok until it gets to the following error near the end:

 lxc-unshare: symbol lookup error: lxc-unshare: undefined symbol:
 lxc_fill_namespace_flags

I suggest you file a bug in launchpad.

I'm using 12.04 but with lxc from 12.10 (0.8.0~rc1-4ubuntu38, to be
exact) and lxc-unshare works fine. Perhaps you're using a different
version, or your liblxc0 is outdated?

-- 
Fajar

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users