Bug 30587 - Paravirtualization with Citrix Xen Server
Paravirtualization with Citrix Xen Server
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: General
UCS 3.1
Other Linux
: P5 enhancement (vote)
: UCS 3.1-1-errata
Assigned To: Stefan Gohmann
Erik Damrose
:
Depends on:
Blocks: 31086
  Show dependency treegraph
 
Reported: 2013-02-26 07:01 CET by Stefan Gohmann
Modified: 2013-05-29 18:05 CEST (History)
0 users

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Release Goal
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2013-02-26 07:01:50 CET
We should document how to change a UCS 3.1 installation in Citrix XenServer 6 to paravirtualization. I think it should be part of the extended manual.

See also for an old version:
 http://wiki.univention.de/index.php?title=Citrix_Xen_Server

It is important that we use the UCS kernel and the initrd. The old article uses the citrix kernel.
Comment 1 Stefan Gohmann univentionstaff 2013-03-22 20:41:55 CET
I moved the bug to UCS, maybe we have to change something with the installation DVD.
Comment 2 Stefan Gohmann univentionstaff 2013-04-14 11:04:37 CEST
After some tests we have the following problems:

- A paravirtual boot from our DVD is not possible. This needs some more investigation if we want to support it. But I think it gets too complicate for a normal installation and it is better if we support the transformation from a normal installation to the paravirtual setup.

- BIOS_BOOT partition: The auto partition creates the BIOS Boot partition as the first partition. The Citrix XenServer version of pygrub seems to have a problem with this. /boot must be the first partition.

- ext4 on /boot: The auto partition uses ext4 for /boot. The Citrix XenServer version of pygrub has a problem with ext4 on /boot.


A howto should include:

- Convert /boot from ext4 to ext3

- Make /boot the first partition

- Start getty on hvc0
  echo "vc:2345:respawn:/sbin/getty 38400 hvc0" >>/etc/inittab

- Switch the VM to paravirtual:

xe vm-param-set uuid=$UUID HVM-boot-policy=""
xe vm-param-set uuid=$UUID PV-bootloader=pygrub
xe vm-param-set uuid=$UUID PV-args="console=hvc0"

- Set the hard disk bootable:
xe vbd-list vm-uuid=$UUID
xe vbd-param-set uuid=$DISK_UUID bootable=true
Comment 3 Stefan Gohmann univentionstaff 2013-04-14 11:09:30 CEST
Convert the instance back to HVM:

xe vm-param-set uuid=$UUID HVM-boot-policy="BIOS order"
xe vm-param-set uuid=$UUID PV-bootloader""
Comment 4 Stefan Gohmann univentionstaff 2013-04-18 08:00:25 CEST
The Wiki article has been created:
 http://wiki.univention.de/index.php?title=Citrix_Xen_Server

I've also added a hint in the manual.
Comment 5 Erik Damrose univentionstaff 2013-04-18 15:41:28 CEST
Instructions work. A link is available in the manual.

Verified
Comment 6 Stefan Gohmann univentionstaff 2013-05-29 18:05:43 CEST
Nothing to release.