Difference between revisions of "Booting Overview"

From Xen
(Direct Kernel Boot)
(Direct Kernel Boot)
Line 16: Line 16:
  
 
== Direct Kernel Boot ==
 
== Direct Kernel Boot ==
When installing a new guest OS it is often useful to boot directly from a kernel and initrd stored in the host OS' file system, allowing command line arguments to be passed directly to the installer. This capability is usually available for PV, PVH and HVM guests. In this case, the  
+
When installing a new guest OS it is often useful to boot directly from a kernel and initrd stored in the host OS' file system, allowing command line arguments to be passed directly to the installer. This capability is usually available for PV, PVH and HVM guests.  
 
+
<gallery widths="670px" heights="320px" mode=nolines>
Works for all guest types
+
File:DireckKernelBoot.png
 
+
</gallery>
Non standard way of installing/booting
+
In this case, the bootloader and firmware are bypassed. Direct Kernel Boot is often an easy way to start the installation process and create a disk image. To install VMs this way, you need to be a host administrator (aka you need to have access to Dom0). Useful for [[Xenpvnetboot|netboot]]. Note that most distros have kernel and initrd file systems available for download.
 
 
Need to be a host admins to configure�(need access to Dom0).
 
 
 
Useful for netboot, see wiki.xenproject.org/wiki/Xenpvnetboot
 
  
 
== PVGrub ==
 
== PVGrub ==

Revision as of 16:43, 10 September 2018

This document describes the different mechanisms and config file options that are available for Xen.

The following diagram shows the first steps of the Linux boot and startup sequence to provide a baseline to allow explaining the differences

HVM Guest Boot Process

From a user's perspective the HVM Boot and install process is identical to the process on a native PC or server.

However, behind the scenes

  • The hvmloader is copied into guest memory by Xen (under the control of the Toolstack). The hvmloader sets up all necessary information for the Device Emulator which emulates a HW environment that appears exactly like a physical machine. 
  • The correct firmware is automatically loaded as a binary blob (usually located in /usr/lib64/xen/boot) and copied into guest memory based on config settings, but can be overridden via the firmware config file option. See the various firmware options in the man page.

Direct Kernel Boot

When installing a new guest OS it is often useful to boot directly from a kernel and initrd stored in the host OS' file system, allowing command line arguments to be passed directly to the installer. This capability is usually available for PV, PVH and HVM guests.

In this case, the bootloader and firmware are bypassed. Direct Kernel Boot is often an easy way to start the installation process and create a disk image. To install VMs this way, you need to be a host administrator (aka you need to have access to Dom0). Useful for netboot. Note that most distros have kernel and initrd file systems available for download.

PVGrub

PyGrub

PV Guest Install Basic Workflow