WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] opensuse 10.3, xen 3.1, and raw devices

To: Ian Marlier <ian.marlier@xxxxxxxxxxxxxxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] opensuse 10.3, xen 3.1, and raw devices
From: Ian Marlier <ian.marlier@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 09 Oct 2007 19:54:44 -0400
Delivery-date: Tue, 09 Oct 2007 16:55:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <D2575519D6CA2840B6D3E26087EA71B6349142@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcgKlD4Kzt4dMl3NRPG8OqoM/l2aIAAO4XIY
Thread-topic: [Xen-users] opensuse 10.3, xen 3.1, and raw devices
User-agent: Microsoft-Entourage/11.3.6.070618
So, after a full day of, basically, guess-and-check debugging, I was able to
figure out something that works.

Basically, the --entry= part of the bootargs line works differently from the
prior bootentry line.  In order to have domUloader.py look for the boot
files on a filesystem (instead of a partition on a physical or file device),
the disk and boot lines need to look like this:

disk = [ 'phy:/dev/xenmachines/vm1,hda1,w',
'phy:/dev/xenmachines/vm1-swap,hda2,w' ]
bootloader = '/usr/lib/xen/boot/domUloader.py'
bootargs = '--entry=:/boot/vmlinuz-xen,/boot/initrd-xen'

That seems to work fine.



On 10/9/07 12:48 PM, "Marlier, Ian" <ian.marlier@xxxxxxxxxxxxxxxxxxx> wrote:

> Mornin', all --
> 
> For the past year or so, I've been taking advantage of the ability of
> xen 3.0 to export a raw device to a domU in order to simplify machine
> creation and management.  I create a "master" image on a standard ext3
> partition, along with it's config file.  Then, to create a new machine,
> I just have to do this:
> - Create a new partition in dom0, create a filesystem on it, mount it,
> and do a cp -ax from the Master image to the new partition.
> - Using sed and mv, replace things like the hostname, MAC address(es),
> ip address, etc in the new image and in the config file for the new
> image
> - Unmount the new partition, and start the machine.
> 
> This has worked very well -- management is simple, and by exporting the
> master image via NFS I can install identical domU's on any amount of
> host hardware within a matter of minutes.
> 
> However, I'm having trouble getting this configuration to work under Xen
> 3.1.0 (as packaged with opensuse 10.3).
> 
> Here's an example config file that worked under Xen 3.0.X:
> disk = [ 'phy:/dev/xenmachines/Dale-GDS,hdb2,w',
> 'phy:/dev/xenmachines/Dale-GDS-swap,hdb1,w' ]
> memory = 448
> vcpus = 1
> builder = 'linux'
> name = 'Dale-GDS'
> vif = [ 'mac=00:16:3e:ab:00:25, bridge=xenbr0' ]
> localtime = 0
> on_poweroff = 'destroy'
> on_reboot = 'restart'
> on_crash = 'restart'
> extra = ' TERM=xterm'
> bootloader = '/usr/lib/xen/boot/domUloader.py'
> bootentry = 'hdb2:/boot/vmlinuz-xen,/boot/initrd-xen'
> 
> 
> I tried using effectively the same config file, with a few additional
> lines, but without success -- I end up getting the error message
> "VmError: Had a bootloader specifed, but no disks are bootable".  Here's
> an example modified config which is not working:
> name = 'mail'
> ostype = 'opensuse'
> uuid="b7679686-8947-4a60-141c-a7ae33783d44"
> memory = 128
> vcpus = 1
> builder = 'linux'
> vif = [ 'mac=00:16:3e:ab:00:0e, bridge=xenbr0' ]
> localtime = 0
> on_poweroff = 'destroy'
> on_reboot = 'restart'
> on_crash = 'restart'
> extra = ' '
> bootloader = '/usr/lib/xen/boot/domUloader.py'
> bootargs = '--entry=hdb2:/boot/vmlinuz-xen,/boot/initrd-xen'
> disk = [ 'phy:/dev/xenmachines/mail,hdb2,w',
> 'phy:/dev/xenmachines/mail-swap,hdb1,w' ]
> 
> 
> Anyone have any idea what I'm missing, or suggestions as to how to
> duplicate the configuration that I have been using with Xen 3.1?
> 
> Thanks!
> 
> - Ian
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users


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

<Prev in Thread] Current Thread [Next in Thread>