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] Re: upgrade leny-squeeze, xen3.2-xen4.0, what's wrong?

To: Mauro <mrsanna1@xxxxxxxxx>
Subject: Re: [Xen-users] Re: upgrade leny-squeeze, xen3.2-xen4.0, what's wrong?
From: Matt Richardson <shortpath@xxxxxxxxx>
Date: Fri, 11 Feb 2011 12:08:51 -0800
Cc: xen-users@xxxxxxxxxxxxxxxxxxx, Henrik Langos <hlangos-xen@xxxxxxxxxxxxxx>
Delivery-date: Fri, 11 Feb 2011 12:10:08 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=hf9m7PNjqj/O2Mqwa7khvyrPmmL19ycrSGUjfPzjuH4=; b=aeEmh4mfhPSB8W86eFWAOpe2Dk/vxy/btQICyDgooMettKw3Zxf1tBcEJIV34Lpo02 IBONUdQdi7lG22gIeo/6w0PYL94e6+05gjy7RGs2RQ0dNVmoSIGKEKOj/pNOdMzsdx08 XLuaHB7InHhvptBhcezlWHL/h5BKk3oUx01Lk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=kxHuxZnuhzzNgjslcCzd588h+ZGaZJlKI0vsNC0RxinZZJ8zYQYqDDpl8kLvB1Hm5a G9LRYoiIU5p/zEqXXpp8PG4RPL+lZU73waZW3O5ezEhj3MgP5R8fbR6JsCPRa5Zg0G32 J2IjTNbtQXTietDXzgW4HYtOuF4CeY7vRwwF0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTinEhzmMmfwCksSyFaiHj-=FuaaFEVRwgMdbAOj_@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTimxV0B2+7=3bAmgWDkgEXC6T1BXBV+f2bCRTTpv@xxxxxxxxxxxxxx> <AANLkTi=e=0Ezd1YjBkLPwrZRFAsyjqP3+kTRKDFqkEg5@xxxxxxxxxxxxxx> <20110211085944.GS3435@xxxxxxxxxxxxxx> <AANLkTinw6iJVRFnidyY8o2_em5EcFN9pRLymocRawmQW@xxxxxxxxxxxxxx> <20110211111214.GV3435@xxxxxxxxxxxxxx> <AANLkTinEhzmMmfwCksSyFaiHj-=FuaaFEVRwgMdbAOj_@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, Feb 11, 2011 at 3:38 AM, Mauro <mrsanna1@xxxxxxxxx> wrote:
> On 11 February 2011 11:12, Henrik Langos <hlangos-xen@xxxxxxxxxxxxxx> wrote:
>> On Fri, Feb 11, 2011 at 10:04:44AM +0000, Mauro wrote:
<snip>
>>> >
>>> >
>>> >> I've solved using pygrub.
>>> >> So it seems that without pygrub I can't run DomUs?
>>> >
>>> > You shouldn't have to use pygrub for something that simple.
>>> >
>>> > My guess is that there was a lack of communication between the
>>> > maintainers of xen and xen-tools in regard to the default devices.
>>> >
>>>
>>> mail1.cfg:
>>>
>>> bootloader = '/usr/lib/xen-default/bin/pygrub'
>>>
>>> vcpus       = '4'
>>> memory      = '2048'
>>>
>>> #
>>> #  Disk device(s).
>>> #
>>> root        = '/dev/xvda2 ro'
>>> disk        = [
>>>                   'phy:/dev/vg00/mail1-disk,xvda2,w',
>>>                   'phy:/dev/vg00/mail1-swap,xvda1,w',
>>>               ]
>>>
>>>
>>> #
>>> #  Physical volumes
>>> #
>>>
>>>
>>> #
>>> #  Hostname
>>> #
>>> name        = 'mail1'
>>>
>>> #
>>> #  Networking
>>> #
>>> vif         = [ 'ip=172.16.10.154,mac=00:16:3E:01:D7:24' ]
>>>
>>> #
>>> #  Behaviour
>>> #
>>> on_poweroff = 'destroy'
>>> on_reboot   = 'restart'
>>> on_crash    = 'restart
>>>
>>> It's exactly as another DomU that runs with xen 3.2 on a debian lenny 
>>> machine.
>>> The only difference is the bootloader = '/usr/lib/xen-default/bin/pygrub'.
>>

<snip>
>
> Ok, you convinced me to use pygrub.
> I have many doubts on using DomU in a SAN system, but for this I open
> a new thread.
>


I just got my back up xen machine updated to squeeze and started a new
guest on it to test the upgrade procedure for the production machine.
I'm using Dom0's kernel (no pygrub), installed the base system via
debootstrap and I don't have linux-image-2.6.32-5-xen-amd64 installed
on the DomU:

rocket.cfg

#-*- mode: python; -*-
kernel = "/boot/vmlinuz-2.6.32-5-xen-amd64"
ramdisk = "/boot/initrd.img-2.6.32-5-xen-amd64"
memory = 2048
name = "rocket"
vif = ['bridge=xenbr0']
disk = ['phy:/dev/debian1/rocket-root,xvda1,w',
'phy:/dev/debian1/rocket-home,xvda2,w',
'phy:/dev/debian1/rocket-tmp,xvda3,w',
'phy:/dev/debian1/rocket-usr,xvda4,w',
'phy:/dev/debian1/rocket-var,xvda5,w',
'phy:/dev/debian1/rocket-swap,xvda6,w']
ip = "192.168.1.7"
netmask = "255.255.0.0"
gateway = "192.168.1.1"
hostname = "rocket"
root = "/dev/xvda1 ro"
extra = "console=hvc0 xencons=tty clocksource=jiffies"


So the short of it is that I can confirm that the set up works without
pygrub.  However, I noticed that you specified ext4 in the
xen-tools.cfg and I have seen elsewhere that people have had trouble
with the defaults being wrong when file systems other than ext3 are
specified.

-- 
Matt

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