~ubuntu-branches/ubuntu/quantal/virtinst/quantal-proposed

« back to all changes in this revision

Viewing changes to man/en/virt-install.1

  • Committer: Bazaar Package Importer
  • Author(s): Marc Deslauriers
  • Date: 2011-02-01 15:40:11 UTC
  • mfrom: (1.3.16 experimental)
  • Revision ID: james.westby@ubuntu.com-20110201154011-op0nusgc240xajvb
Tags: 0.500.5-1ubuntu1
* Merge from debian experimental. Remaining changes:
  - debian/patches/9001_Ubuntu.patch:
     + Updated to add maverick and natty to OS list and enable virtio
       for them.
  - debian/patches/9003-fix-path-to-hvmloader-in-testsuite.patch: adjust
    testsuite for 0001-fix-path-to-hvmloader.patch and
    0002-Fix-path-to-pygrub.patch. (refreshed)
  - debian/control: added acl package to depends.
  - Demote virt-viewer to Suggests, as it's in universe.
  - Recommends libvirt-bin
* Removed patches:
  - debian/patches/9002-libvirt_disk_format.patch: Upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.\" Automatically generated by Pod::Man 2.16 (Pod::Simple 3.07)
 
1
.\" Automatically generated by Pod::Man 2.23 (Pod::Simple 3.14)
2
2
.\"
3
3
.\" Standard preamble:
4
4
.\" ========================================================================
5
 
.de Sh \" Subsection heading
6
 
.br
7
 
.if t .Sp
8
 
.ne 5
9
 
.PP
10
 
\fB\\$1\fR
11
 
.PP
12
 
..
13
5
.de Sp \" Vertical space (when we can't use .PP)
14
6
.if t .sp .5v
15
7
.if n .sp
53
45
.el       .ds Aq '
54
46
.\"
55
47
.\" If the F register is turned on, we'll generate index entries on stderr for
56
 
.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
 
48
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
57
49
.\" entries marked with X<> in POD.  Of course, you'll have to process the
58
50
.\" output yourself in some meaningful fashion.
59
51
.ie \nF \{\
132
124
.\" ========================================================================
133
125
.\"
134
126
.IX Title "VIRT-INSTALL 1"
135
 
.TH VIRT-INSTALL 1 "2010-03-24" "" "Virtual Machine Install Tools"
 
127
.TH VIRT-INSTALL 1 "2011-01-14" "" "Virtual Machine Install Tools"
136
128
.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
137
129
.\" way too many mistakes in technical documents.
138
130
.if n .ad l
144
136
\&\fBvirt-install\fR [\s-1OPTION\s0]...
145
137
.SH "DESCRIPTION"
146
138
.IX Header "DESCRIPTION"
147
 
\&\fBvirt-install\fR is a command line tool for provisioning new virtual machines
148
 
using the \f(CW\*(C`libvirt\*(C'\fR hypervisor management library. The tool supports both
149
 
text based & graphical installations, using serial console, \s-1SDL\s0 graphics
150
 
or a \s-1VNC\s0 client/server pair. The guest can be configured to use one or more
151
 
virtual disks, network interfaces, audio devices, and physical host devices
152
 
(\s-1USB\s0, \s-1PCI\s0).
 
139
\&\fBvirt-install\fR is a command line tool for creating new \s-1KVM\s0 or Xen virtual
 
140
machines using the \f(CW\*(C`libvirt\*(C'\fR hypervisor management library. See the \s-1EXAMPLES\s0
 
141
section at the end of this document to quickly get started.
 
142
.PP
 
143
\&\fBvirt-install\fR tool supports both text based & graphical installations,
 
144
using \s-1VNC\s0 or \s-1SDL\s0 graphics, or a text serial console. The guest can be
 
145
configured to use one or more virtual disks, network interfaces,
 
146
audio devices, physical \s-1USB\s0 or \s-1PCI\s0 devices, among others.
153
147
.PP
154
148
The installation media can be held locally or remotely on \s-1NFS\s0, \s-1HTTP\s0, \s-1FTP\s0
155
149
servers. In the latter case \f(CW\*(C`virt\-install\*(C'\fR will fetch the minimal files
189
183
.RE
190
184
.RS 2
191
185
.RE
192
 
.Sh "General Options"
 
186
.SS "General Options"
193
187
.IX Subsection "General Options"
194
188
General configuration parameters that apply to all types of guest installs.
195
189
.IP "\-n \s-1NAME\s0, \-\-name=NAME" 2
208
202
.IX Item "--arch=ARCH"
209
203
Request a non-native \s-1CPU\s0 architecture for the guest virtual machine.
210
204
If omitted, the host \s-1CPU\s0 architecture will be used in the guest.
 
205
.IP "\-\-machine=MACHINE" 2
 
206
.IX Item "--machine=MACHINE"
 
207
The machine type to emulate. This will typically not need to be specified
 
208
for Xen or \s-1KVM\s0, but is useful for choosing machine times of more exotic
 
209
architectures.
211
210
.IP "\-u \s-1UUID\s0, \-\-uuid=UUID" 2
212
211
.IX Item "-u UUID, --uuid=UUID"
213
212
\&\s-1UUID\s0 for the guest; if none is given a random \s-1UUID\s0 will be generated. If you
214
213
specify \s-1UUID\s0, you should use a 32\-digit hexadecimal number. \s-1UUID\s0 are intended
215
214
to be unique across the entire data center, and indeed world. Bear this in
216
215
mind if manually specifying a \s-1UUID\s0
217
 
.IP "\-\-vcpus=VCPUS" 2
218
 
.IX Item "--vcpus=VCPUS"
219
 
Number of virtual cpus to configure for the guest. Not all hypervisors support
220
 
\&\s-1SMP\s0 guests, in which case this argument will be silently ignored
 
216
.IP "\-\-vcpus=VCPUS[,maxvcpus=MAX][,sockets=#][,cores=#][,threads=#]" 2
 
217
.IX Item "--vcpus=VCPUS[,maxvcpus=MAX][,sockets=#][,cores=#][,threads=#]"
 
218
Number of virtual cpus to configure for the guest. If 'maxvcpus' is specified,
 
219
the guest will be able to hotplug up to \s-1MAX\s0 vcpus while the guest is running,
 
220
but will startup with \s-1VCPUS\s0.
 
221
.Sp
 
222
\&\s-1CPU\s0 topology can additionally be specified with sockets, cores, and threads.
 
223
If values are omitted, the rest will be autofilled prefering sockets over
 
224
cores over threads.
221
225
.IP "\-\-cpuset=CPUSET" 2
222
226
.IX Item "--cpuset=CPUSET"
223
227
Set which physical cpus the guest can use. \f(CW\*(C`CPUSET\*(C'\fR is a comma separated list of numbers, which can also be specified in ranges. Example:
229
233
.Sp
230
234
If the value 'auto' is passed, virt-install attempts to automatically determine
231
235
an optimal cpu pinning using \s-1NUMA\s0 data, if available.
 
236
.IP "\-\-cpu MODEL[,+feature][,\-feature][,match=MATCH][,vendor=VENDOR]" 2
 
237
.IX Item "--cpu MODEL[,+feature][,-feature][,match=MATCH][,vendor=VENDOR]"
 
238
Configure the \s-1CPU\s0 model and \s-1CPU\s0 features exposed to the guest. The only
 
239
required value is \s-1MODEL\s0, which is a valid \s-1CPU\s0 model as listed in libvirt's
 
240
cpu_map.xml file.
 
241
.Sp
 
242
Specific \s-1CPU\s0 features can be specified in a number of ways: using one of
 
243
libvirt's feature policy values force, require, optional, disable, or forbid,
 
244
or with the shorthand '+feature' and '\-feature', which equal 'force=feature'
 
245
and 'disable=feature' respectively
 
246
.Sp
 
247
Some examples:
 
248
.RS 2
 
249
.IP "\fB\-\-cpu core2duo,+x2apic,disable=vmx\fR" 2
 
250
.IX Item "--cpu core2duo,+x2apic,disable=vmx"
 
251
Expose the core2duo \s-1CPU\s0 model, force enable x2apic, but do not expose vmx
 
252
.IP "\fB\-\-cpu host\fR" 2
 
253
.IX Item "--cpu host"
 
254
Expose the host CPUs configuration to the guest. This enables the guest to
 
255
take advantage of many of the host CPUs features (better performance), but
 
256
may cause issues if migrating the guest to a host without an identical \s-1CPU\s0.
 
257
.RE
 
258
.RS 2
 
259
.RE
232
260
.IP "\-\-description" 2
233
261
.IX Item "--description"
234
262
Human readable text description of the virtual machine. This will be stored
238
266
Configure domain security driver settings. Type can be either 'static' or
239
267
\&'dynamic'. 'static' configuration requires a security \s-1LABEL\s0. Specifying
240
268
\&\s-1LABEL\s0 without \s-1TYPE\s0 implies static configuration.
241
 
.Sh "Installation Method options"
 
269
.SS "Installation Method options"
242
270
.IX Subsection "Installation Method options"
243
271
.IP "\-c \s-1CDROM\s0, \-\-cdrom=CDROM" 2
244
272
.IX Item "-c CDROM, --cdrom=CDROM"
301
329
.IP "\-x \s-1EXTRA\s0, \-\-extra\-args=EXTRA" 2
302
330
.IX Item "-x EXTRA, --extra-args=EXTRA"
303
331
Additional kernel command line arguments to pass to the installer when
304
 
performing a guest install from \f(CW\*(C`\-\-location\*(C'\fR.
 
332
performing a guest install from \f(CW\*(C`\-\-location\*(C'\fR. One common usage is specifying
 
333
an anaconda kickstart file for automated installs, such as
 
334
\&\-\-extra\-args \*(L"ks=http://myserver/my.ks\*(R"
 
335
.IP "\-\-initrd\-inject=PATH" 2
 
336
.IX Item "--initrd-inject=PATH"
 
337
Add \s-1PATH\s0 to the root of the initrd fetched with \f(CW\*(C`\-\-location\*(C'\fR. This can be
 
338
used to run an automated install without requiring a network hosted kickstart
 
339
file:
 
340
.Sp
 
341
\&\-\-initrd\-injections=/path/to/my.ks \-\-extra\-args \*(L"ks=file:/my.ks\*(R"
305
342
.IP "\-\-os\-type=OS_TYPE" 2
306
343
.IX Item "--os-type=OS_TYPE"
307
344
Optimize the guest configuration for a type of operating system (ex. 'linux',
326
363
.Sp
327
364
Valid values are:
328
365
.RS 2
 
366
.IP "windows" 4
 
367
.IX Item "windows"
 
368
.RS 4
 
369
.PD 0
 
370
.IP "win7" 4
 
371
.IX Item "win7"
 
372
.PD
 
373
Microsoft Windows 7
 
374
.IP "vista" 4
 
375
.IX Item "vista"
 
376
Microsoft Windows Vista
 
377
.IP "winxp64" 4
 
378
.IX Item "winxp64"
 
379
Microsoft Windows \s-1XP\s0 (x86_64)
 
380
.IP "winxp" 4
 
381
.IX Item "winxp"
 
382
Microsoft Windows \s-1XP\s0
 
383
.IP "win2k" 4
 
384
.IX Item "win2k"
 
385
Microsoft Windows 2000
 
386
.IP "win2k8" 4
 
387
.IX Item "win2k8"
 
388
Microsoft Windows Server 2008
 
389
.IP "win2k3" 4
 
390
.IX Item "win2k3"
 
391
Microsoft Windows Server 2003
 
392
.RE
 
393
.RS 4
 
394
.RE
 
395
.IP "unix" 4
 
396
.IX Item "unix"
 
397
.RS 4
 
398
.PD 0
 
399
.IP "openbsd4" 4
 
400
.IX Item "openbsd4"
 
401
.PD
 
402
OpenBSD 4.x
 
403
.IP "freebsd8" 4
 
404
.IX Item "freebsd8"
 
405
FreeBSD 8.x
 
406
.IP "freebsd7" 4
 
407
.IX Item "freebsd7"
 
408
FreeBSD 7.x
 
409
.IP "freebsd6" 4
 
410
.IX Item "freebsd6"
 
411
FreeBSD 6.x
 
412
.RE
 
413
.RS 4
 
414
.RE
 
415
.IP "solaris" 4
 
416
.IX Item "solaris"
 
417
.RS 4
 
418
.PD 0
 
419
.IP "solaris9" 4
 
420
.IX Item "solaris9"
 
421
.PD
 
422
Sun Solaris 9
 
423
.IP "solaris10" 4
 
424
.IX Item "solaris10"
 
425
Sun Solaris 10
 
426
.IP "opensolaris" 4
 
427
.IX Item "opensolaris"
 
428
Sun OpenSolaris
 
429
.RE
 
430
.RS 4
 
431
.RE
 
432
.IP "other" 4
 
433
.IX Item "other"
 
434
.RS 4
 
435
.PD 0
 
436
.IP "netware6" 4
 
437
.IX Item "netware6"
 
438
.PD
 
439
Novell Netware 6
 
440
.IP "netware5" 4
 
441
.IX Item "netware5"
 
442
Novell Netware 5
 
443
.IP "netware4" 4
 
444
.IX Item "netware4"
 
445
Novell Netware 4
 
446
.IP "msdos" 4
 
447
.IX Item "msdos"
 
448
MS-DOS
 
449
.IP "generic" 4
 
450
.IX Item "generic"
 
451
Generic
 
452
.RE
 
453
.RS 4
 
454
.RE
329
455
.IP "linux" 4
330
456
.IX Item "linux"
331
457
.RS 4
332
458
.PD 0
 
459
.IP "debiansqueeze" 4
 
460
.IX Item "debiansqueeze"
 
461
.PD
 
462
Debian Squeeze
 
463
.IP "debianlenny" 4
 
464
.IX Item "debianlenny"
 
465
Debian Lenny
333
466
.IP "debianetch" 4
334
467
.IX Item "debianetch"
335
 
.PD
336
468
Debian Etch
337
 
.IP "debianlenny" 4
338
 
.IX Item "debianlenny"
339
 
Debian Lenny
340
 
.IP "debiansqueeze" 4
341
 
.IX Item "debiansqueeze"
342
 
Debian Squeeze
 
469
.IP "fedora14" 4
 
470
.IX Item "fedora14"
 
471
Fedora 14
 
472
.IP "fedora13" 4
 
473
.IX Item "fedora13"
 
474
Fedora 13
 
475
.IP "fedora12" 4
 
476
.IX Item "fedora12"
 
477
Fedora 12
 
478
.IP "fedora11" 4
 
479
.IX Item "fedora11"
 
480
Fedora 11
 
481
.IP "fedora10" 4
 
482
.IX Item "fedora10"
 
483
Fedora 10
 
484
.IP "fedora9" 4
 
485
.IX Item "fedora9"
 
486
Fedora 9
 
487
.IP "fedora8" 4
 
488
.IX Item "fedora8"
 
489
Fedora 8
 
490
.IP "fedora7" 4
 
491
.IX Item "fedora7"
 
492
Fedora 7
 
493
.IP "fedora6" 4
 
494
.IX Item "fedora6"
 
495
Fedora Core 6
343
496
.IP "fedora5" 4
344
497
.IX Item "fedora5"
345
498
Fedora Core 5
346
 
.IP "fedora6" 4
347
 
.IX Item "fedora6"
348
 
Fedora Core 6
349
 
.IP "fedora7" 4
350
 
.IX Item "fedora7"
351
 
Fedora 7
352
 
.IP "fedora8" 4
353
 
.IX Item "fedora8"
354
 
Fedora 8
355
 
.IP "fedora9" 4
356
 
.IX Item "fedora9"
357
 
Fedora 9
358
 
.IP "fedora10" 4
359
 
.IX Item "fedora10"
360
 
Fedora 10
361
 
.IP "fedora11" 4
362
 
.IX Item "fedora11"
363
 
Fedora 11
364
 
.IP "fedora12" 4
365
 
.IX Item "fedora12"
366
 
Fedora 12
367
 
.IP "fedora13" 4
368
 
.IX Item "fedora13"
369
 
Fedora 13
370
 
.IP "generic24" 4
371
 
.IX Item "generic24"
372
 
Generic 2.4.x kernel
373
 
.IP "generic26" 4
374
 
.IX Item "generic26"
375
 
Generic 2.6.x kernel
376
 
.IP "virtio26" 4
377
 
.IX Item "virtio26"
378
 
Generic 2.6.25 or later kernel with virtio
 
499
.IP "mes5.1" 4
 
500
.IX Item "mes5.1"
 
501
Mandriva Enterprise Server 5.1 and later
 
502
.IP "mes5" 4
 
503
.IX Item "mes5"
 
504
Mandriva Enterprise Server 5.0
 
505
.IP "mandriva2010" 4
 
506
.IX Item "mandriva2010"
 
507
Mandriva Linux 2010 and later
379
508
.IP "mandriva2009" 4
380
509
.IX Item "mandriva2009"
381
510
Mandriva Linux 2009 and earlier
382
 
.IP "mandriva2010" 4
383
 
.IX Item "mandriva2010"
384
 
Mandriva Linux 2010 and later
385
 
.IP "mes5" 4
386
 
.IX Item "mes5"
387
 
Mandriva Enterprise Server 5.0
388
 
.IP "mes5.1" 4
389
 
.IX Item "mes5.1"
390
 
Mandriva Enterprise Server 5.1 and later
 
511
.IP "rhel6" 4
 
512
.IX Item "rhel6"
 
513
Red Hat Enterprise Linux 6
 
514
.IP "rhel5.4" 4
 
515
.IX Item "rhel5.4"
 
516
Red Hat Enterprise Linux 5.4 or later
 
517
.IP "rhel5" 4
 
518
.IX Item "rhel5"
 
519
Red Hat Enterprise Linux 5
 
520
.IP "rhel4" 4
 
521
.IX Item "rhel4"
 
522
Red Hat Enterprise Linux 4
 
523
.IP "rhel3" 4
 
524
.IX Item "rhel3"
 
525
Red Hat Enterprise Linux 3
391
526
.IP "rhel2.1" 4
392
527
.IX Item "rhel2.1"
393
528
Red Hat Enterprise Linux 2.1
394
 
.IP "rhel3" 4
395
 
.IX Item "rhel3"
396
 
Red Hat Enterprise Linux 3
397
 
.IP "rhel4" 4
398
 
.IX Item "rhel4"
399
 
Red Hat Enterprise Linux 4
400
 
.IP "rhel5" 4
401
 
.IX Item "rhel5"
402
 
Red Hat Enterprise Linux 5
403
 
.IP "rhel5.4" 4
404
 
.IX Item "rhel5.4"
405
 
Red Hat Enterprise Linux 5.4 or later
406
 
.IP "rhel6" 4
407
 
.IX Item "rhel6"
408
 
Red Hat Enterprise Linux 6
 
529
.IP "sles11" 4
 
530
.IX Item "sles11"
 
531
Suse Linux Enterprise Server 11
409
532
.IP "sles10" 4
410
533
.IX Item "sles10"
411
534
Suse Linux Enterprise Server
412
 
.IP "sles11" 4
413
 
.IX Item "sles11"
414
 
Suse Linux Enterprise Server 11
 
535
.IP "ubuntumaverick" 4
 
536
.IX Item "ubuntumaverick"
 
537
Ubuntu 10.10 (Maverick Meerkat)
 
538
.IP "ubuntulucid" 4
 
539
.IX Item "ubuntulucid"
 
540
Ubuntu 10.4 (Lucid Lynx)
 
541
.IP "ubuntukarmic" 4
 
542
.IX Item "ubuntukarmic"
 
543
Ubuntu 9.10 (Karmic Koala)
 
544
.IP "ubuntujaunty" 4
 
545
.IX Item "ubuntujaunty"
 
546
Ubuntu 9.04 (Jaunty Jackalope)
 
547
.IP "ubuntuintrepid" 4
 
548
.IX Item "ubuntuintrepid"
 
549
Ubuntu 8.10 (Intrepid Ibex)
415
550
.IP "ubuntuhardy" 4
416
551
.IX Item "ubuntuhardy"
417
552
Ubuntu 8.04 \s-1LTS\s0 (Hardy Heron)
418
 
.IP "ubuntuintrepid" 4
419
 
.IX Item "ubuntuintrepid"
420
 
Ubuntu 8.10 (Intrepid Ibex)
421
 
.IP "ubuntujaunty" 4
422
 
.IX Item "ubuntujaunty"
423
 
Ubuntu 9.04 (Jaunty Jackalope)
424
 
.IP "ubuntukarmic" 4
425
 
.IX Item "ubuntukarmic"
426
 
Ubuntu 9.10 (Karmic Koala)
427
 
.RE
428
 
.RS 4
429
 
.RE
430
 
.IP "other" 4
431
 
.IX Item "other"
432
 
.RS 4
433
 
.PD 0
434
 
.IP "generic" 4
435
 
.IX Item "generic"
436
 
.PD
437
 
Generic
438
 
.IP "msdos" 4
439
 
.IX Item "msdos"
440
 
MS-DOS
441
 
.IP "netware4" 4
442
 
.IX Item "netware4"
443
 
Novell Netware 4
444
 
.IP "netware5" 4
445
 
.IX Item "netware5"
446
 
Novell Netware 5
447
 
.IP "netware6" 4
448
 
.IX Item "netware6"
449
 
Novell Netware 6
450
 
.RE
451
 
.RS 4
452
 
.RE
453
 
.IP "solaris" 4
454
 
.IX Item "solaris"
455
 
.RS 4
456
 
.PD 0
457
 
.IP "opensolaris" 4
458
 
.IX Item "opensolaris"
459
 
.PD
460
 
Sun OpenSolaris
461
 
.IP "solaris10" 4
462
 
.IX Item "solaris10"
463
 
Sun Solaris 10
464
 
.IP "solaris9" 4
465
 
.IX Item "solaris9"
466
 
Sun Solaris 9
467
 
.RE
468
 
.RS 4
469
 
.RE
470
 
.IP "unix" 4
471
 
.IX Item "unix"
472
 
.RS 4
473
 
.PD 0
474
 
.IP "freebsd6" 4
475
 
.IX Item "freebsd6"
476
 
.PD
477
 
Free \s-1BSD\s0 6.x
478
 
.IP "freebsd7" 4
479
 
.IX Item "freebsd7"
480
 
Free \s-1BSD\s0 7.x
481
 
.IP "openbsd4" 4
482
 
.IX Item "openbsd4"
483
 
Open \s-1BSD\s0 4.x
484
 
.RE
485
 
.RS 4
486
 
.RE
487
 
.IP "windows" 4
488
 
.IX Item "windows"
489
 
.RS 4
490
 
.PD 0
491
 
.IP "vista" 4
492
 
.IX Item "vista"
493
 
.PD
494
 
Microsoft Windows Vista
495
 
.IP "win2k" 4
496
 
.IX Item "win2k"
497
 
Microsoft Windows 2000
498
 
.IP "win2k3" 4
499
 
.IX Item "win2k3"
500
 
Microsoft Windows 2003
501
 
.IP "win2k8" 4
502
 
.IX Item "win2k8"
503
 
Microsoft Windows 2008
504
 
.IP "win7" 4
505
 
.IX Item "win7"
506
 
Microsoft Windows 7
507
 
.IP "winxp" 4
508
 
.IX Item "winxp"
509
 
Microsoft Windows \s-1XP\s0 (x86)
510
 
.IP "winxp64" 4
511
 
.IX Item "winxp64"
512
 
Microsoft Windows \s-1XP\s0 (x86_64)
 
553
.IP "virtio26" 4
 
554
.IX Item "virtio26"
 
555
Generic 2.6.25 or later kernel with virtio
 
556
.IP "generic26" 4
 
557
.IX Item "generic26"
 
558
Generic 2.6.x kernel
 
559
.IP "generic24" 4
 
560
.IX Item "generic24"
 
561
Generic 2.4.x kernel
513
562
.RE
514
563
.RS 4
515
564
.RE
519
568
.RE
520
569
.RS 2
521
570
.RE
522
 
.Sh "Storage Configuration"
 
571
.IP "\-\-boot=BOOTOPTS" 2
 
572
.IX Item "--boot=BOOTOPTS"
 
573
Optionally specify the post-install \s-1VM\s0 boot configuration. This option allows
 
574
specifying a boot device order, permanently booting off kernel/initrd with
 
575
option kernel arguments, and enabling a \s-1BIOS\s0 boot menu (requires libvirt
 
576
0.8.3 or later)
 
577
.Sp
 
578
\&\-\-boot can be specified in addition to other install options
 
579
(such as \-\-location, \-\-cdrom, etc.) or can be specified on it's own. In
 
580
the latter case, behavior is similar to the \-\-import install option: there
 
581
is no 'install' phase, the guest is just created and launched as specified.
 
582
.Sp
 
583
Some examples:
 
584
.RS 2
 
585
.IP "\fB\-\-boot cdrom,fd,hd,network,menu=on\fR" 2
 
586
.IX Item "--boot cdrom,fd,hd,network,menu=on"
 
587
Set the boot device priority as first cdrom, first floppy, first harddisk,
 
588
network \s-1PXE\s0 boot. Additionally enable \s-1BIOS\s0 boot menu prompt.
 
589
.ie n .IP "\fB\-\-boot kernel=KERNEL,initrd=INITRD,kernel_args=""console=/dev/ttyS0""\fR" 2
 
590
.el .IP "\fB\-\-boot kernel=KERNEL,initrd=INITRD,kernel_args=``console=/dev/ttyS0''\fR" 2
 
591
.IX Item "--boot kernel=KERNEL,initrd=INITRD,kernel_args=console=/dev/ttyS0"
 
592
Have guest permanently boot off a local kernel/initrd pair, with the
 
593
specified kernel options.
 
594
.RE
 
595
.RS 2
 
596
.RE
 
597
.SS "Storage Configuration"
523
598
.IX Subsection "Storage Configuration"
524
599
.IP "\-\-disk=DISKOPTS" 2
525
600
.IX Item "--disk=DISKOPTS"
597
672
.IX Item "format"
598
673
Image format to be used if creating managed storage. For file volumes, this
599
674
can be 'raw', 'qcow2', 'vmdk', etc. See format types in
600
 
<http://libvirt.org/storage.html> for possible values.
 
675
<http://libvirt.org/storage.html> for possible values. This is often
 
676
mapped to the \fBdriver_type\fR value as well.
 
677
.Sp
 
678
With libvirt 0.8.3 and later, this option should be specified if reusing
 
679
and existing disk image, since libvirt does not autodetect storage format
 
680
as it is a potential security issue. For example, if reusing and existing
 
681
qcow2 image, you will want to specify format=qcow2, otherwise the hypervisor
 
682
may not be able to read your disk image.
 
683
.IP "\fBdriver_name\fR" 4
 
684
.IX Item "driver_name"
 
685
Driver name the hypervisor should use when accessing the specified
 
686
storage. Typically does not need to be set by the user.
 
687
.IP "\fBdriver_type\fR" 4
 
688
.IX Item "driver_type"
 
689
Driver format/type the hypervisor should use when accessing the specified
 
690
storage. Typically does not need to be set by the user.
601
691
.RE
602
692
.RS 2
603
693
.Sp
617
707
.IP "\-\-nonsparse" 2
618
708
.IX Item "--nonsparse"
619
709
This option is deprecated in favor of \f(CW\*(C`\-\-disk ...,sparse=false,...\*(C'\fR
620
 
.Sh "Networking Configuration"
 
710
.SS "Networking Configuration"
621
711
.IX Subsection "Networking Configuration"
622
712
.IP "\-w \s-1NETWORK\s0, \-\-network=NETWORK,opt1=val1,opt2=val2" 2
623
713
.IX Item "-w NETWORK, --network=NETWORK,opt1=val1,opt2=val2"
676
766
.IP "\-m \s-1MAC\s0, \-\-mac=MAC" 2
677
767
.IX Item "-m MAC, --mac=MAC"
678
768
This parameter is deprecated in favour of \f(CW\*(C`\-\-network NETWORK,mac=12:34...\*(C'\fR
679
 
.Sh "Graphics Configuration"
 
769
.SS "Graphics Configuration"
680
770
.IX Subsection "Graphics Configuration"
681
771
If no graphics option is specified, \f(CW\*(C`virt\-install\*(C'\fR will default to \-\-vnc
682
772
if the \s-1DISPLAY\s0 environment variable is set, otherwise \-\-nographics is used.
683
 
.IP "\-\-vnc" 2
684
 
.IX Item "--vnc"
 
773
.IP "\-\-graphics \s-1TYPE\s0,opt1=arg1,opt2=arg2,..." 2
 
774
.IX Item "--graphics TYPE,opt1=arg1,opt2=arg2,..."
 
775
Specifies the graphical display configuration. This does not configure any
 
776
virtual hardware, just how the guest's graphical display can be accessed.
 
777
Typically the user does not need to specify this option, virt-install will
 
778
try and choose a useful default, and launch a suitable connection.
 
779
.Sp
 
780
General format of a graphical string is
 
781
.Sp
 
782
.Vb 1
 
783
\&    \-\-graphics TYPE,opt1=arg1,opt2=arg2,...
 
784
.Ve
 
785
.Sp
 
786
For example:
 
787
.Sp
 
788
.Vb 1
 
789
\&    \-\-graphics vnc,password=foobar
 
790
.Ve
 
791
.Sp
 
792
The supported options are:
 
793
.RS 2
 
794
.IP "\fBtype\fR" 4
 
795
.IX Item "type"
 
796
The display type. This is one of:
 
797
.Sp
 
798
vnc
 
799
.Sp
685
800
Setup a virtual console in the guest and export it as a \s-1VNC\s0 server in
686
 
the host. Unless the \f(CW\*(C`\-\-vncport\*(C'\fR parameter is also provided, the \s-1VNC\s0
 
801
the host. Unless the \f(CW\*(C`port\*(C'\fR parameter is also provided, the \s-1VNC\s0
687
802
server will run on the first free port number at 5900 or above. The
688
803
actual \s-1VNC\s0 display allocated can be obtained using the \f(CW\*(C`vncdisplay\*(C'\fR
689
804
command to \f(CW\*(C`virsh\*(C'\fR (or \fIvirt\-viewer\fR\|(1) can be used which handles this
690
805
detail for the use).
 
806
.Sp
 
807
sdl
 
808
.Sp
 
809
Setup a virtual console in the guest and display an \s-1SDL\s0 window in the
 
810
host to render the output. If the \s-1SDL\s0 window is closed the guest may
 
811
be unconditionally terminated.
 
812
.Sp
 
813
spice
 
814
.Sp
 
815
Export the guest's console using the Spice protocol. Spice allows advanced
 
816
features like audio and \s-1USB\s0 device streaming, as well as improved graphical
 
817
performance.
 
818
.Sp
 
819
none
 
820
.Sp
 
821
No graphical console will be allocated for the guest. Fully virtualized guests
 
822
(Xen \s-1FV\s0 or QEmu/KVM) will need to have a text console configured on the first
 
823
serial port in the guest (this can be done via the \-\-extra\-args option). Xen
 
824
\&\s-1PV\s0 will set this up automatically. The command 'virsh console \s-1NAME\s0' can be
 
825
used to connect to the serial device.
 
826
.IP "\fBport\fR" 4
 
827
.IX Item "port"
 
828
Request a permanent, statically assigned port number for the guest
 
829
console. This is used by 'vnc' and 'spice'
 
830
.IP "\fBtlsport\fR" 4
 
831
.IX Item "tlsport"
 
832
Specify the spice tlsport.
 
833
.IP "\fBlisten\fR" 4
 
834
.IX Item "listen"
 
835
Address to listen on for VNC/Spice connections. Default is typically 127.0.0.1
 
836
(localhost only), but some hypervisors allow changing this globally (for
 
837
example, the qemu driver default can be changed in /etc/libvirt/qemu.conf).
 
838
Use 0.0.0.0 to allow access from other machines. This is use by 'vnc' and
 
839
\&'spice'
 
840
.IP "\fBkeymap\fR" 4
 
841
.IX Item "keymap"
 
842
Request that the virtual \s-1VNC\s0 console be configured to run with a specific
 
843
keyboard layout. If the special value 'local' is specified, virt-install
 
844
will attempt to configure to use the same keymap as the local system. A value
 
845
of 'none' specifically defers to the hypervisor. Default behavior is
 
846
hypervisor specific, but typically is the same as 'local'. This is used
 
847
by 'vnc'
 
848
.IP "\fBpassword\fR" 4
 
849
.IX Item "password"
 
850
Request a \s-1VNC\s0 password, required at connection time. Beware, this info may
 
851
end up in virt-install log files, so don't use an important password. This
 
852
is used by 'vnc' and 'spice'
 
853
.IP "\fBpasswordvalidto\fR" 4
 
854
.IX Item "passwordvalidto"
 
855
Set an expiration date for password. After the date/time has passed,
 
856
all new graphical connections are denyed until a new password is set.
 
857
This is used by 'vnc' and 'spice'
 
858
.Sp
 
859
The format for this value is \s-1YYYY\-MM\-DDTHH:MM:SS\s0, for example
 
860
2011\-04\-01T14:30:15
 
861
.RE
 
862
.RS 2
 
863
.RE
 
864
.IP "\-\-vnc" 2
 
865
.IX Item "--vnc"
 
866
This option is deprecated in favor of \f(CW\*(C`\-\-graphics vnc,...\*(C'\fR
691
867
.IP "\-\-vncport=VNCPORT" 2
692
868
.IX Item "--vncport=VNCPORT"
693
 
Request a permanent, statically assigned port number for the guest \s-1VNC\s0
694
 
console. Use of this option is discouraged as other guests may automatically
695
 
choose to run on this port causing a clash.
 
869
This option is deprecated in favor of \f(CW\*(C`\-\-graphics vnc,port=PORT,...\*(C'\fR
696
870
.IP "\-\-vnclisten=VNCLISTEN" 2
697
871
.IX Item "--vnclisten=VNCLISTEN"
698
 
Address to listen on for \s-1VNC\s0 connections. Default is typically 127.0.0.1
699
 
(localhost only), but some hypervisors allow changing this globally (for
700
 
example, the qemu driver default can be changed in /etc/libvirt/qemu.conf).
701
 
Use 0.0.0.0 to allow access from other machines.
 
872
This option is deprecated in favor of \f(CW\*(C`\-\-graphics vnc,listen=LISTEN,...\*(C'\fR
702
873
.IP "\-k \s-1KEYMAP\s0, \-\-keymap=KEYMAP" 2
703
874
.IX Item "-k KEYMAP, --keymap=KEYMAP"
704
 
Request that the virtual \s-1VNC\s0 console be configured to run with a specific
705
 
keyboard layout. If the special value 'local' is specified, virt-install
706
 
will attempt to configure to use the same keymap as the local system. A value
707
 
of 'none' specifically defers to the hypervisor. Default behavior is
708
 
hypervisor specific, but typically is the same as 'local'.
 
875
This option is deprecated in favor of \f(CW\*(C`\-\-graphics vnc,keymap=KEYMAP,...\*(C'\fR
709
876
.IP "\-\-sdl" 2
710
877
.IX Item "--sdl"
711
 
Setup a virtual console in the guest and display an \s-1SDL\s0 window in the
712
 
host to render the output. If the \s-1SDL\s0 window is closed the guest may
713
 
be unconditionally terminated.
 
878
This option is deprecated in favor of \f(CW\*(C`\-\-graphics sdl,...\*(C'\fR
714
879
.IP "\-\-nographics" 2
715
880
.IX Item "--nographics"
716
 
No graphical console will be allocated for the guest. Fully virtualized guests
717
 
(Xen \s-1FV\s0 or QEmu/KVM) will need to have a text console configured on the first
718
 
serial port in the guest (this can be done via the \-\-extra\-args option). Xen
719
 
\&\s-1PV\s0 will set this up automatically. The command 'virsh console \s-1NAME\s0' can be
720
 
used to connect to the serial device.
 
881
This option is deprecated in favor of \f(CW\*(C`\-\-graphics none\*(C'\fR
721
882
.IP "\-\-noautoconsole" 2
722
883
.IX Item "--noautoconsole"
723
884
Don't automatically try to connect to the guest console. The default behaviour
724
885
is to launch a \s-1VNC\s0 client to display the graphical console, or to run the
725
886
\&\f(CW\*(C`virsh\*(C'\fR \f(CW\*(C`console\*(C'\fR command to display the text console. Use of this parameter
726
887
will disable this behaviour.
727
 
.Sh "Virtualization Type options"
 
888
.SS "Virtualization Type options"
728
889
.IX Subsection "Virtualization Type options"
729
890
Options to override the default virtualization type choices.
730
891
.IP "\-v, \-\-hvm" 2
755
916
.IX Item "--noacpi"
756
917
Override the \s-1OS\s0 type / variant to disables the \s-1ACPI\s0 setting for fully
757
918
virtualized guest.
758
 
.Sh "Device Options"
 
919
.SS "Device Options"
759
920
.IX Subsection "Device Options"
760
921
.IP "\-\-host\-device=HOSTDEV" 2
761
922
.IX Item "--host-device=HOSTDEV"
894
1055
.RE
895
1056
.RS 2
896
1057
.RE
 
1058
.IP "\-\-channel" 2
 
1059
.IX Item "--channel"
 
1060
Specifies a communication channel device to connect the guest and host
 
1061
machine. This option uses the same options as \-\-serial and \-\-parallel
 
1062
for specifying the host/source end of the channel. Extra 'target' options
 
1063
are used to specify how the guest machine sees the channel.
 
1064
.Sp
 
1065
Some of the types of character device redirection are:
 
1066
.RS 2
 
1067
.IP "\fB\-\-channel \s-1SOURCE\s0,target_type=guestfwd,target_address=HOST:PORT\fR" 4
 
1068
.IX Item "--channel SOURCE,target_type=guestfwd,target_address=HOST:PORT"
 
1069
Communication channel using \s-1QEMU\s0 usermode networking stack. The guest can
 
1070
connect to the channel using the specified \s-1HOST:PORT\s0 combination.
 
1071
.IP "\fB\-\-channel \s-1SOURCE\s0,target_type=virtio[,name=NAME]\fR" 4
 
1072
.IX Item "--channel SOURCE,target_type=virtio[,name=NAME]"
 
1073
Communication channel using virtio serial (requires 2.6.34 or later host and
 
1074
guest). Each instance of a virtio \-\-channel line is exposed in the
 
1075
guest as /dev/vport0p1, /dev/vport0p2, etc. \s-1NAME\s0 is optional metadata, and
 
1076
can be any string, such as org.linux\-kvm.virtioport1.
 
1077
If specified, this will be exposed in the guest at
 
1078
/sys/class/virtio\-ports/vport0p1/NAME
 
1079
.RE
 
1080
.RS 2
 
1081
.RE
 
1082
.IP "\-\-console" 2
 
1083
.IX Item "--console"
 
1084
Connect a text console between the guest and host. Certain guest and
 
1085
hypervisor combinations can automatically set up a getty in the guest, so
 
1086
an out of the box text login can be provided (target_type=xen for xen
 
1087
paravirt guests, and possibly target_type=virtio in the future).
 
1088
.Sp
 
1089
Example:
 
1090
.RS 2
 
1091
.IP "\fB\-\-console pty,target_type=virtio\fR" 4
 
1092
.IX Item "--console pty,target_type=virtio"
 
1093
Connect a virtio console to the guest, redirected to a \s-1PTY\s0 on the host.
 
1094
For supported guests, this exposes /dev/hvc0 in the guest. See
 
1095
http://fedoraproject.org/wiki/Features/VirtioSerial for more info. virtio
 
1096
console requires libvirt 0.8.3 or later.
 
1097
.RE
 
1098
.RS 2
 
1099
.RE
897
1100
.IP "\-\-video=VIDEO" 2
898
1101
.IX Item "--video=VIDEO"
899
1102
Specify what video device model will be attached to the guest. Valid values
900
1103
for \s-1VIDEO\s0 are hypervisor specific, but some options for recent kvm are
901
1104
cirrus, vga, or vmvga (vmware).
902
 
.Sh "Miscellaneous Options"
 
1105
.SS "Miscellaneous Options"
903
1106
.IX Subsection "Miscellaneous Options"
904
1107
.IP "\-\-autostart" 2
905
1108
.IX Item "--autostart"
906
1109
Set the autostart flag for a domain. This causes the domain to be started
907
1110
on host boot up.
 
1111
.IP "\-\-print\-xml" 2
 
1112
.IX Item "--print-xml"
 
1113
If the requested guest has no install phase (\-\-import, \-\-boot), print the
 
1114
generated \s-1XML\s0 instead of defining the guest. By default this \s-1WILL\s0 do storage
 
1115
creation (can be disabled with \-\-dry\-run).
 
1116
.Sp
 
1117
If the guest has an install phase, you will need to use \-\-print\-step to
 
1118
specify exactly what \s-1XML\s0 output you want. This option implies \-\-quiet.
 
1119
.IP "\-\-print\-step" 2
 
1120
.IX Item "--print-step"
 
1121
Acts similarly to \-\-print\-xml, except requires specifying which install step
 
1122
to print \s-1XML\s0 for. Possible values are 1, 2, 3, or all. Stage 1 is typically
 
1123
booting from the install media, and stage 2 is typically the final guest
 
1124
config booting off hardisk. Stage 3 is only relevant for windows installs,
 
1125
which by default have a second install stage. This option implies \-\-quiet.
908
1126
.IP "\-\-noreboot" 2
909
1127
.IX Item "--noreboot"
910
1128
Prevent the domain from automatically rebooting after the install has
922
1140
.IX Item "--force"
923
1141
Prevent interactive prompts. If the intended prompt was a yes/no prompt, always
924
1142
say yes. For any other prompts, the application will exit.
 
1143
.IP "\-\-dry\-run" 2
 
1144
.IX Item "--dry-run"
 
1145
Proceed through the guest creation process, but do \s-1NOT\s0 create storage devices,
 
1146
change host device configuration, or actually teach libvirt about the guest.
 
1147
virt-install may still fetch install media, since this is required to
 
1148
properly detect the \s-1OS\s0 to install.
925
1149
.IP "\-\-prompt" 2
926
1150
.IX Item "--prompt"
927
1151
Specifically enable prompting for required information. Default prompting
930
1154
.IX Item "--check-cpu"
931
1155
Check that the number virtual cpus requested does not exceed physical CPUs and
932
1156
warn if they do.
 
1157
.IP "\-q, \-\-quiet" 2
 
1158
.IX Item "-q, --quiet"
 
1159
Only print fatal error messages.
933
1160
.IP "\-d, \-\-debug" 2
934
1161
.IX Item "-d, --debug"
935
1162
Print debugging information to the terminal when running the install process.
937
1164
even if this parameter is omitted.
938
1165
.SH "EXAMPLES"
939
1166
.IX Header "EXAMPLES"
940
 
Install a \s-1KVM\s0 guest (assuming proper host support), creating a new
941
 
storage file, virtual networking, booting from the host \s-1CDROM\s0, using
942
 
\&\s-1VNC\s0 server/viewer.
 
1167
Install a Fedora 13 \s-1KVM\s0 guest with virtio accelerated disk/network,
 
1168
creating a new 8GB storage file, installing from media in the hosts
 
1169
\&\s-1CDROM\s0 drive, auto launching a graphical \s-1VNC\s0 viewer
943
1170
.PP
944
 
.Vb 8
 
1171
.Vb 9
945
1172
\&  # virt\-install \e
946
1173
\&       \-\-connect qemu:///system \e
 
1174
\&       \-\-virt\-type kvm \e
947
1175
\&       \-\-name demo \e
948
1176
\&       \-\-ram 500 \e
949
 
\&       \-\-disk path=/var/lib/libvirt/images/demo.img,size=5 \e
950
 
\&       \-\-network network=default,model=virtio \e
951
 
\&       \-\-vnc \e
952
 
\&       \-\-cdrom /dev/cdrom
 
1177
\&       \-\-disk path=/var/lib/libvirt/images/demo.img,size=8 \e
 
1178
\&       \-\-graphics vnc \e
 
1179
\&       \-\-cdrom /dev/cdrom \e
 
1180
\&       \-\-os\-variant fedora13
953
1181
.Ve
954
1182
.PP
955
1183
Install a Fedora 9 plain \s-1QEMU\s0 guest, using \s-1LVM\s0 partition, virtual networking,
963
1191
\&       \-\-disk path=/dev/HostVG/DemoVM \e
964
1192
\&       \-\-network network=default \e
965
1193
\&       \-\-virt\-type qemu
966
 
\&       \-\-vnc \e
 
1194
\&       \-\-graphics vnc \e
967
1195
\&       \-\-os\-variant fedora9
968
1196
.Ve
969
1197
.PP
979
1207
\&       \-\-disk path=/dev/hdc \e
980
1208
\&       \-\-network bridge=eth1 \e
981
1209
\&       \-\-arch ppc64 \e
982
 
\&       \-\-sdl \e
 
1210
\&       \-\-graphics sdl \e
983
1211
\&       \-\-location http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os/
984
1212
.Ve
985
1213
.PP
992
1220
\&       \-\-ram 500 \e
993
1221
\&       \-\-nodisks \e
994
1222
\&       \-\-livecd \e
995
 
\&       \-\-vnc \e
 
1223
\&       \-\-graphics vnc \e
996
1224
\&       \-\-cdrom /root/fedora7live.iso
997
1225
.Ve
998
1226
.PP
1007
1235
\&       \-\-ram 500 \e
1008
1236
\&       \-\-file /var/lib/xen/images/demo.img \e
1009
1237
\&       \-\-file\-size 6 \e
1010
 
\&       \-\-nographics \e
 
1238
\&       \-\-graphics none \e
1011
1239
\&       \-\-location http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os/
1012
1240
.Ve
1013
1241
.PP
1021
1249
\&       \-\-disk /home/user/VMs/mydisk.img
1022
1250
\&       \-\-import
1023
1251
.Ve
 
1252
.PP
 
1253
Test a custom kernel/initrd using an existing disk image, manually
 
1254
specifying a serial device hooked to a \s-1PTY\s0 on the host machine.
 
1255
.PP
 
1256
.Vb 6
 
1257
\&  # virt\-install \e
 
1258
\&       \-\-name mykernel
 
1259
\&       \-\-ram 512
 
1260
\&       \-\-disk /home/user/VMs/mydisk.img
 
1261
\&       \-\-boot kernel=/tmp/mykernel,initrd=/tmp/myinitrd,kernel_args="console=ttyS0"
 
1262
\&       \-\-serial pty
 
1263
.Ve
1024
1264
.SH "AUTHORS"
1025
1265
.IX Header "AUTHORS"
1026
1266
Written by Daniel P. Berrange, Hugh Brock, Jeremy Katz, Cole Robinson and a