Advertisement
Guest User

Untitled

a guest
May 13th, 2014
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. ## /etc/default/lxc
  2. # MIRROR to be used by ubuntu template at container creation:
  3. # Leaving it undefined is fine
  4. #MIRROR="http://archive.ubuntu.com/ubuntu"
  5. # or
  6. #MIRROR="http://<host-ip-addr>:3142/archive.ubuntu.com/ubuntu"
  7.  
  8. # LXC_AUTO - whether or not to start containers symlinked under
  9. # /etc/lxc/auto
  10. LXC_AUTO="true"
  11.  
  12. USE_LXC_BRIDGE="false" # overridden in lxc-net
  13. [ -f /etc/default/lxc-net ] && . /etc/default/lxc-net
  14.  
  15. LXC_SHUTDOWN_TIMEOUT=120
  16.  
  17.  
  18. ## /etc/default/lxc-net
  19. # This file is auto-generated by lxc.postinst if it does not
  20. # exist. Customizations will not be overridden.
  21. # Leave USE_LXC_BRIDGE as "true" if you want to use lxcbr0 for your
  22. # containers. Set to "false" if you'll use virbr0 or another existing
  23. # bridge, or mavlan to your host's NIC.
  24. USE_LXC_BRIDGE="true"
  25.  
  26. # If you change the LXC_BRIDGE to something other than lxcbr0, then
  27. # you will also need to update your /etc/lxc/default.conf as well as the
  28. # configuration (/var/lib/lxc/<container>/config) for any containers
  29. # already created using the default config to reflect the new bridge
  30. # name.
  31. # If you have the dnsmasq daemon installed, you'll also have to update
  32. # /etc/dnsmasq.d/lxc and restart the system wide dnsmasq daemon.
  33. LXC_BRIDGE="lxcbr0"
  34. LXC_ADDR="10.0.3.1"
  35. LXC_NETMASK="255.255.255.0"
  36. LXC_NETWORK="10.0.3.0/24"
  37. LXC_DHCP_RANGE="10.0.3.2,10.0.3.254"
  38. LXC_DHCP_MAX="253"
  39. # Uncomment the next line if you'd like to use a conf-file for the lxcbr0
  40. # dnsmasq. For instance, you can use 'dhcp-host=mail1,10.0.3.100' to have
  41. # container 'mail1' always get ip address 10.0.3.100.
  42. #LXC_DHCP_CONFILE=/etc/lxc/dnsmasq.conf
  43.  
  44. # Uncomment the next line if you want lxcbr0's dnsmasq to resolve the .lxc
  45. # domain. You can then add "server=/lxc/10.0.3.1' (or your actual )
  46. # to /etc/dnsmasq.conf, after which 'container1.lxc' will resolve on your
  47. # host.
  48. #LXC_DOMAIN="lxc"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement