1 <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
3 <!-- Fill in your name for FIRSTNAME and SURNAME. -->
4 <!-- Please adjust the date whenever revising the manpage. -->
5 <!ENTITY dhdate "<date>June 20, 2007</date>">
6 <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
7 allowed: see man(7), man(1). -->
8 <!ENTITY dhsection "<manvolnum>7</manvolnum>">
9 <!ENTITY dhucpackage "<refentrytitle>ganeti-os-interface</refentrytitle>">
10 <!ENTITY dhpackage "ganeti">
12 <!ENTITY debian "<productname>Debian</productname>">
13 <!ENTITY gnu "<acronym>GNU</acronym>">
14 <!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
15 <!ENTITY footer SYSTEM "footer.sgml">
23 <holder>Google Inc.</holder>
31 <refmiscinfo>ganeti 1.2</refmiscinfo>
34 <refname>ganeti guest OS interface</refname>
36 <refpurpose>specifications for guest OS types
42 <title>DESCRIPTION</title>
45 The method of supporting guest operating systems in Ganeti is to
46 have, for each guest OS type, a directory containing a number of
53 <title>REFERENCE</title>
56 There are four required files: <filename>create</filename>,
57 <filename>import</filename>, <filename>export</filename>
58 (executables) and <filename>ganeti_api_version</filename> (text
65 <command>create</command>
66 <arg choice="req">-i <replaceable>instance_name</replaceable></arg>
67 <arg choice="req">-b <replaceable>blockdev_sda</replaceable></arg>
68 <arg choice="req">-s <replaceable>blockdev_sdb</replaceable></arg>
71 <para>The <command>create</command> command is used for creating
72 a new instance from scratch.</para>
74 <para>The argument to the <option>-i</option> option is the FQDN
75 of the instance, which is guaranteed to resolve to an IP
76 address. The create script should configure the instance
77 according to this name. It can configure the IP statically or
78 not, depending on the deployment environment.</para>
80 <para>The <option>-b</option> and <option>-s</option> options
81 denote the block devices which will be visible in the instance
82 as <emphasis>sda</emphasis> and <emphasis>sdb</emphasis>. The
83 <emphasis>sda</emphasis> block device should be used for the
84 root disk (and will be passed as the root device for linux
85 kernels). The <emphasis>sdb</emphasis> device should be setup
86 for swap usage.</para>
93 <command>import</command>
94 <arg choice="req">-i <replaceable>instance_name</replaceable></arg>
95 <arg choice="req">-b <replaceable>blockdev_sda</replaceable></arg>
96 <arg choice="req">-s <replaceable>blockdev_sdb</replaceable></arg>
100 The <command>import</command> command is used for restoring an
101 instance from a backup as done by
102 <command>export</command>. The arguments are the same as for
103 <command>create</command> and the output of the
104 <command>export</command> will be provided on
105 <acronym>stdin</acronym>.
111 <title>export</title>
113 <command>export</command>
114 <arg choice="req">-i <replaceable>instance_name</replaceable></arg>
115 <arg choice="req">-b <replaceable>blockdev_sda</replaceable></arg>
119 This command is used in order to make a backup of the
120 instance. The command should write to stdout a dump of the
121 given block device. The output of this program will be passed
122 to the <command>import</command> command.
126 The options have the same meaning as for
127 <command>create</command> and <command>import</command>, with
128 the exception that the argument to <option>-i</option> denotes
129 an existing instance.
135 <title>ganeti_api_version</title>
137 The <filename>ganeti_api_version</filename> file is a plain
138 text file containing the version of the guest OS api that this
139 OS definition complies with. The version documented by this
140 man page is 4, so this file must contain 4 followed by a
151 <title>Common behaviour</title>
153 <para>All the scripts should display an usage message when called with a wrong number of arguments or when the first argument is <option>-h</option> or <option>--help</option>.</para>
160 <title>Export/import format</title>
162 <para>It is up to the export and import scripts to define the format they use. It is only required for these two to work together. It is not recommended that </para>
173 <!-- Keep this comment at the end of the file
178 sgml-minimize-attributes:nil
179 sgml-always-quote-attributes:t
182 sgml-parent-document:nil
183 sgml-default-dtd-file:nil
184 sgml-exposed-tags:nil
185 sgml-local-catalogs:nil
186 sgml-local-ecat-files:nil