Xen Command Line and Boot Options: Difference between revisions

From Xen
Jump to navigationJump to search
m (Removed superfluous <nowiki></nowiki> tag pairs.)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Documentation regarding Xen hypervisor command line options is now maintained directly in the Xen source tree.
<!-- MoinMoin name: XenHypervisorBootOptions -->
Please see [http://xenbits.xen.org/docs/unstable/misc/xen-command-line.html Xen Hypervisor Command Line Options].
<!-- Comment: -->
<!-- WikiMedia name: XenHypervisorBootOptions -->
<!-- Page revision: 00000039 -->
<!-- Original date: Wed Oct 26 19:02:55 2011 (1319655775000000) -->

__NOTOC__
These are the Xen Hypervisor boot-time options you can specify in grub.conf for xen.gz.

'''''This document is still work in progress and therefore not complete'''''
{| border="1" cellpadding="2" cellspacing="0"
|bgcolor="#cccccc" width="250px" style="vertical-align:top; " | '''Boot time option'''
|bgcolor="#cccccc" width="250px" style="vertical-align:top; " | '''Description'''
|-
|<width="250px" style="vertical-align:top; ">| '''noreboot'''
|<width="300px" style="vertical-align:top; ">|Don’t reboot the machine automatically on errors. This is useful to catch debug output if you aren’t catching console messages via the serial line.
|-
|<width="250px" style="vertical-align:top; ">| '''nosmp'''
|<width="300px" style="vertical-align:top; ">|Disable SMP support. This option is implied by ‘ignorebiostables’.
|-
|<width="250px" style="vertical-align:top; ">| '''watchdog'''
|<width="300px" style="vertical-align:top; ">|Enable NMI watchdog which can report certain failures.
|-
|<width="250px" style="vertical-align:top; ">| '''noirqbalance'''
|<width="300px" style="vertical-align:top; ">|Disable software IRQ balancing and affinity. This can be used on systems such as Dell 1850/2850 that have workarounds in hardware for IRQrouting issues.
|-
|<width="250px" style="vertical-align:top; ">|'''badpage=<page number>,<page number>, . . .'''
|<width="300px" style="vertical-align:top; ">|Specify a list of pages not to be allocated for use because they contain bad bytes. For example, if your memory tester says that byte 0x12345678 is bad, you would place ‘badpage=0x12345’ on Xen’s command line.
|-
|<width="250px" style="vertical-align:top; ">| '''serial_tx_buffer=<size>'''
|<width="300px" style="vertical-align:top; ">|Size of serial transmit buffers. Default is 16kB.
|-
|<width="250px" style="vertical-align:top; ">|'''com1=<baud>,DPS,<io base>,<irq> com2=<baud>,DPS,<io base>,<irq>'''
|<width="300px" style="vertical-align:top; ">|Xen supports up to two 16550-compatible serial ports. For example: ‘com1=9600, 8n1, 0x408, 5’ maps COM1 to a 9600-baud port, 8 data bits, no parity, 1 stop bit, I/O port base 0x408, IRQ 5 (use 0 if you want to poll instead of waiting for an IRQ). If some configuration options are standard (e.g., I/O base and IRQ), then only a prefix of the full configuration string need be specified. If the baud rate is pre-configured (e.g., by the bootloader) then you can specify ‘auto’ in place of a numeric baud rate. Note that in Xen 4.2 you can specify 'pci' or 'amt' instead of the <io base>,<irq>' so that Xen can auto detect.
|-
|<width="250px" style="vertical-align:top; ">| '''console=<specifier list>'''
|<width="300px" style="vertical-align:top; ">|Specify the destination for Xen console I/O. This is a commaseparated list of, for example: '''vga '''Use VGA console (until domain 0 boots, unless '''vga=...keep '''is specified). '''com1 '''Use serial port com1. '''com2H '''Use serial port com2. Transmitted chars will have the MSB set. Received chars must have MSB set. '''com2L '''Use serial port com2. Transmitted chars will have the MSB cleared. Received chars must have MSB cleared. The latter two examples allow a single port to be shared by two subsystems (e.g. console and debugger). Sharing is controlled by MSB of each transmitted/ received character. [NB. Default for this option is ‘com1,vga’]
|-
|<width="250px" style="vertical-align:top; ">|'''conring_size=<size in bytes>'''
|<width="300px" style="vertical-align:top; ">|Sets the size of Xen hypervisor console ring buffer. Bigger buffer allows you to store more lines in "xm dmesg" log before overwriting them. Example: "conring_size=65536" to set a buffer of 64 kilobytes.
|-
|<width="250px" style="vertical-align:top; ">| '''vga=<mode>(,keep)''' ''' '''
|<width="300px" style="vertical-align:top; ">|The mode is one of the following options: '''ask '''Display a vga menu allowing manual selection of video mode. '''current '''Use existing vga mode without modification. '''text-'''<'''mode'''> Select text-mode resolution, where mode is one of 80x25, 80x28, 80x30, 80x34, 80x43, 80x50, 80x60. '''mode-'''<'''mode'''> Specify a mode number as discovered by ‘vga ask’. Note that the numbers are displayed in hex and hence must be prefixed by ‘0x’ here (e.g., ‘vga=mode-0x0335’). The mode may optionally be followed by ‘''',keep'''’ to cause Xen to keep writing to the VGA console after domain 0 starts booting (e.g., ‘vga=text-80x50,keep’).
|-
|<width="250px" style="vertical-align:top; ">| '''no-real-mode'''
|<width="300px" style="vertical-align:top; ">|(x86 only) Do not execute real-mode bootstrap code when booting Xen. This option should not be used except for debugging. It will effectively disable the '''vga '''option, which relies on real mode to set the video mode.
|-
|<width="250px" style="vertical-align:top; ">| '''edid=no,force'''
|<width="300px" style="vertical-align:top; ">|(x86 only) Either force retrieval of monitor EDID information via VESA DDC, or disable it (edid=no). This option should not normally be required except for debugging purposes.
|-
|<width="250px" style="vertical-align:top; ">| '''edd=off,on,skipmbr'''
|<width="300px" style="vertical-align:top; ">|(x86 only) Control retrieval of Extended Disc Data (EDD) from the BIOS during boot.
|-
|<width="250px" style="vertical-align:top; ">| '''console_to_ring'''
|<width="300px" style="vertical-align:top; ">|Place guest console output into the hypervisor console ring buffer. This is disabled by default. When enabled, both hypervisor output and guest console output is available from the ring buffer. This can be useful for logging and/or remote presentation of console data.
|-
|<width="250px" style="vertical-align:top; ">| '''sync_console'''
|<width="300px" style="vertical-align:top; ">|Force synchronous console output. This is useful if you system fails unexpectedly before it has sent all available output to the console. In most cases Xen will automatically enter synchronous mode when an exceptional event occurs, but this option provides a manual fallback.
|-
|<width="250px" style="vertical-align:top; ">| '''conswitch='''<'''switch-char'''><'''auto-switch-char'''>
|<width="300px" style="vertical-align:top; ">|Specify how to switch serial-console input between Xen and DOM0. The required sequence is CTRL-<switch-char> pressed three times. Specifying the backtick character disables switching. The <auto-switch-char> specifies whether Xen should auto-switch input to DOM0 when it boots — if it is ‘x’ then auto-switching is disabled. Any other value, or omitting the character, enables auto-switching. [NB. Default switch-char is ‘a’.]
|-
|<width="250px" style="vertical-align:top; ">| '''loglvl='''<'''level'''> / <'''level'''>
|<width="300px" style="vertical-align:top; ">|Specify logging level. Messages of the specified severity level (and higher) will be printed to the Xen console. Valid levels are ‘none’, ‘error’, ‘warning’, ‘info’, ‘debug’, and ‘all’. The second level specifier is optional: it is used to specify message severities which are to be rate limited. Default is ‘loglvl=warning’.
|-
|<width="250px" style="vertical-align:top; ">| '''guest_loglvl='''<'''level'''> / <'''level'''>
|<width="300px" style="vertical-align:top; ">|As for loglvl, but applies to messages relating to guests. Default is ‘guest loglvl=none/warning’.
|-
|<width="250px" style="vertical-align:top; ">| '''console_timestamps'''
|<width="300px" style="vertical-align:top; ">| Adds a timestamp prefix to each line of Xen console output.
|-
|<width="250px" style="vertical-align:top; ">| '''nmi=xxx'''
|<width="300px" style="vertical-align:top; ">|Specify what to do with an NMI parity or I/O error. ‘nmi=fatal’: Xen prints a diagnostic and then hangs.
|-
|<width="250px" style="vertical-align:top; ">| '''mem=xxx'''
|<width="300px" style="vertical-align:top; ">|Set the physical RAM address limit. Any RAM appearing beyond this physical address in the memory map will be ignored. This parameter may be specified with a B, K, M or G suffix, representing bytes, kilobytes, megabytes and gigabytes respectively. The default unit, if no suffix is specified, is kilobytes.
|-
|<width="250px" style="vertical-align:top; ">| '''dom0_mem='''<'''specifier list'''>
|<width="300px" style="vertical-align:top; ">|Set the amount of memory to be allocated to domain 0. This is a comma-separated list containing the following optional components: '''min:'''<'''min amt'''> Minimum amount to allocate to domain 0 '''max:'''<'''min amt'''> Maximum amount to allocate to domain 0 <'''amt'''> Precise amount to allocate to domain 0 Each numeric parameter may be specified with a B, K, M or G suffix, representing bytes, kilobytes, megabytes and gigabytes respectively; if no suffix is specified, the parameter defaults to kilobytes. Negative values are subtracted from total available memory. If <amt> is not specified, it defaults to all available memory less a small amount (clamped to 128MB) for uses such as DMA buffers.
|-
|<width="250px" style="vertical-align:top; ">| '''dom0_vcpus_pin'''
|<width="300px" style="vertical-align:top; ">|Pins domain 0 VCPUs on their respective physical CPUS (default=
|-
|<width="250px" style="vertical-align:top; ">|'''dom0_max_vcpus=x'''
|<width="300px" style="vertical-align:top; ">|Limit the number of virtual cpus dom0 has. As a default dom0 has as many vcpus as there are physical cpus in the system.
|-
|<width="250px" style="vertical-align:top; ">| '''tbuf size=xxx'''
|<width="300px" style="vertical-align:top; ">| Set the size of the per-cpu trace buffers, in pages (default 0).
|-
|<width="250px" style="vertical-align:top; ">| '''sched=xxx'''
|<width="300px" style="vertical-align:top; ">|Select the CPU scheduler Xen should use. The current possibilities are ‘credit’ (default), and ‘sedf’.
|-
|<width="250px" style="vertical-align:top; ">| '''apic_verbosity=debug,verbose'''
|<width="300px" style="vertical-align:top; ">|Print more detailed information about local APIC and IOAPIC configuration.
|-
|<width="250px" style="vertical-align:top; ">| '''lapic'''
|<width="300px" style="vertical-align:top; ">| Force use of local APIC even when left disabled by uniprocessor BIOS.
|-
|<width="250px" style="vertical-align:top; ">| '''nolapic'''
|<width="300px" style="vertical-align:top; ">|Ignore local APIC in a uniprocessor system, even if enabled by the BIOS.
|-
|<width="250px" style="vertical-align:top; ">| '''apic=bigsmp,default,es7000,summit'''
|<width="300px" style="vertical-align:top; ">| Specify NUMA platform. This can usually be probed automatically.
|-
|<width="250px" style="vertical-align:top; ">| '''dma_bits=xxx'''
|<width="300px" style="vertical-align:top; ">|Specify width of DMA addresses in bits. This is used in NUMA systems to prevent this special DMA memory from being exhausted in one node
|-
|<width="250px" style="vertical-align:top; ">|'''extra_guest_irqs=x'''
|<width="300px" style="vertical-align:top; ">|Increase the number of PIRQs available for the guest. The default is 32.
|}

''''' '''''''''''

In addition, the following options may be specified on the Xen command line. Since domain 0 shares responsibility for booting the platform, Xen will automatically propagate these options to its command line. These options are taken fromLinux’s commandline syntax with unchanged semantics.
{| border="1" cellpadding="2" cellspacing="0"
|bgcolor="#cccccc" width="250px" style="vertical-align:top; " | '''Boot time option'''
|bgcolor="#cccccc" width="250px" style="vertical-align:top; " | '''Description'''
|-
|<width="250px" style="vertical-align:top; ">| '''acpi=off,force,strict,ht,noirq,. . .'''
|<width="300px" style="vertical-align:top; ">|Modify how Xen (and domain 0) parses the BIOS
|-
|<width="250px" style="vertical-align:top; ">| '''acpi_skip_timer_override'''
|<width="300px" style="vertical-align:top; ">|Instruct Xen (and domain 0) to ignore timer-interrupt override
|-
|<width="250px" style="vertical-align:top; ">| '''noapic'''
|<width="300px" style="vertical-align:top; ">|Instruct Xen (and domain 0) to ignore any IOAPICs that are present in the system, and instead continue to use the legacy PIC. This is _not_ recommended with pvops type kernels.
|}

----
help us to improve this list and add missing entries. This command lists all known options:


<pre>
find * -name "*.[ch]" | xargs grep -Ewn '(custom_param|boolean_param|invbool_param|integer_param|size_param|string_param)'
</pre>


[[Category:Xen]]
[[Category:Xen]]
Line 139: Line 6:
[[Category:Beginners]]
[[Category:Beginners]]
[[Category:Overview]]
[[Category:Overview]]
[[Category:HowTo]]

Latest revision as of 11:36, 26 March 2012

Documentation regarding Xen hypervisor command line options is now maintained directly in the Xen source tree. Please see Xen Hypervisor Command Line Options.