1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-12 08:58:17 +03:00
one/share/man/oneimage.1

170 lines
5.9 KiB
Groff
Raw Normal View History

2011-07-14 18:33:54 +02:00
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
2015-03-09 10:29:02 +01:00
.TH "ONEIMAGE" "1" "March 2015" "" "oneimage(1) -- manages OpenNebula images"
2011-07-14 18:33:54 +02:00
.
.SH "NAME"
\fBoneimage\fR
.
.SH "SYNOPSIS"
\fBoneimage\fR \fIcommand\fR [\fIargs\fR] [\fIoptions\fR]
.
.SH "OPTIONS"
.
.nf
\-d, \-\-datastore id|name Selects the datastore
2012-10-04 11:58:17 +02:00
\-\-name name Name of the new image
\-\-description description Description for the new Image
2013-03-25 12:39:05 +01:00
\-\-type type Type of the new Image: OS, CDROM, DATABLOCK,
KERNEL, RAMDISK, CONTEXT
2012-10-04 11:58:17 +02:00
\-\-persistent Tells if the image will be persistent
2013-03-25 12:39:05 +01:00
\-\-prefix prefix Device prefix for the disk (eg\. hd, sd, xvd or
vd)
2012-10-04 11:58:17 +02:00
\-\-target target Device the disk will be attached to
\-\-path path Path of the image file
\-\-driver driver Driver to use image (raw, qcow2, tap:aio:\.\.\.)
2013-03-25 12:39:05 +01:00
\-\-disk_type disk_type Type of the image (BLOCK, CDROM, RBD or FILE)
2013-01-24 16:18:30 +01:00
\-\-source source Source to be used\. Useful for not file\-based
images
\-\-size size Size in MB\. Used for DATABLOCK type or SOURCE
based images\.
2013-03-25 12:39:05 +01:00
\-\-fstype fstype Type of file system to be built\. This can be any
value understood by mkfs unix command\.
2013-01-24 16:18:30 +01:00
\-\-dry Just print the template
2013-08-06 07:42:57 -04:00
\-a, \-\-append Append new attributes to the current template
2011-07-14 18:33:54 +02:00
\-l, \-\-list x,y,z Selects columns to display with list command
\-d, \-\-delay x Sets the delay in seconds for top command
2013-01-24 16:18:30 +01:00
\-f, \-\-filter x,y,z Filter data\. An array is specified with
column=value pairs\.
2014-03-07 19:14:31 +01:00
\-\-csv Write table in csv format
\-x, \-\-xml Show the resource in xml format
2011-07-14 18:33:54 +02:00
\-n, \-\-numeric Do not translate user and group IDs
2012-10-04 11:58:17 +02:00
\-\-describe Describe list columns
2011-07-14 18:33:54 +02:00
\-v, \-\-verbose Verbose mode
\-h, \-\-help Show this message
\-V, \-\-version Show version and copyright information
2013-01-24 16:18:30 +01:00
\-\-user name User name used to connect to OpenNebula
\-\-password password Password to authenticate with OpenNebula
\-\-endpoint endpoint URL of OpenNebula xmlrpc frontend
2011-07-14 18:33:54 +02:00
.
.fi
.
.SH "COMMANDS"
.
.IP "\(bu" 4
2013-03-25 12:39:05 +01:00
create [\fIfile\fR] Creates a new Image Examples:
2011-07-14 18:33:54 +02:00
.
.IP "" 4
.
.nf
2012-10-04 11:58:17 +02:00
\- using a template description file:
oneimage create \-d default centOS\.tmpl
\- new image "arch" using a path of type centOS:
oneimage create \-d default \-\-name arch \-\-path /tmp/arch\.img
\- new persistent image, OS type and qcow2 format:
oneimage create \-d 1 \-\-name ubuntu \-\-path /tmp/ubuntu\.qcow2 \e
\-\-prefix sd \-\-type OS \-\-driver qcow2 \e
\-\-description "A OS plain installation"
\- a datablock image of 400MB:
oneimage create \-d 1 \-\-name data \-\-type DATABLOCK \-\-size 400 \e
\-\-fstype ext2
2013-01-24 16:18:30 +01:00
valid options: datastore, name, description, type, persistent, prefix, target, path, driver, disk_type, source, size, fstype, dry
2011-07-14 18:33:54 +02:00
.
.fi
.
.IP "" 0
2012-06-22 16:05:02 +02:00
.
.IP "\(bu" 4
2014-07-14 10:20:57 +02:00
clone \fIimageid\fR \fIname\fR Creates a new Image from an existing one valid options: datastore
2011-07-14 18:33:54 +02:00
.
.IP "\(bu" 4
2013-03-25 12:39:05 +01:00
delete \fIrange|imageid_list\fR Deletes the given Image
2011-07-14 18:33:54 +02:00
.
.IP "\(bu" 4
2013-03-25 12:39:05 +01:00
persistent \fIrange|imageid_list\fR Makes the given Image persistent\. A persistent Image saves the changes made to the contents after the VM instance is shutdown (or in real time if a shared FS is used)\. Persistent Images can be used by only one VM instance at a time\.
2011-07-14 18:33:54 +02:00
.
.IP "\(bu" 4
2013-03-25 12:39:05 +01:00
nonpersistent \fIrange|imageid_list\fR Makes the given Image non persistent\. See \'oneimage persistent\'
2011-07-14 18:33:54 +02:00
.
.IP "\(bu" 4
2013-08-06 07:42:57 -04:00
update \fIimageid\fR [\fIfile\fR] Update the template contents\. If a path is not provided the editor will be launched to modify the current content\. valid options: append
2011-07-14 18:33:54 +02:00
.
.IP "\(bu" 4
2013-03-25 12:39:05 +01:00
enable \fIrange|imageid_list\fR Enables the given Image
2011-12-05 17:56:34 +01:00
.
.IP "\(bu" 4
2013-03-25 12:39:05 +01:00
chtype \fIrange|imageid_list\fR \fItype\fR Changes the Image\'s type
2011-07-14 18:33:54 +02:00
.
.IP "\(bu" 4
2013-03-25 12:39:05 +01:00
disable \fIrange|imageid_list\fR Disables the given Image
2011-07-14 18:33:54 +02:00
.
.IP "\(bu" 4
2013-03-25 12:39:05 +01:00
chgrp \fIrange|imageid_list\fR \fIgroupid\fR Changes the Image group
2011-07-14 18:33:54 +02:00
.
.IP "\(bu" 4
2013-03-25 12:39:05 +01:00
chown \fIrange|imageid_list\fR \fIuserid\fR [\fIgroupid\fR] Changes the Image owner and group
2012-01-12 12:29:18 +01:00
.
.IP "\(bu" 4
2013-03-25 12:39:05 +01:00
chmod \fIrange|imageid_list\fR \fIoctet\fR Changes the Image permissions
2013-01-24 16:18:30 +01:00
.
.IP "\(bu" 4
2013-03-25 12:39:05 +01:00
rename \fIimageid\fR \fIname\fR Renames the Image
2011-07-14 18:33:54 +02:00
.
.IP "\(bu" 4
2014-03-07 19:14:31 +01:00
list [\fIfilterflag\fR] Lists Images in the pool valid options: list, delay, filter, csv, xml, numeric, describe
2011-07-14 18:33:54 +02:00
.
.IP "\(bu" 4
2013-03-25 12:39:05 +01:00
show \fIimageid\fR Shows information for the given Image valid options: xml
2011-07-14 18:33:54 +02:00
.
.IP "\(bu" 4
2014-03-07 19:14:31 +01:00
top [\fIfilterflag\fR] Lists Images continuously valid options: list, delay, filter, csv, xml, numeric, describe
2011-07-14 18:33:54 +02:00
.
.IP "" 0
.
.SH "ARGUMENT FORMATS"
.
.IP "\(bu" 4
2013-03-25 12:39:05 +01:00
file Path to a file
2011-07-14 18:33:54 +02:00
.
.IP "\(bu" 4
2013-03-25 12:39:05 +01:00
range List of id\'s in the form 1,8\.\.15
2011-07-14 18:33:54 +02:00
.
.IP "\(bu" 4
2013-03-25 12:39:05 +01:00
text String
2011-07-14 18:33:54 +02:00
.
.IP "\(bu" 4
2013-03-25 12:39:05 +01:00
groupid OpenNebula GROUP name or id
2011-07-14 18:33:54 +02:00
.
.IP "\(bu" 4
2013-03-25 12:39:05 +01:00
userid OpenNebula USER name or id
2011-07-14 18:33:54 +02:00
.
.IP "\(bu" 4
2013-03-25 12:39:05 +01:00
imageid OpenNebula IMAGE name or id
2011-07-14 18:33:54 +02:00
.
.IP "\(bu" 4
2013-03-25 12:39:05 +01:00
imageid_list Comma\-separated list of OpenNebula IMAGE names or ids
2011-07-14 18:33:54 +02:00
.
.IP "\(bu" 4
2013-03-25 12:39:05 +01:00
filterflag a, all all the known IMAGEs m, mine the IMAGE belonging to the user in ONE_AUTH g, group \'mine\' plus the IMAGE belonging to the groups the user is member of uid IMAGE of the user identified by this uid user IMAGE of the user identified by the username
2013-01-24 16:18:30 +01:00
.
.IP "\(bu" 4
2013-03-25 12:39:05 +01:00
type Image type: OS, CDROM, DATABLOCK, KERNEL, RAMDISK, CONTEXT
2011-07-14 18:33:54 +02:00
.
.IP "" 0
.
.SH "LICENSE"
2015-03-09 10:29:02 +01:00
OpenNebula 4\.12\.0 Copyright 2002\-2015, OpenNebula Project (OpenNebula\.org), C12G Labs
2011-07-14 18:33:54 +02:00
.
.P
Licensed under the Apache License, Version 2\.0 (the "License"); you may not use this file except in compliance with the License\. You may obtain a copy of the License at http://www\.apache\.org/licenses/LICENSE\-2\.0