Difference between revisions of "Xen Command Line and Boot Options"

From Xen
(Replaced content with "Documentation regarding Xen hypervisor options is now maintained directly in the Xen source tree. Please see [http://xenbits.xen.org/docs/unstable/misc/xen-command-line.html…")
Line 1: Line 1:
Documentation regarding Xen hypervisor 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) -->
{{Info|This document will always be a work in progress. Help us to improve this list and add missing entries.<br />
This command lists all known options:
find * -name "*.[ch]" | xargs grep -Ewn '(custom_param|boolean_param|invbool_param|
== Grub.conf options for Xen ==
These are the Xen Hypervisor boot-time options you can specify in grub.conf for xen.gz.
{| class="wikitable sortable"
!scope="col" width="250px" style="vertical-align:top;" |'''Boot time option'''
!class="unsortable" width="550px" style="vertical-align:top;" |'''Description'''
|- 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.
|- style="vertical-align:top"
|Disable SMP support. This option is implied by 'ignorebiostables'.
|- style="vertical-align:top"
|Enable NMI watchdog which can report certain failures.
|- 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.
|- style="vertical-align:top"
|'''badpage=<page number>,<page number>, . . .'''
|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.
|- style="vertical-align:top"
|Size of serial transmit buffers. Default is 16kB.
|- style="vertical-align:top"
|'''com1=<baud>,DPS,<io base>,<irq> com2=<baud>,DPS,<io base>,<irq>'''
|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.
|- style="vertical-align:top"
|'''console=<specifier list>'''
|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']
|- style="vertical-align:top"
|'''conring_size=<size in bytes>'''
|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.
|- style="vertical-align:top"
|'''vga=<mode>(,keep)''' ''' '''
|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').
|- 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.
|- 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.
|- style="vertical-align:top"
|(x86 only) Control retrieval of Extended Disc Data (EDD) from the BIOS during boot.
|- 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.
|- 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.
|- 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'.]
|- style="vertical-align:top"
|'''loglvl='''<'''level'''> / <'''level'''>
|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'.
|- style="vertical-align:top"
|'''guest_loglvl='''<'''level'''> / <'''level'''>
|As for loglvl, but applies to messages relating to guests. Default is 'guest loglvl=none/warning'.
|- style="vertical-align:top"
| Adds a timestamp prefix to each line of Xen console output.
|- 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.
|- 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.
|- style="vertical-align:top"
|'''dom0_mem='''<'''specifier list'''>
|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.
|- style="vertical-align:top"
|Pins domain 0 VCPUs on their respective physical CPUS (default=
|- 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.
|- style="vertical-align:top"
|'''tbuf size=xxx'''
| Set the size of the per-cpu trace buffers, in pages (default 0).
|- style="vertical-align:top"
|Select the CPU scheduler Xen should use. The current possibilities are 'credit' (default), and 'sedf'.
|- style="vertical-align:top"
|Print more detailed information about local APIC and IOAPIC configuration.
|- style="vertical-align:top"
| Force use of local APIC even when left disabled by uniprocessor BIOS.
|- style="vertical-align:top"
|Ignore local APIC in a uniprocessor system, even if enabled by the BIOS.
|- style="vertical-align:top"
| Specify NUMA platform. This can usually be probed automatically.
|- 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
|- style="vertical-align:top"
|Increase the number of PIRQs available for the guest. The default is 32.
|- style="vertical-align:top"
| ACPI and MP tables are ignored (implies noacpi, nosmp)
|- style="vertical-align:top"
| List of PCI slots to hide from domain 0, Format is '(%02x:%02x.%1x)(%02x:%02x.%1x)' and so on.
|- style="vertical-align:top"
| Disable software IRQ balancing and affinity.
|- style="vertical-align:top"
| Specify NUMA platform...
|- style="vertical-align:top"
| Disables Hyper-Threading
== Xen Command Line ==
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.
{| class="wikitable sorttable"
!scope="col" width="250px" style="vertical-align:top; " |'''Boot time option'''
!class="unsortable" width="550px" style="vertical-align:top; " |'''Description'''
|- style="vertical-align:top"
|'''acpi=off,force,strict,ht,noirq,. . .'''
|Modify how Xen (and domain 0) parses the BIOS
|- style="vertical-align:top"
|Instruct Xen (and domain 0) to ignore timer-interrupt override
|- 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.
== [[XenLinux]] Boot Options : ==
''In addition to the standard <u>Linux kernel</u> boot options, we support:''
<span id="xencons"></span>
* `xencons=tty' :: Read http://www.cl.cam.ac.uk/research/srg/netos/xen/readmes/user/user.html 's [[XenLinux]] Boot Options

Revision as of 00:26, 9 March 2012

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