[fedora-virt] Fedora 12 Xen guests (domU) and hosts (dom0) / grub.conf example

Pasi Kärkkäinen pasik at iki.fi
Fri Jan 15 12:41:43 UTC 2010


On Fri, Jan 15, 2010 at 01:54:09PM +0200, Pasi Kärkkäinen wrote:
> Hello,
> 
> I thought of writing some information about running Fedora 12 Xen guests
> and also Fedora 12 Xen hosts/dom0.
> 
> Fedora 12 includes the upstream Linux pv_ops Xen domU support in the default kernel.
> By using virt-install or virt-manager you can install Fedora 12 Xen PV 
> (paravirtual) guests directly from network, for example on RHEL 5.4, 
> CentOS 5.4, or Fedora Xen dom0/host.
> 
> If you want to run Fedora 12 Xen dom0 (host), there are some extra steps
> needed. Fedora 12 ships with Xen hypervisor and management tools 
> (Xen 3.4.1, and Xen 3.4.2 in the F12 updates), but the required Xen dom0 
> capable host kernel is not included in Fedora atm/yet.
>
> ...
> 

Oh, and here's an example of how to configure things in grub.conf for
Xen dom0.

Normal VGA console:

title Fedora Xen 3.4.2 / 2.6.31.6 dom0 kernel
        root (hd0,0)
        kernel /xen.gz dom0_mem=512M loglvl=all guest_loglvl=all
        module /vmlinuz-2.6.31.6 ro root=/dev/mapper/vg_f12test-lv01 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=fi nomodeset
        module /initrd-2.6.31.6.img

Note the "nomodeset" option that is currently needed.


And also an example for using the onboard serial port as a serial console 
for debugging and logging the boot process:

title Fedora Xen 3.4.2 with serial console / 2.6.31.6 dom0 kernel
        root (hd0,0)
        kernel /xen.gz dom0_mem=512M loglvl=all guest_loglvl=all com1=38400,8n1 console=com1
        module /vmlinuz-2.6.31.6 ro root=/dev/mapper/vg_f12test-lv01 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=fi nomodeset console=hvc0 earlyprintk=xen nomodeset
        module /initrd-2.6.31.6.img


Using a virtual serial port like SOL (Serial Over LAN) from a server management processor,
or an IPMI card, or Intel AMT/vPro management chip might require you to specify the 
IOport aswell, like this in grub.conf:

kernel /xen.gz  com1=38400,8n1,0xcf00,0 console=com1

Where 0xcf00 is the IO port for the PCI serial port (you can check it by running lspci -vvv in Linux), 
and ",0" is the IRQ, which can usually be left to 0.

-- Pasi



More information about the virt mailing list