Revision d3b4cf9f

b/Makefile.am
186 186
	man/ganeti-watcher.8 \
187 187
	man/gnt-backup.8 \
188 188
	man/gnt-cluster.8 \
189
	man/gnt-debug.8 \
189 190
	man/gnt-instance.8 \
191
	man/gnt-job.8 \
190 192
	man/gnt-node.8 \
191 193
	man/gnt-os.8
192 194

  
......
309 311
	  echo 's#@GANETI_VERSION@#$(PACKAGE_VERSION)#g'; \
310 312
	  echo 's#@CUSTOM_XEN_KERNEL@#$(XEN_KERNEL)#g'; \
311 313
	  echo 's#@CUSTOM_XEN_INITRD@#$(XEN_INITRD)#g'; \
314
	  echo 's#@RPL_FILE_STORAGE_DIR@#$(FILE_STORAGE_DIR)#g'; \
312 315
	  echo '/@INCLUDE_RAPI_RESOURCES@/ {'; \
313 316
	  echo '  r $(abs_top_builddir)/doc/rapi-resources.sgml'; \
314 317
	  echo '  d'; \
b/man/footer.sgml
29 29
        <manvolnum>8</manvolnum>
30 30
      </citerefentry> (cluster-wide commands),
31 31
      <citerefentry>
32
        <refentrytitle>gnt-job</refentrytitle>
33
        <manvolnum>8</manvolnum>
34
      </citerefentry> (job-related commands),
35
      <citerefentry>
32 36
        <refentrytitle>gnt-node</refentrytitle>
33 37
        <manvolnum>8</manvolnum>
34 38
      </citerefentry> (node-related commands),
......
43 47
      <citerefentry>
44 48
        <refentrytitle>gnt-backup</refentrytitle>
45 49
        <manvolnum>8</manvolnum>
46
      </citerefentry> (instance import/export commands).
50
      </citerefentry> (instance import/export commands),
51
      <citerefentry>
52
        <refentrytitle>gnt-debug</refentrytitle>
53
        <manvolnum>8</manvolnum>
54
      </citerefentry> (debug commands).
47 55
    </para>
48 56

  
49 57
    <para>Ganeti daemons:
b/man/ganeti.sgml
2 2

  
3 3
  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
4 4
  <!-- Please adjust the date whenever revising the manpage. -->
5
  <!ENTITY dhdate      "<date>June 16, 2007</date>">
5
  <!ENTITY dhdate      "<date>February 12, 2009</date>">
6 6
  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
7 7
       allowed: see man(7), man(1). -->
8 8
  <!ENTITY dhsection   "<manvolnum>7</manvolnum>">
......
20 20
    <copyright>
21 21
      <year>2006</year>
22 22
      <year>2007</year>
23
      <year>2008</year>
24
      <year>2009</year>
23 25
      <holder>Google Inc.</holder>
24 26
    </copyright>
25 27
    &dhdate;
......
28 30
    &dhucpackage;
29 31

  
30 32
    &dhsection;
31
    <refmiscinfo>ganeti 1.2</refmiscinfo>
33
    <refmiscinfo>ganeti 2.0</refmiscinfo>
32 34
  </refmeta>
33 35
  <refnamediv>
34 36
    <refname>&dhpackage;</refname>
......
40 42
    <screen>
41 43
# gnt-cluster init cluster1.example.com
42 44
# gnt-node add node2.example.com
43
# gnt-os add -o debian-etch -p /srv/ganeti/os/debian-etch
44
# gnt-instance add -n node2.example.com -o debian-etch -s 128 -m 8 \
45
# gnt-instance add -n node2.example.com \
46
&gt; -o debootstrap --disk 0:size=30g \
45 47
&gt; -t plain instance1.example.com
46 48
    </screen>
47 49
  </refsynopsisdiv>
......
51 53
    <para>
52 54
      The ganeti software manages physical nodes and virtual instances
53 55
      of a cluster based on a virtualization software. The current
54
      version (1.2) supports Xen 3.0 (also tested with 3.1).
56
      version (2.0) supports Xen 3.0 (also tested with 3.1) and KVM
57
      hypervisors.
55 58
    </para>
56 59

  
57 60
  </refsect1>
......
62 65
      First you must install the software on all the cluster nodes,
63 66
      either from sources or (if available) from a package. The next
64 67
      step is to create the initial cluster configuration, using
65
      <computeroutput>gnt-cluster init</computeroutput>.
68
      <userinput>gnt-cluster init</userinput>.
66 69
    </para>
67 70

  
68 71
    <para>
......
71 74

  
72 75
  </refsect1>
73 76

  
77
  <refsect1>
78
    <title>Cluster architecture</title>
79

  
80
    <para>
81
      In Ganeti 2.0, the architecture of the cluster is a little more
82
      complicated than in 1.2. The cluster is coordinated by a master
83
      daemon (<citerefentry>
84
      <refentrytitle>ganeti-masterd</refentrytitle>
85
      <manvolnum>8</manvolnum> </citerefentry>), running on the master
86
      node. Each node runs (as before) a node daemon, and the master
87
      has the <acronym>RAPI</acronym> daemon running too.
88
    </para>
89

  
90
    <refsect2>
91
      <title>Node roles</title>
92

  
93
      <para>Each node can be in one of the following states:
94
        <variablelist>
95
          <varlistentry>
96
            <term>master_candidate</term>
97
            <listitem>
98
              <para>The node receives the full cluster configuration
99
              (configuration file and jobs) and can become a master
100
              via the <command>gnt-cluster masterfailover</command>
101
              command. Nodes that are not in this state cannot
102
              transition into the master role due to missing
103
              state.</para>
104
            </listitem>
105
          </varlistentry>
106
          <varlistentry>
107
            <term>regular</term>
108
            <listitem>
109
              <para>This the normal state of a node.</para>
110
            </listitem>
111
          </varlistentry>
112
          <varlistentry>
113
            <term>drained</term>
114
            <listitem>
115
              <para>Nodes in this state are functioning normally but
116
              cannot receive new instance, because the intention is to
117
              set them to <emphasis>offline</emphasis> or remove them
118
              from the cluster.</para>
119
            </listitem>
120
          </varlistentry>
121
          <varlistentry>
122
            <term>offline</term>
123
            <listitem>
124
              <para>These nodes are still recorder in the ganeti
125
              configuration, but except for the master daemon startup
126
              voting procedure, they are not actually contacted by the
127
              master. This state was added in order to allow broken
128
              machines (that are being repaired) to remain in the
129
              cluster but without creating problems.</para>
130
            </listitem>
131
          </varlistentry>
132
        </variablelist>
133
      </para>
134
    </refsect2>
135

  
136
    <refsect2>
137
      <title>Cluster configuration</title>
138

  
139
      <para>The master node keeps and is responsible for the cluster
140
      configuration. On the filesystem, this is stored under the
141
      <filename
142
      class="directory">@LOCALSTATEDIR@/ganeti/lib</filename>
143
      directory, and if the master daemon is stopped it can be backed
144
      up normally.</para>
145

  
146
      <para>The master daemon will replicate the configuration
147
      database called <filename>config.data</filename> and the job
148
      files to all the nodes in the master candidate role. It will
149
      also distribute a copy of some configuration values via the
150
      <emphasis>ssconf</emphasis> files, which are stored in the same
151
      directory and start with <filename>ssconf_</filename> prefix, to
152
      all nodes.</para>
153

  
154
    </refsect2>
155

  
156
    <refsect2>
157
      <title>Jobs</title>
158

  
159
      <para>
160
        All cluster modification are done via jobs. A job consists of
161
        one or more opcodes, and the list of opcodes is processed
162
        serially. If an opcode fails, the entire job is failed and
163
        later opcodes are no longer processed. A job can be in one of
164
        the following states:
165
        <variablelist>
166
          <varlistentry>
167
            <term>queued</term>
168
            <listitem>
169
              <simpara>The job has been submitted but not yet
170
              processed by the master daemon.</simpara>
171
            </listitem>
172
          </varlistentry>
173
          <varlistentry>
174
            <term>waiting</term>
175
            <listitem>
176
              <simpara>The job is waiting for for locks before the
177
              first of its opcodes.</simpara>
178
            </listitem>
179
          </varlistentry>
180
          <varlistentry>
181
            <term>canceling</term>
182
            <listitem>
183
              <para>The jos is waiting for locks, but is has been
184
              marked for cancelation. It will not transition to
185
              <emphasis>running</emphasis>, but to
186
              <emphasis>canceled</emphasis>.
187
              </para>
188
            </listitem>
189
          </varlistentry>
190
          <varlistentry>
191
            <term>running</term>
192
            <listitem>
193
              <simpara>The job is currently being executed.</simpara>
194
            </listitem>
195
          </varlistentry>
196
          <varlistentry>
197
            <term>canceled</term>
198
            <listitem>
199
              <para>The job has been canceled before starting
200
              execution.</para>
201
            </listitem>
202
          </varlistentry>
203
          <varlistentry>
204
            <term>success</term>
205
            <listitem>
206
              <para>The job has finished successfully.</para>
207
            </listitem>
208
          </varlistentry>
209
          <varlistentry>
210
            <term>error</term>
211
            <listitem>
212
              <para>The job has failed during runtime, or the master
213
              daemon has been stopped during the job execution.</para>
214
            </listitem>
215
          </varlistentry>
216
        </variablelist>
217
      </para>
218
    </refsect2>
219
  </refsect1>
220

  
74 221
  &footer;
75 222

  
76 223
</refentry>
b/man/gnt-backup.sgml
2 2

  
3 3
  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
4 4
  <!-- Please adjust the date whenever revising the manpage. -->
5
  <!ENTITY dhdate      "<date>Jul 6, 2007</date>">
5
  <!ENTITY dhdate      "<date>February 11, 2009</date>">
6 6
  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
7 7
       allowed: see man(7), man(1). -->
8 8
  <!ENTITY dhsection   "<manvolnum>8</manvolnum>">
......
19 19
  <refentryinfo>
20 20
    <copyright>
21 21
      <year>2007</year>
22
      <year>2008</year>
23
      <year>2009</year>
22 24
      <holder>Google Inc.</holder>
23 25
    </copyright>
24 26
    &dhdate;
......
27 29
    &dhucpackage;
28 30

  
29 31
    &dhsection;
30
    <refmiscinfo>ganeti 1.2</refmiscinfo>
32
    <refmiscinfo>ganeti 2.0</refmiscinfo>
31 33
  </refmeta>
32 34
  <refnamediv>
33 35
    <refname>&dhpackage;</refname>
......
92 94
      <title>IMPORT</title>
93 95
      <cmdsynopsis>
94 96
        <command>import</command>
95

  
97
        <sbr>
96 98
        <group choice="req">
97
          <arg>-n <replaceable>node<optional>:secondary-node</optional></replaceable></arg>
98
          <arg>--iallocator <replaceable>name</replaceable></arg>
99
          <arg>-n <replaceable>node<optional>:secondary-node</optional></replaceable></arg> <arg>--iallocator
100
          <replaceable>name</replaceable></arg>
99 101
        </group>
100 102
        <sbr>
101 103

  
102
        <arg>-s <replaceable>disksize</replaceable></arg>
103
        <arg>--swap-size <replaceable>disksize</replaceable></arg>
104
        <arg>-m <replaceable>memsize</replaceable></arg>
104
        <arg rep="repeat">--disk <replaceable>N</replaceable>:size=<replaceable>VAL</replaceable><arg>,mode=<replaceable>ro|rw</replaceable></arg></arg>
105 105
        <sbr>
106

  
107
        <arg>-b <replaceable>bridge</replaceable></arg>
108
        <arg>--mac <replaceable>mac</replaceable></arg>
106
        <group>
107
          <arg rep="repeat">--net <replaceable>N</replaceable><arg rep="repeat">:options</arg></arg>
108
          <arg>--no-nics</arg>
109
        </group>
110
        <sbr>
111
        <arg>-B <replaceable>BEPARAMS</replaceable></arg>
112
        <sbr>
113
        <arg>-H <replaceable>HYPERVISOR</replaceable><arg>:<arg choice="plain" rep="repeat">option=<replaceable>value</replaceable></arg></arg></arg>
109 114
        <sbr>
110
        <arg choice="req">--src-node=<replaceable>source-node</replaceable></arg>
111
        <arg choice="req">--src-dir=<replaceable>source-dir</replaceable></arg>
115
        <arg>--src-node=<replaceable>source-node</replaceable></arg>
116
        <arg>--src-dir=<replaceable>source-dir</replaceable></arg>
112 117
        <sbr>
113 118

  
114 119
        <arg choice="req">-t<group>
115 120
            <arg>diskless</arg>
116 121
            <arg>plain</arg>
117 122
            <arg>drbd</arg>
123
            <arg>file</arg>
118 124
          </group></arg>
119 125
        <sbr>
120 126

  
......
124 130
        Imports a new instance from an export residing on
125 131
        <replaceable>source-node</replaceable> in
126 132
        <replaceable>source-dir</replaceable>.
127
        <replaceable>instance</replaceable> must be in DNS and
128
        resolve to a IP in the same network as the nodes in the
129
        cluster.
133
        <replaceable>instance</replaceable> must be in DNS and resolve
134
        to a IP in the same network as the nodes in the cluster. If
135
        the source node and directory are not passed, the last backup
136
        in the cluster is used, as visible with the
137
        <command>list</command> command.
130 138
      </para>
131 139

  
132 140
      <para>
133
        The <option>-s</option> option specifies the disk size for
134
        the instance, in mebibytes (defaults to
135
        <constant>20480MiB</constant> =
136
        <constant>20GiB</constant>). You can also use one of the
137
        suffixes <literal>m</literal>, <literal>g</literal> or
141
        The <option>disk</option> option specifies the parameters for
142
        the disks of the instance. The numbering of disks starts at
143
        zero, and at least one disk needs to be passed. For each disk,
144
        at least the size needs to be given, and optionally the access
145
        mode (read-only or the default of read-write) can also be
146
        specified.  The size is interpreted (when no unit is given) in
147
        mebibytes. You can also use one of the suffixes
148
        <literal>m</literal>, <literal>g</literal> or
138 149
        <literal>t</literal> to specificy the exact the units used;
139 150
        these suffixes map to mebibytes, gibibytes and tebibytes.
140 151
      </para>
141 152

  
142 153
      <para>
143
        The <option>--swap-size</option> option specifies the swap
144
        disk size (in mebibytes) for the instance (the one presented
145
        as <filename class="devicefile">/dev/sdb</filename>). The
146
        default is <constant>4096MiB</constant>. As for the disk
147
        size, you can specify other suffixes.
154
        The minimum disk specification is therefore <userinput>--disk
155
        0:size=20G</userinput>, and a three-disk instance can be
156
        specified as <userinput>--disk 0:size=20G --disk 1:size=4G
157
        --disk 2:size=100G</userinput>.
148 158
      </para>
149 159

  
150 160
      <para>
151
        The <option>-m</option> option specifies the memory size for
152
        the instance, in mebibytes (defaults to 128 MiB). Again, you
153
        can use other suffixes (e.g. <userinput>2g</userinput>).
161
        The NICs of the instances can be specified via the
162
        <option>--nic</option> option. By default, one NIC is created
163
        for the instance, with the MAC set to the original MAC of the
164
        instance (as it was at export time). Each NIC can take up to
165
        three parameters (all optional):
166
        <variablelist>
167
          <varlistentry>
168
            <term>mac</term>
169
            <listitem>
170
              <simpara>either a value or <constant>GENERATE</constant>
171
              to generate a new unique MAC, or
172
              <constant>AUTO</constant> to reuse the old MAC</simpara>
173
            </listitem>
174
          </varlistentry>
175
          <varlistentry>
176
            <term>ip</term>
177
            <listitem>
178
              <simpara>specifies the IP address assigned to the
179
              instance from the Ganeti side (this is not necessarily
180
              what the instance will use, but what the node expects
181
              the instance to use)</simpara>
182
            </listitem>
183
          </varlistentry>
184
          <varlistentry>
185
            <term>bridge</term>
186
            <listitem>
187
              <simpara>specifies the bridge to attach this NIC
188
              to</simpara>
189
            </listitem>
190
          </varlistentry>
191
        </variablelist>
154 192
      </para>
155 193

  
156 194
      <para>
157
        The <option>-b</option> option specifies the bridge to which the
158
        instance will be connected. (defaults to the cluster-wide default
159
        bridge specified at cluster intialization time).
195
        Alternatively, if no network is desired for the instance, you
196
        can prevent the default of one NIC with the
197
        <option>--no-nics</option> option.
160 198
      </para>
161 199

  
162 200
      <para>
163
	The <option>--mac</option> option specifies the mac address for the
164
	instance. The default is 'auto' which is reusing the previous mac
165
	address if the instance is being imported with the same name, and
166
	generating a new one otherwise. You can also force generation by
167
	specifying 'generate'.
201
        The <option>-B</option> option specifies the backend
202
        parameters for the instance. If no such parameters are
203
        specified, the values are inherited from the cluster. Possible
204
        parameters are:
205
        <variablelist>
206
          <varlistentry>
207
            <term>memory</term>
208
            <listitem>
209
              <simpara>the memory size of the instance; as usual,
210
              suffixes can be used to denote the unit, otherwise the
211
              value is taken in mebibites</simpara>
212
            </listitem>
213
          </varlistentry>
214
          <varlistentry>
215
            <term>vcpus</term>
216
            <listitem>
217
              <simpara>the number of VCPUs to assign to the instance
218
              (if this value makes sense for the hypervisor)</simpara>
219
            </listitem>
220
          </varlistentry>
221
          <varlistentry>
222
            <term>auto_balance</term>
223
            <listitem>
224
              <simpara>whether the instance is considered in the N+1
225
              cluster checks (enough redundancy in the cluster to
226
              survive a node failure)</simpara>
227
            </listitem>
228
          </varlistentry>
229
        </variablelist>
168 230
      </para>
169 231

  
170 232
      <para>
......
195 257
              </para>
196 258
            </listitem>
197 259
          </varlistentry>
260
          <varlistentry>
261
            <term>file</term>
262
            <listitem>
263
              <para>Disk devices will be backed up by files, under the
264
              <filename
265
              class="directory">@RPL_FILE_STORAGE_DIR@</filename>. By
266
              default, each instance will get a directory (as its own
267
              name) under this path, and each disk is stored as
268
              individual files in this (instance-specific)
269
              directory.</para>
270
            </listitem>
271
          </varlistentry>
198 272
        </variablelist>
199 273
      </para>
200 274

  
......
208 282

  
209 283
      <para>
210 284
        The optional second value of the <option>--node</option> is used for
211
        the remote raid template type and specifies the remote node.
285
        the drbd template and specifies the remote node.
212 286
      </para>
213 287

  
214 288
      <para>
......
220 294
      <para>
221 295
        Example:
222 296
        <screen>
223
# gnt-backup import -t plain -s 30 -m 512 -n node1.example.com \
224
> --src-node=node2.example.com \
225
> --src-dir=/srv/ganeti/export/instance3.example.com \
297
# gnt-backup import -t plain --disk 0:size=1G -B memory=512 \
298
> -n node1.example.com \
226 299
> instance3.example.com
227 300
        </screen>
228 301
      </para>
......
251 324
</screen>
252 325
    </refsect2>
253 326

  
327
    <refsect2>
328
      <title>REMOVE</title>
329
      <cmdsynopsis>
330
        <command>remove</command>
331
        <arg choice="req">instance_name</arg>
332
      </cmdsynopsis>
333

  
334
      <para>
335
        Removes the backup for the given instance name, if any. If the
336
        backup was for a deleted instances, it is needed to pass the
337
        <acronym>FQDN</acronym> of the instance, and not only the
338
        short hostname.
339
      </para>
340

  
341
    </refsect2>
342

  
254 343
  </refsect1>
255 344

  
256 345
  &footer;
b/man/gnt-cluster.sgml
2 2

  
3 3
  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
4 4
  <!-- Please adjust the date whenever revising the manpage. -->
5
  <!ENTITY dhdate      "<date>December 12, 2007</date>">
5
  <!ENTITY dhdate      "<date>February 12, 2009</date>">
6 6
  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
7 7
       allowed: see man(7), man(1). -->
8 8
  <!ENTITY dhsection   "<manvolnum>8</manvolnum>">
......
20 20
    <copyright>
21 21
      <year>2006</year>
22 22
      <year>2007</year>
23
      <year>2008</year>
24
      <year>2009</year>
23 25
      <holder>Google Inc.</holder>
24 26
    </copyright>
25 27
    &dhdate;
......
28 30
    &dhucpackage;
29 31

  
30 32
    &dhsection;
31
    <refmiscinfo>ganeti 1.2</refmiscinfo>
33
    <refmiscinfo>ganeti 2.0</refmiscinfo>
32 34
  </refmeta>
33 35
  <refnamediv>
34 36
    <refname>&dhpackage;</refname>
......
105 107
        The command is executed serially on the selected nodes. If the
106 108
        master node is present in the list, the command will be
107 109
        executed last on the master. Regarding the other nodes, the
108
        execution order is somewhat alphabetic (it's smarter so that
110
        execution order is somewhat alphabetic, so that
109 111
        node2.example.com will be earlier than node10.example.com but
110
        after node1.example.com).
112
        after node1.example.com.
111 113
      </para>
112 114

  
113 115
      <para>
......
208 210

  
209 211
      <cmdsynopsis>
210 212
        <command>init</command>
213
        <sbr>
211 214
        <arg>-s <replaceable>secondary_ip</replaceable></arg>
215
        <sbr>
212 216
        <arg>-b <replaceable>bridge</replaceable></arg>
217
        <sbr>
213 218
        <arg>-g <replaceable>vg-name</replaceable></arg>
219
        <sbr>
214 220
        <arg>--master-netdev <replaceable>vg-name</replaceable></arg>
221
        <sbr>
215 222
        <arg>-m <replaceable>mac-prefix</replaceable></arg>
223
        <sbr>
216 224
        <arg>--no-lvm-storage</arg>
225
        <sbr>
217 226
        <arg>--file-storage-dir <replaceable>dir</replaceable></arg>
227
        <sbr>
218 228
        <arg>--enabled-hypervisors <replaceable>hypervisors</replaceable></arg>
229
        <sbr>
219 230
        <arg>-t <replaceable>hypervisor name</replaceable></arg>
231
        <sbr>
220 232
        <arg>--hypervisor-parameters <replaceable>hv-params</replaceable></arg>
233
        <sbr>
221 234
        <arg>--backend-parameters <replaceable>be-params</replaceable></arg>
235
        <sbr>
222 236
        <arg choice="req"><replaceable>clustername</replaceable></arg>
223 237
      </cmdsynopsis>
224 238

  
......
404 418
        to set default hypervisor specific parameters for the
405 419
        cluster. The format of this option is the name of the
406 420
        hypervisor, followed by a colon and a comma-separated list of
407
        key=value pairs with the following keys:
408
      </para>
409

  
410
      <para>
411
        <variablelist>
412
          <varlistentry>
413
            <term>xen-pvm</term>
414
            <listitem>
415
              <variablelist>
416
                <varlistentry>
417
                  <term>
418
                    kernel_path
419
                  </term>
420
                  <listitem>
421
                    <para>
422
                      Sets the path to the instance kernel, if not
423
                      specified, the value /boot/vmlinuz-2.6-xenU will
424
                      be used.
425
                    </para>
426
                  </listitem>
427
                </varlistentry>
428
                <varlistentry>
429
                  <term>
430
                    initrd_path
431
                  </term>
432
                  <listitem>
433
                    <para>
434
                      Sets the path to the instance initrd, if not
435
                      specified, no initrd will be used.
436
                    </para>
437
                  </listitem>
438
                </varlistentry>
439
              </variablelist>
440
            </listitem>
441
          </varlistentry>
442
          <varlistentry>
443
            <term>xen-hvm</term>
444
            <listitem>
445
              <variablelist>
446
                <varlistentry>
447
                  <term>
448
                    boot_order
449
                  </term>
450
                  <listitem>
451
                    <para>
452
                      Boot device order for instances. Several single
453
                      letter device entries can be combined together
454
                      without a separator. If not specified, the value
455
                      cd will be used. Available boot device entries are:
456
                    <para>
457
                      <variablelist>
458
                        <varlistentry>
459
                          <term>a</term>
460
                          <listitem>
461
                            <para>
462
                              floppy drive
463
                            </para>
464
                          </listitem>
465
                        </varlistentry>
466
                        <varlistentry>
467
                          <term>c</term>
468
                          <listitem>
469
                            <para>
470
                              hard disk
471
                            </para>
472
                          </listitem>
473
                        </varlistentry>
474
                        <varlistentry>
475
                          <term>d</term>
476
                          <listitem>
477
                            <para>
478
                              CDROM drive
479
                            </para>
480
                          </listitem>
481
                        </varlistentry>
482
                        <varlistentry>
483
                          <term>n</term>
484
                          <listitem>
485
                            <para>
486
                              network boot (PXE)
487
                            </para>
488
                          </listitem>
489
                        </varlistentry>
490
                      </variablelist>
491
                  </listitem>
492
                </varlistentry>
493
                <varlistentry>
494
                  <term>
495
                    cdrom_image_path
496
                  </term>
497
                  <listitem>
498
                    <para>
499
                      Sets the path to the file Xen uses to
500
                      emulate a virtual CDROM drive for
501
                      instances. Valid values are either an absolute
502
                      path to an existing file or the value None,
503
                      which disables virtual CDROM support. If not
504
                      specified, the value None will be used.
505
                    </para>
506
                  </listitem>
507
                </varlistentry>
508
                <varlistentry>
509
                  <term>
510
                    nic_type
511
                  </term>
512
                  <listitem>
513
                    <para>
514
                      Sets the NIC type Xen should use for this
515
                      HVM instance. Valid choices are rtl8139,
516
                      ne2k_pci, ne2k_isa and paravirtual. The
517
                      paravirtual setting is intended for use with the
518
                      GPL PV drivers inside HVM Windows instances. If
519
                      not specified, the value rtl8139 will be used.
520
                      </para>
521
                  </listitem>
522
                </varlistentry>
523
                <varlistentry>
524
                  <term>
525
                      disk_type
526
                  </term>
527
                  <listitem>
528
                    <para>
529
                      Sets the disk type Xen should use for the
530
                      HVM instance. Valid choices are ioemu and
531
                      paravirtual. The paravirtual setting is intended
532
                      for use with the GPL PV drivers inside HVM
533
                      Windows instances. If not specified, the value
534
                      ioemu will be used.
535
                      </para>
536
                  </listitem>
537
                </varlistentry>
538
                <varlistentry>
539
                  <term>
540
                    vnc_bind_address
541
                  </term>
542
                  <listitem>
543
                    <para>
544
                      Sets the address that the VNC listener for
545
                      this instance should bind to. Valid  values
546
                      are IPv4 addresses. Use the address 0.0.0.0 to
547
                      bind to all available interfaces or specify the
548
                      address of one of the interfaces on the node to
549
                      restrict listening to that interface. If not
550
                      specified, the value 0.0.0.0 will be used.
551
                    </para>
552
                  </listitem>
553
                </varlistentry>
554
                <varlistentry>
555
                  <term>
556
                    acpi
557
                  </term>
558
                  <listitem>
559
                    <para>
560
                      Sets if Xen should enable ACPI support for
561
                      HVM instances. Valid values are true or
562
                      false. If not specified, the value true will be
563
                      used.
564
                    </para>
565
                  </listitem>
566
                </varlistentry>
567
                <varlistentry>
568
                  <term>
569
                    pae
570
                  </term>
571
                  <listitem>
572
                    <para>
573
                      Sets if Xen should enabled PAE support for
574
                      this HVM instance. Valid values are true or
575
                      false. If not specified, the value true will be
576
                      used.
577
                    </para>
578
                  </listitem>
579
                </varlistentry>
580
              </variablelist>
581
            </listitem>
582
          </varlistentry>
583
          <varlistentry>
584
            <term>kvm</term>
585
            <listitem>
586
              <variablelist>
587
                <varlistentry>
588
                  <term>
589
                    kernel_path
590
                  </term>
591
                  <listitem>
592
                    <para>
593
                      Sets the path to the instance kernel, if not
594
                      specified, the valee /boot/vmlinuz-2.6-xenU will
595
                      be used.
596
                    </para>
597
                  </listitem>
598
                </varlistentry>
599
                <varlistentry>
600
                  <term>
601
                    initrd_path
602
                  </term>
603
                  <listitem>
604
                    <para>
605
                      Sets the path to the instance initrd, if not
606
                      specified, no initrd will be used.
607
                    </para>
608
                  </listitem>
609
                </varlistentry>
610
              </variablelist>
611
            </listitem>
612
          </varlistentry>
613
          <varlistentry>
614
            <term>fake</term>
615
            <listitem>
616
              <para>
617
                There are currently no parameters for the fake
618
                hypervisor.
619
              </para>
620
            </listitem>
621
          </varlistentry>
622
        </variablelist>
421
        key=value pairs. The keys available for each hypervisors are
422
        detailed int the <citerefentry>
423
        <refentrytitle>gnt-instance</refentrytitle>
424
        <manvolnum>8</manvolnum> </citerefentry> man page, in the
425
        <command>add</command> command.
623 426
      </para>
624 427

  
625 428
    </refsect2>
......
651 454

  
652 455
      <cmdsynopsis>
653 456
        <command>modify</command>
457
        <sbr>
654 458
        <arg choice="opt">-g <replaceable>vg-name</replaceable></arg>
459
        <sbr>
655 460
        <arg choice="opt">--no-lvm-storage</arg>
461
        <sbr>
656 462
        <arg choice="opt">--enabled-hypervisors
657 463
        <replaceable>hypervisors</replaceable></arg>
464
        <sbr>
658 465
        <arg choice="opt">--hypervisor-parameters
659 466
        <replaceable>hv-params</replaceable></arg>
467
        <sbr>
660 468
        <arg choice="opt">--backend-parameters
661 469
        <replaceable>be-params</replaceable></arg>
470
        <sbr>
471
        <arg>-C <replaceable>candidate_pool_size</replaceable></arg>
662 472

  
663 473
      </cmdsynopsis>
664 474

  
......
673 483
          <option>--backend-parameters</option> options are
674 484
          described in the <command>init</command> command.
675 485
        </para>
486

  
487
      <para>
488
        The <option>-C</option> options specifies the
489
        <varname>candidate_pool_size</varname> cluster parameter. This
490
        is the number of nodes that the master will try to keep as
491
        <literal>master_candidates</literal>. For more details about
492
        this role and other node roles, see the <citerefentry>
493
        <refentrytitle>ganeti</refentrytitle><manvolnum>7</manvolnum>
494
        </citerefentry>. If you increase the size, the master will
495
        automatically promote as many nodes as required and possible
496
        to reach the intended number.
497
      </para>
676 498
    </refsect2>
677 499

  
678 500
    <refsect2>
......
708 530
    </refsect2>
709 531

  
710 532
    <refsect2>
533
      <title>redist-conf</title>
534
      <cmdsynopsis>
535
        <command>redist-conf</command>
536
          <arg>--submit</arg>
537
      </cmdsynopsis>
538

  
539
      <para>
540
        This command forces a full push of configuration files from
541
        the master node to the other nodes in the cluster. This is
542
        normally not needed, but can be run if the
543
        <command>verify</command> complains about configuration
544
        mismatches.
545
      </para>
546

  
547
      <para>
548
        The <option>--submit</option> option is used to send the job
549
        to the master daemon but not wait for its completion. The job
550
        ID will be shown so that it can be examined via
551
        <command>gnt-job info</command>.
552
      </para>
553

  
554
    </refsect2>
555
    <refsect2>
711 556
      <title>REMOVE-TAGS</title>
712 557

  
713 558
      <cmdsynopsis>
b/man/gnt-debug.sgml
1
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
2

  
3
  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
4
  <!-- Please adjust the date whenever revising the manpage. -->
5
  <!ENTITY dhdate      "<date>February 12, 2009</date>">
6
  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
7
       allowed: see man(7), man(1). -->
8
  <!ENTITY dhsection   "<manvolnum>8</manvolnum>">
9
  <!ENTITY dhucpackage "<refentrytitle>gnt-debug</refentrytitle>">
10
  <!ENTITY dhpackage   "gnt-debug">
11

  
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">
16
]>
17

  
18
<refentry>
19
  <refentryinfo>
20
    <copyright>
21
      <year>2006</year>
22
      <year>2007</year>
23
      <year>2008</year>
24
      <year>2009</year>
25
      <holder>Google Inc.</holder>
26
    </copyright>
27
    &dhdate;
28
  </refentryinfo>
29
  <refmeta>
30
    &dhucpackage;
31

  
32
    &dhsection;
33
    <refmiscinfo>ganeti 2.0</refmiscinfo>
34
  </refmeta>
35
  <refnamediv>
36
    <refname>&dhpackage;</refname>
37

  
38
    <refpurpose>debug commands</refpurpose>
39
  </refnamediv>
40
  <refsynopsisdiv>
41
    <cmdsynopsis>
42
      <command>&dhpackage; </command>
43

  
44
      <arg choice="req">command</arg>
45
      <arg>arguments...</arg>
46
    </cmdsynopsis>
47
  </refsynopsisdiv>
48
  <refsect1>
49
    <title>DESCRIPTION</title>
50

  
51
    <para>
52
      The <command>&dhpackage;</command> is used for debugging the
53
      ganeti system.
54
    </para>
55

  
56
  </refsect1>
57
  <refsect1>
58
    <title>COMMANDS</title>
59

  
60
    <refsect2>
61
      <title>ALLOCATOR</title>
62

  
63
      <cmdsynopsis>
64
        <command>allocator</command>
65
        <arg>--debug</arg>
66
        <arg>--dir <replaceable>DIRECTION</replaceable></arg>
67
        <arg choice="req">--algorithm <replaceable>ALLOCATOR</replaceable>
68
        </arg>
69
        <arg>--mode <replaceable>MODE</replaceable></arg>
70
        <arg>--mem <replaceable>MEMORY</replaceable></arg>
71
        <arg>--disks <replaceable>DISKS</replaceable></arg>
72
        <arg>--disk-template <replaceable>TEMPLATE</replaceable></arg>
73
        <arg>--nics <replaceable>NICS</replaceable></arg>
74
        <arg>--os-type <replaceable>OS</replaceable></arg>
75
        <arg>--vcpus <replaceable>VCPUS</replaceable></arg>
76
        <arg>--tags <replaceable>TAGS</replaceable></arg>
77
        <arg choice="req"><replaceable>instance</replaceable></arg>
78
      </cmdsynopsis>
79

  
80
      <para>
81
        Executes a test run of the <emphasis>iallocator</emphasis> framework.
82
      </para>
83

  
84
      <para>
85
        The command will build input for a given iallocator script
86
        (named with the <option>--algorithm</option> option), and
87
        either show this input data (if
88
        <replaceable>DIRECTION</replaceable> is
89
        <emphasis>in</emphasis>) or run the iallocator script and show
90
        its output (if <replaceable>DIRECTION</replaceable> is
91
        <emphasis>out</emphasis>).
92
      </para>
93

  
94
      <para>
95
        If the <replaceable>MODE</replaceable> is
96
        <emphasis>allocate</emphasis>, then an instance definition is
97
        built from the other arguments and sent to the script,
98
        otherwise (<replaceable>MODE</replaceable> is
99
        <emphasis>relocate</emphasis>) an existing instance name must
100
        be passed as the first argument.
101
      </para>
102

  
103
      <para>
104
        This build of ganeti will look for iallocator scripts in the
105
        following directories: <filename
106
        class="directory">@CUSTOM_IALLOCATOR_SEARCH_PATH@</filename>;
107
        for more details about this framework, see the HTML or PDF
108
        documentation.
109
      </para>
110

  
111
    <refsect2>
112
      <title>DELAY</title>
113

  
114
      <cmdsynopsis>
115
        <command>delay</command>
116
        <arg>--debug</arg>
117
        <arg>--no-master</arg>
118
        <arg choice="opt" rep="repeat">-n <replaceable>NODE</replaceable></arg>
119
        <arg choice="req"><replaceable>duration</replaceable></arg>
120
      </cmdsynopsis>
121

  
122
      <para>
123
        Run a test opcode (a sleep) on the master (internally in the
124
        command) and on selected nodes (via an RPC call). This server
125
        no other purpose but to execute a test operation.
126
      </para>
127

  
128
      <para>
129
        The <option>-n</option> option can be given multiple times to
130
        select the nodes for the RPC call. By default, the delay will
131
        also be executed on the master, unless the
132
        <option>--no-master</option> option is passed.
133
      </para>
134

  
135
      <para>
136
        The <replaceable>delay</replaceable> argument will be
137
        interpreted as a floating point number.
138
      </para>
139

  
140
    </refsect2>
141

  
142
    <refsect2>
143
      <title>SUBMIT-JOB</title>
144

  
145
      <cmdsynopsis>
146
        <command>submit-job</command>
147

  
148
        <arg choice="req">opcodes_file</arg>
149
      </cmdsynopsis>
150

  
151
      <para>
152
        This command builds a list of opcodes from a JSON-format file
153
        and submits them as a single job to the master daemon. It can
154
        be used to test some options that are not available via the
155
        command line.
156
      </para>
157

  
158
    </refsect2>
159

  
160
  </refsect1>
161

  
162
  &footer;
163

  
164
</refentry>
165

  
166
<!-- Keep this comment at the end of the file
167
Local variables:
168
mode: sgml
169
sgml-omittag:t
170
sgml-shorttag:t
171
sgml-minimize-attributes:nil
172
sgml-always-quote-attributes:t
173
sgml-indent-step:2
174
sgml-indent-data:t
175
sgml-parent-document:nil
176
sgml-default-dtd-file:nil
177
sgml-exposed-tags:nil
178
sgml-local-catalogs:nil
179
sgml-local-ecat-files:nil
180
End:
181
-->
b/man/gnt-instance.sgml
2 2

  
3 3
  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
4 4
  <!-- Please adjust the date whenever revising the manpage. -->
5
  <!ENTITY dhdate      "<date>May 29, 2008</date>">
5
  <!ENTITY dhdate      "<date>February 11, 2009</date>">
6 6
  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
7 7
       allowed: see man(7), man(1). -->
8 8
  <!ENTITY dhsection   "<manvolnum>8</manvolnum>">
......
21 21
      <year>2006</year>
22 22
      <year>2007</year>
23 23
      <year>2008</year>
24
      <year>2009</year>
24 25
      <holder>Google Inc.</holder>
25 26
    </copyright>
26 27
    &dhdate;
......
29 30
    &dhucpackage;
30 31

  
31 32
    &dhsection;
32
    <refmiscinfo>ganeti 1.2</refmiscinfo>
33
    <refmiscinfo>ganeti 2.0</refmiscinfo>
33 34
  </refmeta>
34 35
  <refnamediv>
35 36
    <refname>&dhpackage;</refname>
......
63 64
        <title>ADD</title>
64 65
        <cmdsynopsis>
65 66
          <command>add</command>
66
          <arg>-s <replaceable>disksize</replaceable></arg>
67
          <arg>--swap-size <replaceable>disksize</replaceable></arg>
68
          <arg>-m <replaceable>memsize</replaceable></arg>
69 67
          <sbr>
70

  
71
          <arg>-b <replaceable>bridge</replaceable></arg>
72
          <arg>--mac <replaceable>MAC-address</replaceable></arg>
73
          <sbr>
74

  
75
          <arg>--hvm-boot-order <replaceable>boot-order</replaceable></arg>
76
          <arg>--hvm-acpi <replaceable>ACPI-support</replaceable></arg>
77
          <sbr>
78

  
79
          <arg>--hvm-pae <replaceable>PAE-support</replaceable></arg>
80
          <sbr>
81

  
82
          <arg>--hvm-cdrom-image-path
83
            <replaceable>cdrom-image-path</replaceable></arg>
68
          <arg rep="repeat">--disk=<replaceable>N</replaceable>:size=<replaceable>VAL</replaceable><arg>,mode=<replaceable>ro|rw</replaceable></arg></arg>
84 69
          <sbr>
85

  
86
          <arg>--hvm-nic-type <replaceable>NICTYPE</replaceable></arg>
87
          <sbr>
88

  
89
          <arg>--hvm-disk-type
90
          <replaceable>DISKTYPE</replaceable></arg>
91
          <sbr>
92

  
93
          <arg>--vnc-bind-address
94
            <replaceable>vnc-bind-address</replaceable></arg>
70
          <group>
71
            <arg rep="repeat">--net=<replaceable>N</replaceable><arg rep="repeat">:options</arg></arg>
72
            <arg>--no-nics</arg>
73
          </group>
95 74
          <sbr>
96

  
97
          <arg>--kernel<group choice="req">
98
              <arg>default</arg>
99
              <arg><replaceable>kernel_path</replaceable></arg>
100
            </group></arg>
75
          <arg>-B <replaceable>BEPARAMS</replaceable></arg>
101 76
          <sbr>
102 77

  
103
          <arg>--initrd<group choice="req">
104
              <arg>default</arg>
105
              <arg>none</arg>
106
              <arg><replaceable>initrd_path</replaceable></arg>
107
            </group></arg>
78
          <arg>-H <replaceable>HYPERVISOR</replaceable><arg>:<arg choice="plain" rep="repeat">option=<replaceable>value</replaceable></arg></arg></arg>
108 79
          <sbr>
109 80

  
110 81
          <arg>--file-storage-dir <replaceable>dir_path</replaceable></arg>
......
130 101

  
131 102
          <arg choice="req">-o <replaceable>os-type</replaceable></arg>
132 103
          <sbr>
104
          <arg>--submit</arg>
105
          <sbr>
133 106

  
134 107
          <arg choice="req"><replaceable>instance</replaceable></arg>
135 108
        </cmdsynopsis>
136 109

  
137 110
        <para>
138
          Creates a new instance on the specified
139
          host. <replaceable>instance</replaceable> must be in DNS and
140
          resolve to a IP in the same network as the nodes in the
141
          cluster.
111
          Creates a new instance on the specified host. The
112
          <replaceable>instance</replaceable> argument must be in DNS,
113
          but depending on the bridge setup, need not be in the same
114
          network as the nodes in the cluster.
142 115
        </para>
143 116

  
144 117
        <para>
145
          The <option>-s</option> option specifies the disk size for
146
          the instance, in mebibytes (defaults to
147
          <constant>20480MiB</constant> =
148
          <constant>20GiB</constant>). You can also use one of the
149
          suffixes <literal>m</literal>, <literal>g</literal> or
118
          The <option>disk</option> option specifies the parameters
119
          for the disks of the instance. The numbering of disks starts
120
          at zero, and at least one disk needs to be passed. For each
121
          disk, at least the size needs to be given, and optionally
122
          the access mode (read-only or the default of read-write) can
123
          also be specified.  The size is interpreted (when no unit is
124
          given) in mebibytes. You can also use one of the suffixes
125
          <literal>m</literal>, <literal>g</literal> or
150 126
          <literal>t</literal> to specificy the exact the units used;
151 127
          these suffixes map to mebibytes, gibibytes and tebibytes.
152 128
        </para>
153 129

  
154 130
        <para>
155
          The <option>--swap-size</option> option specifies the swap
156
          disk size (in mebibytes) for the instance (the one presented
157
          as <filename class="devicefile">/dev/sdb</filename>). The
158
          default is <constant>4096MiB</constant>. As for the disk
159
          size, you can specify other suffixes.
131
          The minimum disk specification is therefore
132
          <userinput>--disk 0:size=20G</userinput>, and a three-disk
133
          instance can be specified as <userinput>--disk 0:size=20G
134
            --disk 1:size=4G --disk 2:size=100G</userinput>.
160 135
        </para>
161 136

  
162 137
        <para>
163
          The <option>-m</option> option specifies the memory size for
164
          the instance, in mebibytes (defaults to 128 MiB). Again, you
165
          can use other suffixes (e.g. <userinput>2g</userinput>).
138
          The NICs of the instances can be specified via the
139
          <option>--nic</option> option. By default, one NIC is
140
          created for the instance, with a random MAC, and connected
141
          to the default bridge. Each NIC can take up to three
142
          parameters (all optional):
143
          <variablelist>
144
            <varlistentry>
145
              <term>mac</term>
146
              <listitem>
147
                <simpara>either a value or <constant>GENERATE</constant>
148
                  to generate a new unique MAC</simpara>
149
              </listitem>
150
            </varlistentry>
151
            <varlistentry>
152
              <term>ip</term>
153
              <listitem>
154
                <simpara>specifies the IP address assigned to the
155
                  instance from the Ganeti side (this is not necessarily
156
                  what the instance will use, but what the node expects
157
                  the instance to use)</simpara>
158
              </listitem>
159
            </varlistentry>
160
            <varlistentry>
161
              <term>bridge</term>
162
              <listitem>
163
                <simpara>specifies the bridge to attach this NIC
164
                  to</simpara>
165
              </listitem>
166
            </varlistentry>
167
          </variablelist>
166 168
        </para>
167 169

  
168 170
        <para>
169
          The <option>-o</option> options specifies the operating
170
          system to be installed. The available operating systems can
171
          be listed with <command>gnt-os list</command>.
171
          Alternatively, if no network is desired for the instance, you
172
          can prevent the default of one NIC with the
173
          <option>--no-nics</option> option.
172 174
        </para>
173 175

  
174 176
        <para>
175
          The <option>-b</option> option specifies the bridge to which the
176
          instance will be connected. (defaults to the cluster-wide default
177
          bridge specified at cluster initialization time).
177
          The <option>-o</option> options specifies the operating
178
          system to be installed. The available operating systems can
179
          be listed with <command>gnt-os list</command>.
178 180
        </para>
179 181

  
180 182
        <para>
181
          The <option>--mac</option> option specifies the MAC address
182
          of the ethernet interface for the instance. If this option
183
          is not specified, a new MAC address is generated randomly with
184
          the configured MAC prefix. The randomly generated MAC
185
          address is guaranteed to be unique among the instances of
186
          this cluster.
183
          The <option>-B</option> option specifies the backend
184
          parameters for the instance. If no such parameters are
185
          specified, the values are inherited from the cluster. Possible
186
          parameters are:
187
          <variablelist>
188
            <varlistentry>
189
              <term>memory</term>
190
              <listitem>
191
                <simpara>the memory size of the instance; as usual,
192
                  suffixes can be used to denote the unit, otherwise the
193
                  value is taken in mebibites</simpara>
194
              </listitem>
195
            </varlistentry>
196
            <varlistentry>
197
              <term>vcpus</term>
198
              <listitem>
199
                <simpara>the number of VCPUs to assign to the instance
200
                  (if this value makes sense for the hypervisor)</simpara>
201
              </listitem>
202
            </varlistentry>
203
            <varlistentry>
204
              <term>auto_balance</term>
205
              <listitem>
206
                <simpara>whether the instance is considered in the N+1
207
                  cluster checks (enough redundancy in the cluster to
208
                  survive a node failure)</simpara>
209
              </listitem>
210
            </varlistentry>
211
          </variablelist>
187 212
        </para>
188 213

  
189 214
        <para>
190
          The <option>--hvm-boot-order</option> option specifies the
191
          boot device order for Xen HVM instances. The boot order is a
192
          string of letters listing the boot devices, with valid
193
          device letters being:
215
          The <option>-H</option> option specified the hypervisor to
216
          use for the instance (must be one of the enabled hypervisors
217
          on the cluster) and optionally custom parameters for this
218
          instance. If not other options are used (i.e. the invocation
219
          is just <userinput>-H
220
          <replaceable>NAME</replaceable></userinput>) the instance
221
          will inherit the cluster options. The defaults below show
222
          the cluster defaults at cluster creation time.
194 223
        </para>
195 224

  
196 225
        <para>
226
          The possible hypervisor options are as follows:
197 227
          <variablelist>
198 228
            <varlistentry>
199
              <term>a</term>
229
              <term>boot_order</term>
200 230
              <listitem>
231
                <simpara>Valid for the Xen HVM and KVM
232
                hypervisors.</simpara>
233

  
234
                <simpara>A string value denoting the boot order. This
235
                has different meaning for the Xen HVM hypervisor and
236
                for the KVM one.</simpara>
237

  
238
                <simpara>
239
                  For Xen HVM, The boot order is a string of letters
240
                  listing the boot devices, with valid device letters
241
                  being:
242
                </simpara>
243
                  <variablelist>
244
                    <varlistentry>
245
                      <term>a</term>
246
                      <listitem>
247
                        <para>
248
                          floppy drive
249
                        </para>
250
                      </listitem>
251
                    </varlistentry>
252
                    <varlistentry>
253
                      <term>c</term>
254
                      <listitem>
255
                        <para>
256
                          hard disk
257
                        </para>
258
                      </listitem>
259
                    </varlistentry>
260
                    <varlistentry>
261
                      <term>d</term>
262
                      <listitem>
263
                        <para>
264
                          CDROM drive
265
                        </para>
266
                      </listitem>
267
                    </varlistentry>
268
                    <varlistentry>
269
                      <term>n</term>
270
                      <listitem>
271
                        <para>
272
                          network boot (PXE)
273
                        </para>
274
                      </listitem>
275
                    </varlistentry>
276
                  </variablelist>
277
                <simpara>
278
                  The default is not to set an HVM boot order which is
279
                  interpreted as 'dc'.
280
                </simpara>
281

  
282
              </listitem>
283
            </varlistentry>
284
            <varlistentry>
285
              <term>cdrom_image_path</term>
286
              <listitem>
287
                <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
288

  
289
                <simpara>The path to a CDROM image to attach to the
290
                instance.</simpara>
291

  
292
              </listitem>
293
            </varlistentry>
294
            <varlistentry>
295
              <term>nic_type</term>
296
              <listitem>
297
                <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
298

  
201 299
                <para>
202
                  floppy drive
300
                  This parameter determines the way the network cards
301
                  are presented to the instance. The possible options are:
302
                  <simplelist>
303
                    <member>rtl8139 (default for Xen HVM) (HVM & KVM)</member>
304
                    <member>ne2k_isa (HVM & KVM)</member>
305
                    <member>ne2k_pci (HVM & KVM)</member>
306
                    <member>i82551 (KVM)</member>
307
                    <member>i82557b (KVM)</member>
308
                    <member>i82559er (KVM)</member>
309
                    <member>pcnet (KVM)</member>
310
                    <member>e1000 (KVM)</member>
311
                    <member>paravirtual (default for KVM) (HVM & KVM)</member>
312
                  </simplelist>
203 313
                </para>
204 314
              </listitem>
205 315
            </varlistentry>
206 316
            <varlistentry>
207
              <term>c</term>
317
              <term>disk_type</term>
208 318
              <listitem>
319
                <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
320

  
209 321
                <para>
210
                  hard disk
322
                  This parameter determines the way the disks are
323
                  presented to the instance. The possible options are:
324
                  <simplelist>
325
                    <member>ioemu (default for HVM & KVM) (HVM & KVM)</member>
326
                    <member>ide (HVM & KVM)</member>
327
                    <member>scsi (KVM)</member>
328
                    <member>sd (KVM)</member>
329
                    <member>mtd (KVM)</member>
330
                    <member>pflash (KVM)</member>
331
                  </simplelist>
211 332
                </para>
212 333
              </listitem>
213 334
            </varlistentry>
214 335
            <varlistentry>
215
              <term>d</term>
336
              <term>vnc_bind_address</term>
216 337
              <listitem>
338
                <simpara>Valid for the Xen HVM and KVM hypervisors.</simpara>
339

  
340
                <para>Specifies the address that the VNC listener for
341
                this instance should bind to. Valid values are IPv4
342
                addresses. Use the address 0.0.0.0 to bind to all
343
                available interfaces (this is the default) or specify
344
                the address of one of the interfaces on the node to
345
                restrict listening to that interface.</para>
346
              </listitem>
347
            </varlistentry>
348

  
349
            <varlistentry>
350
              <term>vnc_tls</term>
351
              <listitem>
352
                <simpara>Valid for the KVM hypervisor.</simpara>
353

  
354
                <simpara>A boolean option that controls whether the
355
                VNC connection is secured with TLS.</simpara>
356
              </listitem>
357
            </varlistentry>
358

  
359
            <varlistentry>
360
              <term>vnc_x509_path</term>
361
              <listitem>
362
                <simpara>Valid for the KVM hypervisor.</simpara>
363

  
364
                <para>If <option>vnc_tls</option> is enabled, this
365
                options specifies the path to the x509 certificate to
366
                use.</para>
367
              </listitem>
368
            </varlistentry>
369

  
370
            <varlistentry>
371
              <term>vnc_x509_verify</term>
372
              <listitem>
373
                <simpara>Valid for the KVM hypervisor.</simpara>
374
              </listitem>
375
            </varlistentry>
376

  
377
            <varlistentry>
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff