Bug 211928

Summary: No way to specific VNC graphics & use a bootloader in SEXPR protocol
Product: Red Hat Enterprise Linux 5 Reporter: Daniel Berrangé <berrange>
Component: xenAssignee: Daniel Berrangé <berrange>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0CC: jturner, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-01-04 19:00:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 211671, 211909    
Attachments:
Description Flags
Make VNC graphics & bootloader play nice none

Description Daniel Berrangé 2006-10-23 21:38:53 UTC
Description of problem:
The VNC graphics configuration option for paravirt guests is within the (image
(linux ...)) part of the SEXPR given to XenD. When creating guests using an
explicit kernel & initrd, this works fine. If using a bootloader such as pygrub
though, there is no (image) block specified at all, instead a (bootloader ...)
block is used. If one specifies both a (bootloader) and (image) block, XenD will
only look at the (image) block and thus not run the bootloader. This makes it
impossible to create a guest domain using VNC & a  bootloader from libvirt.

Version-Release number of selected component (if applicable):
xen-3.0.3-2.el5

How reproducible:
Always

Steps to Reproduce:
1. Feed a piece of SEXPR data to XenD such as

(vm 
    (name 'XenGuest1')
    (memory 214)
    (maxmem 214)
    (vcpus 1)
    (uuid '06c1f7981c224ba0f729a9ce18a46de5')
    (bootloader '/usr/bin/pygrub')
    (on_poweroff 'destroy')
    (on_reboot 'restart')
    (on_crash 'restart')
    (image (linux (vnc 1)))
    (device (vbd (dev 'xvda')(uname 'phy:/dev/HostVG/XenGuest1')(mode 'w')))
    (device (vif (mac '00:16:3e:1e:7c:a6')(bridge 'xenbr0')(script 'vif-bridge')))
)

2.
3.
  
Actual results:
Xend complains about missing kernel & refuses to create the domain

Expected results:
Xend runs the bootloader to extract the kernel & creates a domain with VNC active

Additional info:

Comment 1 Daniel Berrangé 2006-10-24 20:00:16 UTC
Created attachment 139264 [details]
Make VNC graphics & bootloader play nice

This patch makes xend use the bootloader in cases where an (image...) block is
set  but with no (kernel) nested-block. This allows VNC to play nice with
bootloaders.

Comment 2 RHEL Program Management 2006-10-25 16:25:05 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux release.  Product Management has requested further review
of this request by Red Hat Engineering.  This request is not yet committed for
inclusion in release.

Comment 5 Jay Turner 2006-11-20 20:16:18 UTC
Witholding QE ack until we get resolution on the inactive domain management. 
And on that note, I thought we were feature complete.

Comment 8 Daniel Berrangé 2007-01-04 19:00:00 UTC
The new generation paravirt framebuffer patches included in recent RHEL-5 xen
packages completely changed the config file format. As such the problem
described in this bug no longer exists.