Class Vagrant::LXC::Config
In: lib/vagrant-lxc/config.rb
Parent: Vagrant.plugin("2", :config)

Methods

Attributes

backingstore  [RW]  A string that contains the backing store type used with lxc-create -B
backingstore_options  [RW]  Optional arguments for the backing store, such as —fssize, —fstype, …

@return [Array]

container_name  [RW]  A string to explicitly set the container name. To use the vagrant machine name, set this to :machine
customizations  [R]  @return [Array]
fetch_ip_tries  [RW] 
privileged  [RW]  Whether the container needs to be privileged. Defaults to true (unprivileged containers is a very new feature in vagrant-lxc). If false, will try creating an unprivileged container. If it can‘t, will revert to the old "sudo wrapper" method to create a privileged container.
ssh_ip_addr  [RW] 
tmpfs_mount_size  [RW]  Size (as a string like ‘400M’) of the tmpfs to mount at /tmp on boot. Set to false or nil to disable the tmpfs mount altogether. Defaults to ‘2G’.

Public Class methods

Public Instance methods

Stores options for backingstores like lvm, btrfs, etc

Customize the container by calling `lxc-start` with the given configuration overrides.

For example, if you want to set the memory limit, you can use it like: config.customize ‘cgroup.memory.limit_in_bytes’, ‘400M‘

When `lxc-start`ing the container, vagrant-lxc will pass in "-s lxc.cgroup.memory.limit_in_bytes=400M" to it.

@param [String] key Configuration key to override @param [String] value Configuration value to override

[Validate]