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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Laurent Léonard
  • Date: 2011-01-29 21:41:21 UTC
  • mto: (1.6.3 sid)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: james.westby@ubuntu.com-20110129214121-pjuxf2xz08l5zqew
Tags: upstream-0.500.5
Import upstream version 0.500.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
Request a non-native CPU architecture for the guest virtual machine.
94
94
If omitted, the host CPU architecture will be used in the guest.
95
95
 
 
96
=item --machine=MACHINE
 
97
 
 
98
The machine type to emulate. This will typically not need to be specified
 
99
for Xen or KVM, but is useful for choosing machine times of more exotic
 
100
architectures.
 
101
 
96
102
=item -u UUID, --uuid=UUID
97
103
 
98
104
UUID for the guest; if none is given a random UUID will be generated. If you
100
106
to be unique across the entire data center, and indeed world. Bear this in
101
107
mind if manually specifying a UUID
102
108
 
103
 
=item --vcpus=VCPUS
104
 
 
105
 
Number of virtual cpus to configure for the guest. Not all hypervisors support
106
 
SMP guests, in which case this argument will be silently ignored
 
109
=item --vcpus=VCPUS[,maxvcpus=MAX][,sockets=#][,cores=#][,threads=#]
 
110
 
 
111
Number of virtual cpus to configure for the guest. If 'maxvcpus' is specified,
 
112
the guest will be able to hotplug up to MAX vcpus while the guest is running,
 
113
but will startup with VCPUS.
 
114
 
 
115
CPU topology can additionally be specified with sockets, cores, and threads.
 
116
If values are omitted, the rest will be autofilled prefering sockets over
 
117
cores over threads.
107
118
 
108
119
=item --cpuset=CPUSET
109
120
 
115
126
If the value 'auto' is passed, virt-install attempts to automatically determine
116
127
an optimal cpu pinning using NUMA data, if available.
117
128
 
 
129
=item --cpu MODEL[,+feature][,-feature][,match=MATCH][,vendor=VENDOR]
 
130
 
 
131
Configure the CPU model and CPU features exposed to the guest. The only
 
132
required value is MODEL, which is a valid CPU model as listed in libvirt's
 
133
cpu_map.xml file.
 
134
 
 
135
Specific CPU features can be specified in a number of ways: using one of
 
136
libvirt's feature policy values force, require, optional, disable, or forbid,
 
137
or with the shorthand '+feature' and '-feature', which equal 'force=feature'
 
138
and 'disable=feature' respectively
 
139
 
 
140
Some examples:
 
141
 
 
142
=over 2
 
143
 
 
144
=item B<--cpu core2duo,+x2apic,disable=vmx>
 
145
 
 
146
Expose the core2duo CPU model, force enable x2apic, but do not expose vmx
 
147
 
 
148
=item B<--cpu host>
 
149
 
 
150
Expose the host CPUs configuration to the guest. This enables the guest to
 
151
take advantage of many of the host CPUs features (better performance), but
 
152
may cause issues if migrating the guest to a host without an identical CPU.
 
153
 
 
154
=back
 
155
 
118
156
=item --description
119
157
 
120
158
Human readable text description of the virtual machine. This will be stored
251
289
 
252
290
=over 4
253
291
 
 
292
=item windows
 
293
 
 
294
=over 4
 
295
 
 
296
=item win7
 
297
 
 
298
Microsoft Windows 7
 
299
 
 
300
=item vista
 
301
 
 
302
Microsoft Windows Vista
 
303
 
 
304
=item winxp64
 
305
 
 
306
Microsoft Windows XP (x86_64)
 
307
 
 
308
=item winxp
 
309
 
 
310
Microsoft Windows XP
 
311
 
 
312
=item win2k
 
313
 
 
314
Microsoft Windows 2000
 
315
 
 
316
=item win2k8
 
317
 
 
318
Microsoft Windows Server 2008
 
319
 
 
320
=item win2k3
 
321
 
 
322
Microsoft Windows Server 2003
 
323
 
 
324
=back
 
325
 
 
326
=item unix
 
327
 
 
328
=over 4
 
329
 
 
330
=item openbsd4
 
331
 
 
332
OpenBSD 4.x
 
333
 
 
334
=item freebsd8
 
335
 
 
336
FreeBSD 8.x
 
337
 
 
338
=item freebsd7
 
339
 
 
340
FreeBSD 7.x
 
341
 
 
342
=item freebsd6
 
343
 
 
344
FreeBSD 6.x
 
345
 
 
346
=back
 
347
 
 
348
=item solaris
 
349
 
 
350
=over 4
 
351
 
 
352
=item solaris9
 
353
 
 
354
Sun Solaris 9
 
355
 
 
356
=item solaris10
 
357
 
 
358
Sun Solaris 10
 
359
 
 
360
=item opensolaris
 
361
 
 
362
Sun OpenSolaris
 
363
 
 
364
=back
 
365
 
 
366
=item other
 
367
 
 
368
=over 4
 
369
 
 
370
=item netware6
 
371
 
 
372
Novell Netware 6
 
373
 
 
374
=item netware5
 
375
 
 
376
Novell Netware 5
 
377
 
 
378
=item netware4
 
379
 
 
380
Novell Netware 4
 
381
 
 
382
=item msdos
 
383
 
 
384
MS-DOS
 
385
 
 
386
=item generic
 
387
 
 
388
Generic
 
389
 
 
390
=back
 
391
 
254
392
=item linux
255
393
 
256
394
=over 4
257
395
 
 
396
=item debiansqueeze
 
397
 
 
398
Debian Squeeze
 
399
 
 
400
=item debianlenny
 
401
 
 
402
Debian Lenny
 
403
 
258
404
=item debianetch
259
405
 
260
406
Debian Etch
261
407
 
262
 
=item debianlenny
263
 
 
264
 
Debian Lenny
265
 
 
266
 
=item debiansqueeze
267
 
 
268
 
Debian Squeeze
 
408
=item fedora14
 
409
 
 
410
Fedora 14
 
411
 
 
412
=item fedora13
 
413
 
 
414
Fedora 13
 
415
 
 
416
=item fedora12
 
417
 
 
418
Fedora 12
 
419
 
 
420
=item fedora11
 
421
 
 
422
Fedora 11
 
423
 
 
424
=item fedora10
 
425
 
 
426
Fedora 10
 
427
 
 
428
=item fedora9
 
429
 
 
430
Fedora 9
 
431
 
 
432
=item fedora8
 
433
 
 
434
Fedora 8
 
435
 
 
436
=item fedora7
 
437
 
 
438
Fedora 7
 
439
 
 
440
=item fedora6
 
441
 
 
442
Fedora Core 6
269
443
 
270
444
=item fedora5
271
445
 
272
446
Fedora Core 5
273
447
 
274
 
=item fedora6
275
 
 
276
 
Fedora Core 6
277
 
 
278
 
=item fedora7
279
 
 
280
 
Fedora 7
281
 
 
282
 
=item fedora8
283
 
 
284
 
Fedora 8
285
 
 
286
 
=item fedora9
287
 
 
288
 
Fedora 9
289
 
 
290
 
=item fedora10
291
 
 
292
 
Fedora 10
293
 
 
294
 
=item fedora11
295
 
 
296
 
Fedora 11
297
 
 
298
 
=item fedora12
299
 
 
300
 
Fedora 12
301
 
 
302
 
=item fedora13
303
 
 
304
 
Fedora 13
305
 
 
306
 
=item fedora14
307
 
 
308
 
Fedora 14
309
 
 
310
 
=item generic24
311
 
 
312
 
Generic 2.4.x kernel
313
 
 
314
 
=item generic26
315
 
 
316
 
Generic 2.6.x kernel
317
 
 
318
 
=item virtio26
319
 
 
320
 
Generic 2.6.25 or later kernel with virtio
 
448
=item mes5.1
 
449
 
 
450
Mandriva Enterprise Server 5.1 and later
 
451
 
 
452
=item mes5
 
453
 
 
454
Mandriva Enterprise Server 5.0
 
455
 
 
456
=item mandriva2010
 
457
 
 
458
Mandriva Linux 2010 and later
321
459
 
322
460
=item mandriva2009
323
461
 
324
462
Mandriva Linux 2009 and earlier
325
463
 
326
 
=item mandriva2010
327
 
 
328
 
Mandriva Linux 2010 and later
329
 
 
330
 
=item mes5
331
 
 
332
 
Mandriva Enterprise Server 5.0
333
 
 
334
 
=item mes5.1
335
 
 
336
 
Mandriva Enterprise Server 5.1 and later
 
464
=item rhel6
 
465
 
 
466
Red Hat Enterprise Linux 6
 
467
 
 
468
=item rhel5.4
 
469
 
 
470
Red Hat Enterprise Linux 5.4 or later
 
471
 
 
472
=item rhel5
 
473
 
 
474
Red Hat Enterprise Linux 5
 
475
 
 
476
=item rhel4
 
477
 
 
478
Red Hat Enterprise Linux 4
 
479
 
 
480
=item rhel3
 
481
 
 
482
Red Hat Enterprise Linux 3
337
483
 
338
484
=item rhel2.1
339
485
 
340
486
Red Hat Enterprise Linux 2.1
341
487
 
342
 
=item rhel3
343
 
 
344
 
Red Hat Enterprise Linux 3
345
 
 
346
 
=item rhel4
347
 
 
348
 
Red Hat Enterprise Linux 4
349
 
 
350
 
=item rhel5
351
 
 
352
 
Red Hat Enterprise Linux 5
353
 
 
354
 
=item rhel5.4
355
 
 
356
 
Red Hat Enterprise Linux 5.4 or later
357
 
 
358
 
=item rhel6
359
 
 
360
 
Red Hat Enterprise Linux 6
 
488
=item sles11
 
489
 
 
490
Suse Linux Enterprise Server 11
361
491
 
362
492
=item sles10
363
493
 
364
494
Suse Linux Enterprise Server
365
495
 
366
 
=item sles11
367
 
 
368
 
Suse Linux Enterprise Server 11
 
496
=item ubuntumaverick
 
497
 
 
498
Ubuntu 10.10 (Maverick Meerkat)
 
499
 
 
500
=item ubuntulucid
 
501
 
 
502
Ubuntu 10.4 (Lucid Lynx)
 
503
 
 
504
=item ubuntukarmic
 
505
 
 
506
Ubuntu 9.10 (Karmic Koala)
 
507
 
 
508
=item ubuntujaunty
 
509
 
 
510
Ubuntu 9.04 (Jaunty Jackalope)
 
511
 
 
512
=item ubuntuintrepid
 
513
 
 
514
Ubuntu 8.10 (Intrepid Ibex)
369
515
 
370
516
=item ubuntuhardy
371
517
 
372
518
Ubuntu 8.04 LTS (Hardy Heron)
373
519
 
374
 
=item ubuntuintrepid
375
 
 
376
 
Ubuntu 8.10 (Intrepid Ibex)
377
 
 
378
 
=item ubuntujaunty
379
 
 
380
 
Ubuntu 9.04 (Jaunty Jackalope)
381
 
 
382
 
=item ubuntukarmic
383
 
 
384
 
Ubuntu 9.10 (Karmic Koala)
385
 
 
386
 
=item ubuntulucid
387
 
 
388
 
Ubuntu 10.4 (Lucid Lynx)
389
 
 
390
 
=back
391
 
 
392
 
=item other
393
 
 
394
 
=over 4
395
 
 
396
 
=item generic
397
 
 
398
 
Generic
399
 
 
400
 
=item msdos
401
 
 
402
 
MS-DOS
403
 
 
404
 
=item netware4
405
 
 
406
 
Novell Netware 4
407
 
 
408
 
=item netware5
409
 
 
410
 
Novell Netware 5
411
 
 
412
 
=item netware6
413
 
 
414
 
Novell Netware 6
415
 
 
416
 
=back
417
 
 
418
 
=item solaris
419
 
 
420
 
=over 4
421
 
 
422
 
=item opensolaris
423
 
 
424
 
Sun OpenSolaris
425
 
 
426
 
=item solaris10
427
 
 
428
 
Sun Solaris 10
429
 
 
430
 
=item solaris9
431
 
 
432
 
Sun Solaris 9
433
 
 
434
 
=back
435
 
 
436
 
=item unix
437
 
 
438
 
=over 4
439
 
 
440
 
=item freebsd6
441
 
 
442
 
FreeBSD 6.x
443
 
 
444
 
=item freebsd7
445
 
 
446
 
FreeBSD 7.x
447
 
 
448
 
=item freebsd8
449
 
 
450
 
FreeBSD 8.x
451
 
 
452
 
=item openbsd4
453
 
 
454
 
OpenBSD 4.x
455
 
 
456
 
=back
457
 
 
458
 
=item windows
459
 
 
460
 
=over 4
461
 
 
462
 
=item vista
463
 
 
464
 
Microsoft Windows Vista
465
 
 
466
 
=item win2k
467
 
 
468
 
Microsoft Windows 2000
469
 
 
470
 
=item win2k3
471
 
 
472
 
Microsoft Windows 2003
473
 
 
474
 
=item win2k8
475
 
 
476
 
Microsoft Windows 2008
477
 
 
478
 
=item win7
479
 
 
480
 
Microsoft Windows 7
481
 
 
482
 
=item winxp
483
 
 
484
 
Microsoft Windows XP (x86)
485
 
 
486
 
=item winxp64
487
 
 
488
 
Microsoft Windows XP (x86_64)
 
520
=item virtio26
 
521
 
 
522
Generic 2.6.25 or later kernel with virtio
 
523
 
 
524
=item generic26
 
525
 
 
526
Generic 2.6.x kernel
 
527
 
 
528
=item generic24
 
529
 
 
530
Generic 2.4.x kernel
489
531
 
490
532
=back
491
533
 
752
794
 
753
795
=over 2
754
796
 
755
 
=item  --vnc
 
797
=item --graphics TYPE,opt1=arg1,opt2=arg2,...
 
798
 
 
799
Specifies the graphical display configuration. This does not configure any
 
800
virtual hardware, just how the guest's graphical display can be accessed.
 
801
Typically the user does not need to specify this option, virt-install will
 
802
try and choose a useful default, and launch a suitable connection.
 
803
 
 
804
General format of a graphical string is
 
805
 
 
806
    --graphics TYPE,opt1=arg1,opt2=arg2,...
 
807
 
 
808
For example:
 
809
 
 
810
    --graphics vnc,password=foobar
 
811
 
 
812
The supported options are:
 
813
 
 
814
=over 4
 
815
 
 
816
=item B<type>
 
817
 
 
818
The display type. This is one of:
 
819
 
 
820
vnc
756
821
 
757
822
Setup a virtual console in the guest and export it as a VNC server in
758
 
the host. Unless the C<--vncport> parameter is also provided, the VNC
 
823
the host. Unless the C<port> parameter is also provided, the VNC
759
824
server will run on the first free port number at 5900 or above. The
760
825
actual VNC display allocated can be obtained using the C<vncdisplay>
761
826
command to C<virsh> (or L<virt-viewer(1)> can be used which handles this
762
827
detail for the use).
763
828
 
764
 
=item  --vncport=VNCPORT
765
 
 
766
 
Request a permanent, statically assigned port number for the guest VNC
767
 
console. Use of this option is discouraged as other guests may automatically
768
 
choose to run on this port causing a clash.
769
 
 
770
 
=item --vnclisten=VNCLISTEN
771
 
 
772
 
Address to listen on for VNC connections. Default is typically 127.0.0.1
 
829
sdl
 
830
 
 
831
Setup a virtual console in the guest and display an SDL window in the
 
832
host to render the output. If the SDL window is closed the guest may
 
833
be unconditionally terminated.
 
834
 
 
835
spice
 
836
 
 
837
Export the guest's console using the Spice protocol. Spice allows advanced
 
838
features like audio and USB device streaming, as well as improved graphical
 
839
performance.
 
840
 
 
841
none
 
842
 
 
843
No graphical console will be allocated for the guest. Fully virtualized guests
 
844
(Xen FV or QEmu/KVM) will need to have a text console configured on the first
 
845
serial port in the guest (this can be done via the --extra-args option). Xen
 
846
PV will set this up automatically. The command 'virsh console NAME' can be
 
847
used to connect to the serial device.
 
848
 
 
849
=item B<port>
 
850
 
 
851
Request a permanent, statically assigned port number for the guest
 
852
console. This is used by 'vnc' and 'spice'
 
853
 
 
854
=item B<tlsport>
 
855
 
 
856
Specify the spice tlsport.
 
857
 
 
858
=item B<listen>
 
859
 
 
860
Address to listen on for VNC/Spice connections. Default is typically 127.0.0.1
773
861
(localhost only), but some hypervisors allow changing this globally (for
774
862
example, the qemu driver default can be changed in /etc/libvirt/qemu.conf).
775
 
Use 0.0.0.0 to allow access from other machines.
 
863
Use 0.0.0.0 to allow access from other machines. This is use by 'vnc' and
 
864
'spice'
776
865
 
777
 
=item  -k KEYMAP, --keymap=KEYMAP
 
866
=item B<keymap>
778
867
 
779
868
Request that the virtual VNC console be configured to run with a specific
780
869
keyboard layout. If the special value 'local' is specified, virt-install
781
870
will attempt to configure to use the same keymap as the local system. A value
782
871
of 'none' specifically defers to the hypervisor. Default behavior is
783
 
hypervisor specific, but typically is the same as 'local'.
 
872
hypervisor specific, but typically is the same as 'local'. This is used
 
873
by 'vnc'
 
874
 
 
875
=item B<password>
 
876
 
 
877
Request a VNC password, required at connection time. Beware, this info may
 
878
end up in virt-install log files, so don't use an important password. This
 
879
is used by 'vnc' and 'spice'
 
880
 
 
881
=item B<passwordvalidto>
 
882
 
 
883
Set an expiration date for password. After the date/time has passed,
 
884
all new graphical connections are denyed until a new password is set.
 
885
This is used by 'vnc' and 'spice'
 
886
 
 
887
The format for this value is YYYY-MM-DDTHH:MM:SS, for example
 
888
2011-04-01T14:30:15
 
889
 
 
890
=back
 
891
 
 
892
=item  --vnc
 
893
 
 
894
This option is deprecated in favor of C<--graphics vnc,...>
 
895
 
 
896
=item  --vncport=VNCPORT
 
897
 
 
898
This option is deprecated in favor of C<--graphics vnc,port=PORT,...>
 
899
 
 
900
=item --vnclisten=VNCLISTEN
 
901
 
 
902
This option is deprecated in favor of C<--graphics vnc,listen=LISTEN,...>
 
903
 
 
904
=item  -k KEYMAP, --keymap=KEYMAP
 
905
 
 
906
This option is deprecated in favor of C<--graphics vnc,keymap=KEYMAP,...>
784
907
 
785
908
=item  --sdl
786
909
 
787
 
Setup a virtual console in the guest and display an SDL window in the
788
 
host to render the output. If the SDL window is closed the guest may
789
 
be unconditionally terminated.
 
910
This option is deprecated in favor of C<--graphics sdl,...>
790
911
 
791
912
=item  --nographics
792
913
 
793
 
No graphical console will be allocated for the guest. Fully virtualized guests
794
 
(Xen FV or QEmu/KVM) will need to have a text console configured on the first
795
 
serial port in the guest (this can be done via the --extra-args option). Xen
796
 
PV will set this up automatically. The command 'virsh console NAME' can be
797
 
used to connect to the serial device.
 
914
This option is deprecated in favor of C<--graphics none>
798
915
 
799
916
=item  --noautoconsole
800
917
 
1079
1196
Set the autostart flag for a domain. This causes the domain to be started
1080
1197
on host boot up.
1081
1198
 
 
1199
=item --print-xml
 
1200
 
 
1201
If the requested guest has no install phase (--import, --boot), print the
 
1202
generated XML instead of defining the guest. By default this WILL do storage
 
1203
creation (can be disabled with --dry-run).
 
1204
 
 
1205
If the guest has an install phase, you will need to use --print-step to
 
1206
specify exactly what XML output you want. This option implies --quiet.
 
1207
 
 
1208
=item --print-step
 
1209
 
 
1210
Acts similarly to --print-xml, except requires specifying which install step
 
1211
to print XML for. Possible values are 1, 2, 3, or all. Stage 1 is typically
 
1212
booting from the install media, and stage 2 is typically the final guest
 
1213
config booting off hardisk. Stage 3 is only relevant for windows installs,
 
1214
which by default have a second install stage. This option implies --quiet.
 
1215
 
1082
1216
=item --noreboot
1083
1217
 
1084
1218
Prevent the domain from automatically rebooting after the install has
1099
1233
Prevent interactive prompts. If the intended prompt was a yes/no prompt, always
1100
1234
say yes. For any other prompts, the application will exit.
1101
1235
 
 
1236
=item --dry-run
 
1237
 
 
1238
Proceed through the guest creation process, but do NOT create storage devices,
 
1239
change host device configuration, or actually teach libvirt about the guest.
 
1240
virt-install may still fetch install media, since this is required to
 
1241
properly detect the OS to install.
 
1242
 
1102
1243
=item --prompt
1103
1244
 
1104
1245
Specifically enable prompting for required information. Default prompting
1109
1250
Check that the number virtual cpus requested does not exceed physical CPUs and
1110
1251
warn if they do.
1111
1252
 
 
1253
=item -q, --quiet
 
1254
 
 
1255
Only print fatal error messages.
 
1256
 
1112
1257
=item  -d, --debug
1113
1258
 
1114
1259
Print debugging information to the terminal when running the install process.
1129
1274
       --name demo \
1130
1275
       --ram 500 \
1131
1276
       --disk path=/var/lib/libvirt/images/demo.img,size=8 \
1132
 
       --vnc \
 
1277
       --graphics vnc \
1133
1278
       --cdrom /dev/cdrom \
1134
1279
       --os-variant fedora13
1135
1280
 
1143
1288
       --disk path=/dev/HostVG/DemoVM \
1144
1289
       --network network=default \
1145
1290
       --virt-type qemu
1146
 
       --vnc \
 
1291
       --graphics vnc \
1147
1292
       --os-variant fedora9
1148
1293
 
1149
1294
Install a guest with a real partition, with the default QEMU hypervisor for
1157
1302
       --disk path=/dev/hdc \
1158
1303
       --network bridge=eth1 \
1159
1304
       --arch ppc64 \
1160
 
       --sdl \
 
1305
       --graphics sdl \
1161
1306
       --location http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os/
1162
1307
 
1163
1308
Run a Live CD image under Xen fullyvirt, in diskless environment
1168
1313
       --ram 500 \
1169
1314
       --nodisks \
1170
1315
       --livecd \
1171
 
       --vnc \
 
1316
       --graphics vnc \
1172
1317
       --cdrom /root/fedora7live.iso
1173
1318
 
1174
1319
Install a paravirtualized Xen guest, 500 MB of RAM, a 5 GB of disk, and
1181
1326
       --ram 500 \
1182
1327
       --file /var/lib/xen/images/demo.img \
1183
1328
       --file-size 6 \
1184
 
       --nographics \
 
1329
       --graphics none \
1185
1330
       --location http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os/
1186
1331
 
1187
1332
Create a guest from an existing disk image 'mydisk.img' using defaults for