[Pkg-xen-devel] Bug#595531: Bug#595531: xen-utils-common: boot="d" does not boot from CD (documentation issue?)

Marvin Renich mrvn at renich.org
Mon Sep 6 13:21:28 UTC 2010


* Thomas Goirand <zigo at debian.org> [100904 19:40]:
> Hi Marvin,
> 
> I have attached my config file, for which I have received comments from
> people from Citrix. Would that be ok if I just add this as an example
> config file?
> 
> Feel free to comment on it as well, or to send me a corrected version,
> so that we have a good example shipped with the package...
> 
> Thomas
> 
> P.S: I'll upload a new version to SID only after the current one is
> migrated to Squeeze anyway.

> kernel = "/usr/lib/xen/boot/hvmloader"
> builder = 'hvm'
> memory = 512
> name = "hvm-vm-config-example"
> vcpus=1
> cpus = "1"
> 
> # Setting these to zero didn't work at all for me
> pae=1
> acpi=1
> apic=1
> 
> # model= can also use rtl8139 or ne2k_pci
> # set the MAC address to something not in your LAN yet...
> vif = [ 'type=ioemu, mac=00:00:20:12:34:56, model=e1000, bridge=eth0' ]
> 

How about replace this:

> # Best is to use hda for your HDD, and hdc for your CDROM

with this:

# hvmloader only recognizes certain device names for the virtual disk
# drives, so it is best to use hda for your hard disk, and hdc for your
# CDROM.
# Also, host device names relative to /dev are not always recognized as
# such, so it is best to use /dev/ explicitly in the host device name.

> disk=[ 'phy:/dev/mapper/vg0-mylvmhda,hda,w','file:/path/to/iso/to/boot.iso,hdc:cdrom,r' ]

and add this:

# or, to let the guest read from the host's /dev/sr0 cdrom directly:
disk = [ 'phy:/dev/mapper/vg0-mylvmhda,hda,w','phy:/dev/sr0,hdc:cdrom,r' ]

> 
> # This asks to bind VNC to port 5900 + 21 (eg: 5921) with password XXXX
> # This is good for a server setup.
> vfb = ["type=vnc,vncdisplay=21,vncpasswd=XXXX"]
> # If you are running on your desktop, then you might want to use
> # the video in an SDL window
> #vfb = ["type=sdl"]
> 
> device_model='/usr/lib/xen-4.0/bin/qemu-dm'
> 
> #cdrom="/path/to/iso/to/boot.iso"
> # c for hdd, d for cdrom
> boot="d"
> nographic=0
> #vnc=1
> #vncviewer=1
> stdvga=1
> serial='pty'
> 
> # ac97 is the most optimized sound board model.
> #soundhw=ac97

I dislike documentation that is vague; I would prefer to get upstream to
make a definitive statement such as "hvmloader can use hda through hdd
or sda through sdh as a hard disk or cdrom drive; hd? will use IDE
emulation and sd? will emulate a SCSI drive."

Until we get upstream to clarify this, what you have above (perhaps
with my changes) will have to do.  :-P

Thanks very much.

...Marvin






More information about the Pkg-xen-devel mailing list