[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Can't boot from ISO image...


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Lionel Kernux" <lionel.kernux@xxxxxxxxx>
  • Date: Thu, 24 Jan 2008 09:13:23 -0500
  • Delivery-date: Thu, 24 Jan 2008 06:13:57 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=E8iwyZIRwlJO4O0/PEzQfcXtE+L9nhhfwyb1C7tJTIMD6eYyNrnAx7eXZFeDp0DX+fTFKFYSooDNchYQ4m2bSZgOZZfaq5jzzGRQcC+c/6LxlIrqljD2G9aJgu67Un8DBsCvVcM5M0XQG877K2KGXIS5enkZhL/1378r7VL0mvY=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi,

I've been trying to boot from a RHEL4 install iso without much luck
(the xen way).
The Host is:
RHEL 5.1
xen-3.0.3-41.el5

Here is my guest config:

#  -*- mode: python; -*-
#============================================================================
# Python configuration setup for 'xm create'.
# This script sets the parameters used when a domain is created using
'xm create'.
# You use a separate script for each domain you want to create, or
# you can set the parameters for the domain on the xm command line.
#============================================================================

import os, re
arch = os.uname()[4]
if re.search('64', arch):
    arch_libdir = 'lib64'
else:
    arch_libdir = 'lib'
kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 1536
shadow_memory = 8
name = "symbiosis"
pae=1
vif = [ 'type=ioemu, bridge=xenbr0' ]
disk = [ 
'file:/var/lib/xen/images/symbiosis.img,ioemu:hda,w','file:/root/RHEL4.6-x86_64-AS-disc1.iso,ioemu:hdc:cdrom,r'
]
device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
boot="d"
vncunused=0
vncconsole=1
vncpasswd='secret'
stdvga=0
serial='pty'
usb=1
usbdevice='mouse'

I run "xm create symbiosis" and get:

Error: Device 5632 (vbd) could not be connected. losetup -r /dev/loop0
/root/RHEL4.6-x86_64-AS-disc1.iso failed

But, I can manually attach the loop device like so:

losetup -r /dev/loop# /root/RHEL4.6-x86_64-AS-disc1.iso

No problem.

If I do:

losetup -r /dev/loop5 /root/RHEL4.6-x86_64-AS-disc1.iso

and then in the config file use this:

disk = [ 
'file:/var/lib/xen/images/symbiosis.img,ioemu:hda,w','phy:/dev/loop5,ioemu:hdc:cdrom,r'
]

It boots off the ISO.

Yes, it seems I can fake it out, but I'd like to get it work properly....

Any help?

Thanks

M

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.