Searched refs:template (Results 1 - 19 of 19) sorted by relevance

/lxc/src/tests/
H A Dlxc-test-ubuntu44 for template in ubuntu ubuntu-cloud; do
50 name=lxc-test-$template
53 lxc-create -t $template -n $name || FAIL "creating $template container"
54 lxc-start -n $name -d || FAIL "starting $template container"
55 lxc-wait -n $name -s RUNNING || FAIL "waiting for $template container to run"
62 [ -n "$lxcip" ] || FAIL "to start networking in $template container"
65 ping6 -c 1 $lxcip || FAIL "to ping $template container"
67 ping -c 1 $lxcip || FAIL "to ping $template container"
H A Dsnapshot.c59 char *template = "busybox"; local
62 template = argv[1];
80 if (!c->createl(c, template, NULL, NULL, 0, NULL)) {
81 fprintf(stderr, "%s: %d: failed to create %s container\n", __FILE__, __LINE__, template);
H A Dattach.c300 * @template : template to use when creating the container
304 const char *template)
326 if (!ct->createl(ct, template, NULL, NULL, 0, NULL)) {
349 static int test_attach(const char *lxcpath, const char *name, const char *template) argument
355 ct = test_ct_create(lxcpath, NULL, name, template);
302 test_ct_create(const char *lxcpath, const char *group, const char *name, const char *template) argument
H A Dcgpath.c123 const char *template)
147 if (!c->createl(c, template, NULL, NULL, 0, NULL)) {
121 test_container(const char *lxcpath, const char *group, const char *name, const char *template) argument
H A Dconsole.c116 * @template : template to use when creating the container
120 const char *template)
143 if (!c->createl(c, template, NULL, NULL, 0, NULL)) {
118 test_console(const char *lxcpath, const char *group, const char *name, const char *template) argument
H A Dconcurrent.c35 static const char *template = "busybox"; variable
40 { "template", required_argument, NULL, 't' },
55 " -t, --template=t Template to use (default: busybox)\n"
94 if (!c->create(c, template, NULL, NULL, 1, NULL)) {
166 template = optarg;
/lxc/src/lxc/tools/
H A Dlxc_create.c75 case 't': args->template = arg; break;
92 {"template", required_argument, 0, 't'},
110 if (!args->template)
119 path = get_template_path(args->template);
134 --name=NAME --template=TEMPLATE [OPTION...]\n\
141 -t, --template=TEMPLATE Template to use to setup container\n\
224 if (!my_args.template) {
225 fprintf(stderr, "A template must be specified.\n");
230 if (strcmp(my_args.template, "none") == 0)
231 my_args.template
[all...]
/lxc/src/lxc/
H A Dnetwork.h139 extern char *lxc_mkifname(char *template);
H A Darguments.h88 char *bdevtype, *configfile, *template;
H A Dlxc_user_nic.c521 char template[IFNAMSIZ]; local
523 ret = snprintf(template, sizeof(template), "vethXXXXXX");
524 if (ret < 0 || (size_t)ret >= sizeof(template))
527 *dest = lxc_mkifname(template);
H A Dcriu.c756 char template[IFNAMSIZ]; local
761 snprintf(template, sizeof(template), "vethXXXXXX");
764 netdev->priv.veth_attr.pair = lxc_mkifname(template);
H A Dnetwork.c1507 char *lxc_mkifname(char *template) argument
1536 name = strdup(template);
/lxc/templates/
H A Dlxc-slackware.in30 echo "This template can't be used for unprivileged containers." 1>&2
31 echo "You may want to try the \"download\" template instead." 1>&2
547 cat <<EOF > $CONF/templates/minimal-lxc.template
595 if [ -f /etc/slackpkg/templates/$TEMPLATE.template ]; then
596 cat /etc/slackpkg/templates/$TEMPLATE.template \
597 > $CONF/templates/$TEMPLATE.template
607 slackpkg install-template $TEMPLATE
H A Dlxc-alpine.in8 # LXC template for Alpine Linux 3+
70 lxc-create --name=NAME [lxc-create-options] -- [template-options] [PKG...]
456 die 1 "This template can't be used for unprivileged containers." \
457 'You may want to try the "download" template instead.'
H A Dlxc-debian.in27 echo "This template can't be used for unprivileged containers." 1>&2
28 echo "You may want to try the \"download\" template instead." 1>&2
495 lxc-create --name=NAME [-lxc-create-options] -- [-template-options]
H A Dlxc-sparclinux.in13 # Modified for Oracle Linux 6,7 combined OL4,5,6 into one template script
38 echo "This template can't be used for unprivileged containers." 1>&2
39 echo "You may want to try the \"download\" template instead." 1>&2
369 btrfs subvolume snapshot $template_rootfs $container_rootfs || die "btrfs clone template"
372 cp -axT $template_rootfs $container_rootfs || die "copy template"
449 die "The template is busy."
582 This template supports Linux for SPARC release 1.0
H A Dlxc-oracle.in12 # Modified for Oracle Linux 6,7 combined OL4,5,6 into one template script
34 echo "This template can't be used for unprivileged containers." 1>&2
35 echo "You may want to try the \"download\" template instead." 1>&2
151 # from mhw in the fedora template: We do need to disable the
540 btrfs subvolume snapshot $template_rootfs $container_rootfs || die "btrfs clone template"
543 cp -axT $template_rootfs $container_rootfs || die "copy template"
631 die "The template is busy."
838 This template supports Oracle Linux releases 4.6 - 7.0
/lxc/src/python-lxc/lxc/
H A D__init__.py208 def create(self, template=None, flags=0, args=(), bdevtype=None):
212 "template" if passed must be a valid template name.
218 template. It can also be provided as a dict.
227 if template:
228 template_args['template'] = template
/lxc/src/lua-lxc/
H A Dlxc.lua146 function container:create(template, ...)
147 return self.core:create(template, ...)

Completed in 1256 milliseconds