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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Jean-Louis Dupond
  • Date: 2010-05-05 03:32:42 UTC
  • mfrom: (1.3.13 sid)
  • Revision ID: james.westby@ubuntu.com-20100505033242-um6f6pjcc89i07m0
Tags: 0.500.3-1ubuntu1
* Merge from debian unstable. (LP: #590068)  Remaining changes:
  - debian/patches/9001_Ubuntu.patch:
     + Added lucid and maverick to OS list and enable virtio for it.
  - debian/patches/0003-Fix-patch-to-keyboard-configuration.patch: disable
    as the keyboard config in Ubuntu is still in /etc/default/console-setup
    and this was causing virt-manager to always default to a en-us
    keyboard. (LP: #524318)
  - debian/control: added acl package to depends. (LP: #533048)
  - Demote virt-viewer to Suggests, as it's in universe.
  - Recommends libvirt-bin (LP: #215084)
* debian/patches/9002-add-ca-keymap.patch: dropped, its now in upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
Number of virtual cpus to configure for the guest. Not all hypervisors support
104
104
SMP guests, in which case this argument will be silently ignored
105
105
 
106
 
=item --check-cpu
107
 
 
108
 
Check that the number virtual cpus requested does not exceed physical CPUs and
109
 
warn if they do.
110
 
 
111
106
=item --cpuset=CPUSET
112
107
 
113
108
Set which physical cpus the guest can use. C<CPUSET> is a comma separated list of numbers, which can also be specified in ranges. Example:
118
113
If the value 'auto' is passed, virt-install attempts to automatically determine
119
114
an optimal cpu pinning using NUMA data, if available.
120
115
 
121
 
=item  --os-type=OS_TYPE
122
 
 
123
 
Optimize the guest configuration for a type of operating system (ex. 'linux',
124
 
'windows'). This will attempt to pick the most suitable ACPI & APIC settings,
125
 
optimally supported mouse drivers, virtio, and generally accommodate other
126
 
operating system quirks.
127
 
 
128
 
By default, virt-install will attempt to auto detect this value from
129
 
the install media (currently only supported for URL installs). Autodetection
130
 
can be disabled with the special value 'none'
131
 
 
132
 
See C<--os-variant> for valid options.
133
 
 
134
 
=item --os-variant=OS_VARIANT
135
 
 
136
 
Further optimize the guest configuration for a specific operating system
137
 
variant (ex. 'fedora8', 'winxp'). This parameter is optional, and does not
138
 
require an C<--os-type> to be specified.
139
 
 
140
 
By default, virt-install will attempt to auto detect this value from
141
 
the install media (currently only supported for URL installs). Autodetection
142
 
can be disabled with the special value 'none'.
143
 
 
144
 
Valid values are:
145
 
 
146
 
::VARIANT VALUES::
147
 
 
148
 
=item --host-device=HOSTDEV
149
 
 
150
 
Attach a physical host device to the guest. HOSTDEV is a node device name
151
 
as used by libvirt (as shown by 'virsh nodedev-list').
152
 
 
153
 
=back
154
 
 
155
 
=head2 Full Virtualization specific options
156
 
 
157
 
Parameters specific only to fully virtualized guest installs.
158
 
 
159
 
=over 2
160
 
 
161
 
=item --sound
162
 
 
163
 
Attach a virtual audio device to the guest.
164
 
 
165
 
=item --parallel=CHAROPTS
166
 
 
167
 
=item --serial=CHAROPTS
168
 
 
169
 
Specifies a serial device to attach to the guest, with various options. The
170
 
general format of a serial string is
171
 
 
172
 
    --serial type,opt1=val1,opt2=val2,...
173
 
 
174
 
--serial and --parallel devices share all the same options, unless otherwise
175
 
noted. Some of the types of character device redirection are:
176
 
 
177
 
=over 4
178
 
 
179
 
=item B<--serial pty>
180
 
 
181
 
Psuedo TTY. The allocated pty will be listed in the running guests XML
182
 
description.
183
 
 
184
 
=item B<--serial dev,path=HOSTPATH>
185
 
 
186
 
Host device. For serial devices, this could be /dev/ttyS0. For parallel
187
 
devices, this could be /dev/parport0.
188
 
 
189
 
=item B<--serial file,path=FILENAME>
190
 
 
191
 
Write output to FILENAME.
192
 
 
193
 
=item B<--serial pipe,path=PIPEPATH>
194
 
 
195
 
Named pipe (see pipe(7))
196
 
 
197
 
=item B<--serial tcp,host=HOST:PORT,mode=MODE,protocol=PROTOCOL>
198
 
 
199
 
TCP net console. MODE is either 'bind' (wait for connections on HOST:PORT)
200
 
or 'connect' (send output to HOST:PORT), default is 'connect'. HOST defaults
201
 
to '127.0.0.1', but PORT is required. PROTOCOL can be either 'raw' or 'telnet'
202
 
(default 'raw'). If 'telnet', the port acts like a telnet server or client.
203
 
Some examples:
204
 
 
205
 
Connect to localhost, port 1234:
206
 
 
207
 
--serial tcp,host=:1234
208
 
 
209
 
Wait for connections on any address, port 4567:
210
 
 
211
 
--serial tcp,host=0.0.0.0:4567,mode=bind
212
 
 
213
 
Wait for telnet connection on localhost, port 2222. The user could then
214
 
connect interactively to this console via 'telnet localhost 2222':
215
 
 
216
 
--serial tcp,host=:2222,mode=bind,protocol=telnet
217
 
 
218
 
=item B<--serial udp,host=CONNECT_HOST:PORT,bind_port=BIND_HOST:BIND_PORT>
219
 
 
220
 
UDP net console. HOST:PORT is the destination to send output to (default
221
 
HOST is '127.0.0.1', PORT is required. BIND_HOST:PORT is the optional local
222
 
address to bind to (default BIND_HOST is 127.0.0.1, but is only set if
223
 
BIND_PORT is specified.) Some examples:
224
 
 
225
 
Send output to default syslog port (may need to edit /etc/rsyslog.conf
226
 
accordingly):
227
 
 
228
 
--serial udp,host=:514
229
 
 
230
 
Send output to remote host 192.168.10.20, port 4444 (this output can be
231
 
read on the remote host using 'nc -u -l 4444':
232
 
 
233
 
--serial udp,host=192.168.10.20:4444
234
 
 
235
 
=item B<--serial unix,path=UNIXPATH,mode=MODE>
236
 
 
237
 
Unix socket (see unix(7). MODE has similar behavior and defaults as 'tcp'.
238
 
 
239
 
=back
240
 
 
241
 
=item  --noapic
242
 
 
243
 
Override the OS type / variant to disables the APIC setting for fully
244
 
virtualized guest.
245
 
 
246
 
=item  --noacpi
247
 
 
248
 
Override the OS type / variant to disables the ACPI setting for fully
249
 
virtualized guest.
250
 
 
251
 
=back
252
 
 
253
 
=head2 Virtualization Type options
254
 
 
255
 
Options to override the default virtualization type choices.
256
 
 
257
 
=over 2
258
 
 
259
 
=item  -v, --hvm
260
 
 
261
 
Request the use of full virtualization, if both para & full virtualization are
262
 
available on the host. This parameter may not be available if connecting to a
263
 
Xen hypervisor on a machine without hardware virtualization support. This
264
 
parameter is implied if connecting to a QEMU based hypervisor.
265
 
 
266
 
=item  -p, --paravirt
267
 
 
268
 
This guest should be a paravirtualized guest. If the host supports both
269
 
para & full virtualization, and neither this parameter nor the C<--hvm>
270
 
are specified, this will be assumed.
271
 
 
272
 
=item --virt-type
273
 
 
274
 
The hypervisor to install on. Example choices are kvm, qemu, xen, or kqemu.
275
 
Availabile options are listed via 'virsh capabilities' in the <domain> tags.
276
 
 
277
 
=item  --accelerate
278
 
 
279
 
Prefer KVM or KQEMU (in that order) if installing a QEMU guest. This behavior
280
 
is now the default, and this option is deprecated. To install a plain QEMU
281
 
guest, use '--virt-type qemu'
282
 
 
283
 
=back
 
116
=item --description
 
117
 
 
118
Human readable text description of the virtual machine. This will be stored
 
119
in the guests XML configuration for access by other applications.
 
120
 
 
121
=item --security type=TYPE[,label=LABEL]
 
122
 
 
123
Configure domain security driver settings. Type can be either 'static' or
 
124
'dynamic'. 'static' configuration requires a security LABEL. Specifying
 
125
LABEL without TYPE implies static configuration.
 
126
 
 
127
=back
 
128
 
 
129
 
 
130
 
 
131
 
284
132
 
285
133
=head2 Installation Method options
286
134
 
364
212
Additional kernel command line arguments to pass to the installer when
365
213
performing a guest install from C<--location>.
366
214
 
 
215
=item  --os-type=OS_TYPE
 
216
 
 
217
Optimize the guest configuration for a type of operating system (ex. 'linux',
 
218
'windows'). This will attempt to pick the most suitable ACPI & APIC settings,
 
219
optimally supported mouse drivers, virtio, and generally accommodate other
 
220
operating system quirks.
 
221
 
 
222
By default, virt-install will attempt to auto detect this value from
 
223
the install media (currently only supported for URL installs). Autodetection
 
224
can be disabled with the special value 'none'
 
225
 
 
226
See C<--os-variant> for valid options.
 
227
 
 
228
=item --os-variant=OS_VARIANT
 
229
 
 
230
Further optimize the guest configuration for a specific operating system
 
231
variant (ex. 'fedora8', 'winxp'). This parameter is optional, and does not
 
232
require an C<--os-type> to be specified.
 
233
 
 
234
By default, virt-install will attempt to auto detect this value from
 
235
the install media (currently only supported for URL installs). Autodetection
 
236
can be disabled with the special value 'none'.
 
237
 
 
238
Valid values are:
 
239
 
 
240
::VARIANT VALUES::
 
241
 
367
242
=back
368
243
 
 
244
 
 
245
 
 
246
 
 
247
 
369
248
=head2 Storage Configuration
370
249
 
371
250
=over 2
481
360
 
482
361
=back
483
362
 
 
363
 
 
364
 
 
365
 
 
366
 
484
367
=head2 Networking Configuration
485
368
 
486
369
=over 2
555
438
 
556
439
=back
557
440
 
 
441
 
 
442
 
 
443
 
 
444
 
558
445
=head2 Graphics Configuration
559
446
 
560
447
If no graphics option is specified, C<virt-install> will default to --vnc
598
485
host to render the output. If the SDL window is closed the guest may
599
486
be unconditionally terminated.
600
487
 
601
 
=item --video=VIDEO
602
 
 
603
 
Specify what video device model will be attached to the guest. Valid values
604
 
for VIDEO are hypervisor specific, but some options for recent kvm are
605
 
cirrus, vga, or vmvga (vmware).
606
 
 
607
488
=item  --nographics
608
489
 
609
490
No graphical console will be allocated for the guest. Fully virtualized guests
621
502
 
622
503
=back
623
504
 
 
505
 
 
506
 
 
507
 
 
508
=head2 Virtualization Type options
 
509
 
 
510
Options to override the default virtualization type choices.
 
511
 
 
512
=over 2
 
513
 
 
514
=item  -v, --hvm
 
515
 
 
516
Request the use of full virtualization, if both para & full virtualization are
 
517
available on the host. This parameter may not be available if connecting to a
 
518
Xen hypervisor on a machine without hardware virtualization support. This
 
519
parameter is implied if connecting to a QEMU based hypervisor.
 
520
 
 
521
=item  -p, --paravirt
 
522
 
 
523
This guest should be a paravirtualized guest. If the host supports both
 
524
para & full virtualization, and neither this parameter nor the C<--hvm>
 
525
are specified, this will be assumed.
 
526
 
 
527
=item --virt-type
 
528
 
 
529
The hypervisor to install on. Example choices are kvm, qemu, xen, or kqemu.
 
530
Availabile options are listed via 'virsh capabilities' in the <domain> tags.
 
531
 
 
532
=item  --accelerate
 
533
 
 
534
Prefer KVM or KQEMU (in that order) if installing a QEMU guest. This behavior
 
535
is now the default, and this option is deprecated. To install a plain QEMU
 
536
guest, use '--virt-type qemu'
 
537
 
 
538
=item  --noapic
 
539
 
 
540
Override the OS type / variant to disables the APIC setting for fully
 
541
virtualized guest.
 
542
 
 
543
=item  --noacpi
 
544
 
 
545
Override the OS type / variant to disables the ACPI setting for fully
 
546
virtualized guest.
 
547
 
 
548
=back
 
549
 
 
550
 
 
551
 
 
552
 
 
553
 
 
554
=head2 Device Options
 
555
 
 
556
=over 2
 
557
 
 
558
=item --host-device=HOSTDEV
 
559
 
 
560
Attach a physical host device to the guest. Some example values for HOSTDEV:
 
561
 
 
562
=over 2
 
563
 
 
564
=item B<--host-device pci_0000_00_1b_0>
 
565
 
 
566
A node device name via libvirt, as shown by 'virsh nodedev-list'
 
567
 
 
568
=item B<--host-device 001.003>
 
569
 
 
570
USB by bus, device (via lsusb).
 
571
 
 
572
=item B<--host-device 0x1234:0x5678>
 
573
 
 
574
USB by vendor, product (via lsusb).
 
575
 
 
576
=item B<--host-device 1f.01.02>
 
577
 
 
578
PCI device (via lspci).
 
579
 
 
580
=back
 
581
 
 
582
=item --soundhw MODEL
 
583
 
 
584
Attach a virtual audio device to the guest. MODEL specifies the emulated
 
585
sound card model. Possible values are ac97, es1370, sb16, pcspk, or default.
 
586
'default' willl be AC97 if the hypervisor supports it, otherwise it will be
 
587
ES1370.
 
588
 
 
589
This deprecates the old boolean --sound model (which still works the same
 
590
as a single '--soundhw default')
 
591
 
 
592
=item --watchdog MODEL[,action=ACTION]
 
593
 
 
594
Attach a virtual hardware watchdog device to the guest. This requires a
 
595
daemon and device driver in the guest. The watchdog fires a signal when
 
596
the virtual machine appears to hung. ACTION specifies what libvirt will do
 
597
when the watchdog fires. Values are
 
598
 
 
599
=over 4
 
600
 
 
601
=item B<reset>
 
602
 
 
603
Forcefully reset the guest (the default)
 
604
 
 
605
=item B<poweroff>
 
606
 
 
607
Forcefully power off the guest
 
608
 
 
609
=item B<pause>
 
610
 
 
611
Pause the guest
 
612
 
 
613
=item B<none>
 
614
 
 
615
Do nothing
 
616
 
 
617
=item B<shutdown>
 
618
 
 
619
Gracefully shutdown the guest (not recommended, since a hung guest probably
 
620
won't respond to a graceful shutdown)
 
621
 
 
622
=back
 
623
 
 
624
MODEL is the emulated device model: either i6300esb (the default) or ib700.
 
625
Some examples:
 
626
 
 
627
Use the recommended settings:
 
628
 
 
629
--watchdog default
 
630
 
 
631
Use the i6300esb with the 'poweroff' action
 
632
 
 
633
--watchdog i6300esb,action=poweroff
 
634
 
 
635
=item --parallel=CHAROPTS
 
636
 
 
637
=item --serial=CHAROPTS
 
638
 
 
639
Specifies a serial device to attach to the guest, with various options. The
 
640
general format of a serial string is
 
641
 
 
642
    --serial type,opt1=val1,opt2=val2,...
 
643
 
 
644
--serial and --parallel devices share all the same options, unless otherwise
 
645
noted. Some of the types of character device redirection are:
 
646
 
 
647
=over 4
 
648
 
 
649
=item B<--serial pty>
 
650
 
 
651
Pseudo TTY. The allocated pty will be listed in the running guests XML
 
652
description.
 
653
 
 
654
=item B<--serial dev,path=HOSTPATH>
 
655
 
 
656
Host device. For serial devices, this could be /dev/ttyS0. For parallel
 
657
devices, this could be /dev/parport0.
 
658
 
 
659
=item B<--serial file,path=FILENAME>
 
660
 
 
661
Write output to FILENAME.
 
662
 
 
663
=item B<--serial pipe,path=PIPEPATH>
 
664
 
 
665
Named pipe (see pipe(7))
 
666
 
 
667
=item B<--serial tcp,host=HOST:PORT,mode=MODE,protocol=PROTOCOL>
 
668
 
 
669
TCP net console. MODE is either 'bind' (wait for connections on HOST:PORT)
 
670
or 'connect' (send output to HOST:PORT), default is 'connect'. HOST defaults
 
671
to '127.0.0.1', but PORT is required. PROTOCOL can be either 'raw' or 'telnet'
 
672
(default 'raw'). If 'telnet', the port acts like a telnet server or client.
 
673
Some examples:
 
674
 
 
675
Connect to localhost, port 1234:
 
676
 
 
677
--serial tcp,host=:1234
 
678
 
 
679
Wait for connections on any address, port 4567:
 
680
 
 
681
--serial tcp,host=0.0.0.0:4567,mode=bind
 
682
 
 
683
Wait for telnet connection on localhost, port 2222. The user could then
 
684
connect interactively to this console via 'telnet localhost 2222':
 
685
 
 
686
--serial tcp,host=:2222,mode=bind,protocol=telnet
 
687
 
 
688
=item B<--serial udp,host=CONNECT_HOST:PORT,bind_port=BIND_HOST:BIND_PORT>
 
689
 
 
690
UDP net console. HOST:PORT is the destination to send output to (default
 
691
HOST is '127.0.0.1', PORT is required. BIND_HOST:PORT is the optional local
 
692
address to bind to (default BIND_HOST is 127.0.0.1, but is only set if
 
693
BIND_PORT is specified.) Some examples:
 
694
 
 
695
Send output to default syslog port (may need to edit /etc/rsyslog.conf
 
696
accordingly):
 
697
 
 
698
--serial udp,host=:514
 
699
 
 
700
Send output to remote host 192.168.10.20, port 4444 (this output can be
 
701
read on the remote host using 'nc -u -l 4444':
 
702
 
 
703
--serial udp,host=192.168.10.20:4444
 
704
 
 
705
=item B<--serial unix,path=UNIXPATH,mode=MODE>
 
706
 
 
707
Unix socket (see unix(7). MODE has similar behavior and defaults as 'tcp'.
 
708
 
 
709
=back
 
710
 
 
711
=item --video=VIDEO
 
712
 
 
713
Specify what video device model will be attached to the guest. Valid values
 
714
for VIDEO are hypervisor specific, but some options for recent kvm are
 
715
cirrus, vga, or vmvga (vmware).
 
716
 
 
717
=back
 
718
 
 
719
 
 
720
 
 
721
 
 
722
 
624
723
=head2 Miscellaneous Options
625
724
 
626
725
=over 2
627
726
 
628
 
=item  -d, --debug
 
727
=item --autostart
629
728
 
630
 
Print debugging information to the terminal when running the install process.
631
 
The debugging information is also stored in C<$HOME/.virtinst/virt-install.log>
632
 
even if this parameter is omitted.
 
729
Set the autostart flag for a domain. This causes the domain to be started
 
730
on host boot up.
633
731
 
634
732
=item --noreboot
635
733
 
656
754
Specifically enable prompting for required information. Default prompting
657
755
is off (as of virtinst 0.400.0)
658
756
 
 
757
=item --check-cpu
 
758
 
 
759
Check that the number virtual cpus requested does not exceed physical CPUs and
 
760
warn if they do.
 
761
 
 
762
=item  -d, --debug
 
763
 
 
764
Print debugging information to the terminal when running the install process.
 
765
The debugging information is also stored in C<$HOME/.virtinst/virt-install.log>
 
766
even if this parameter is omitted.
 
767
 
659
768
=back
660
769
 
661
770
=head1 EXAMPLES
662
771
 
663
772
Install a KVM guest (assuming proper host support), creating a new
664
 
+storage file, virtual networking, booting from the host CDROM, using
665
 
+VNC server/viewer.
 
773
storage file, virtual networking, booting from the host CDROM, using
 
774
VNC server/viewer.
666
775
 
667
776
  # virt-install \
668
777
       --connect qemu:///system \