From af40e5d3acbdcff09c8809cd1b86ecf8871f65f0 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 9 Mar 2015 21:34:32 +0100 Subject: man: document machinectl import-tar and import-raw --- man/machinectl.xml | 47 +++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 41 insertions(+), 6 deletions(-) (limited to 'man') diff --git a/man/machinectl.xml b/man/machinectl.xml index 55bb694e6c..7aeff686a0 100644 --- a/man/machinectl.xml +++ b/man/machinectl.xml @@ -669,19 +669,52 @@ below. + + import-tar FILE [NAME] + import-raw FILE [NAME] + Imports a TAR or RAW container or VM image, + and places it under the specified name in + /var/lib/machines/. When + import-tar is used the file specified as + first argument should be a tar archive, possibly compressed + with xz, gzip or bzip2. It will then be unpacked into its own + subvolume in /var/lib/machines. When + import-raw is used the file should be a + qcow2 or raw disk image, possibly compressed with xz, gzip or + bzip2. If the second argument (the resulting image name) is + not specified it is automatically derived from the file + name. If the file name is passed as - the + image is read from standard input, in which case the second + argument is mandatory. + + Similar as with pull-tar, + pull-raw the file system + /var/lib/machines.raw is increased in + size of necessary and appropriate. Optionally the + switch may be used to create a + read-only container or VM image. No cryptographic validation + is done when importing the images. + + Much like image downloads, ongoing imports may be listed + with list-transfers and aborted with + cancel-transfer. + + list-transfers Shows a list of container or VM image - downloads that are currently in progress. + downloads and imports that are currently in + progress. cancel-transfers ID... - Aborts download of the container or VM image - with the specified ID. To list ongoing transfers and their - IDs, use list-transfers. + Aborts a download or import of the container + or VM image with the specified ID. To list ongoing transfers + and their IDs, use + list-transfers. @@ -705,13 +738,15 @@ Note that many image operations are only supported, efficient or atomic on btrfs file systems. Due to this, if the pull-tar, pull-raw, - pull-dkr and set-limit + pull-dkr, import-tar, + import-raw and set-limit commands notice that /var/lib/machines is empty and not located on btrfs, they will implicitly set up a loopback file /var/lib/machines.raw containing a btrfs file system that is mounted to /var/lib/machines. The size of this loopback - file may be controlled dynamically with set-limit. + file may be controlled dynamically with + set-limit. Disk images are understood by systemd-nspawn1 -- cgit v1.2.3-54-g00ecf