Thanks for taking the time to submit this bug.

It would be nice if we could provide a default config, but we can't do that 
until we guarantee that we have a known network setup.  Since wireless cannot 
be bridged and we haven't decided whether we are willing to depend on 
libvirt-bin, this would have to mean:
   1. create bridge lxcbr0
   2. set up NAT from lxcbr0 to default route
   3. choose a private subnet and run dnsmasq on lxcbr0

Note lxc-create does not fail silently - it actually produces a loud
warning, provides two sample config files, and demands input before
continuing.  Witness:

root@sergelap:/sys/fs/cgroup/cpu# lxc-create -t ubuntu -n n1

Warning:
-------
Usually the template option is called with a configuration
file option too, mostly to configure the network.
eg. lxc-create -n foo -f lxc.conf -t debian
The configuration file is often:

lxc.network.type=macvlan
lxc.network.link=eth0
lxc.network.flags=up

or alternatively:

lxc.network.type=veth
lxc.network.link=br0
lxc.network.flags=up

For more information look at lxc.conf (5)

At this point, I assume you know what you do.
Press <enter> to continue ...

Note also that sample configurations are offered with the package.

I'm going to mark this low priority, rather than wishlist, because I do
believe such a default would help tremendously with adoption by new
users.


** Changed in: lxc (Ubuntu)
   Importance: Undecided => Medium

** Changed in: lxc (Ubuntu)
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/823862

Title:
  lxc-create should provide you with a default config file if not
  specified one

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/823862/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to