node-lxc
    Preparing search index...

    Type Alias lxc_clone_options

    lxc_clone_options: (
        | { lxcpath?: string; newname: string }
        | { lxcpath: string; newname?: string }
    ) & {
        bdevdata?: string;
        bdevtype?: string;
        flags?: number | LXC_CLONE;
        hookargs?: string[];
        newsize?: number;
    }

    Type Declaration

    • { lxcpath?: string; newname: string }
      • Optionallxcpath?: string

        lxcpath in which to create the new container If undefined, the original container's lxcpath will be used. (XXX: should we use the default instead?)

      • newname: string

        New name for the container.

    • { lxcpath: string; newname?: string }
      • lxcpath: string

        lxcpath in which to create the new container

      • Optionalnewname?: string

        New name for the container. If undefined, the same name is used and a new lxcpath MUST be specified.

    • Optionalbdevdata?: string

      Information about how to create the new storage (i.e. fstype and fsdata).

    • Optionalbdevtype?: string

      Optionally force the cloned bdevtype to a specified plugin. By default, the original is used (subject to snapshot requirements).

    • Optionalflags?: number | LXC_CLONE

      Additional LXC_CLONE* flags to change the cloning behaviour:

    • Optionalhookargs?: string[]

      Additional arguments to pass to the clone hook script.

    • Optionalnewsize?: number

      In case of a block device backing store, an optional size. If 0, the original backing store's size will be used if possible.

      this only applies to the rootfs. For any other filesystems, the original size will be duplicated.