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] VM keeps rebooting when building via pxe

To: "'Melody Bliss'" <melodybliss@xxxxxxxxx>
Subject: RE: [Xen-users] VM keeps rebooting when building via pxe
From: "Pinto, Melzer" <Melzer.Pinto@xxxxxxx>
Date: Wed, 2 Feb 2011 09:21:50 -0500
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 02 Feb 2011 06:22:39 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTim3Hg0ha5Tt8gk6QtUDcqjVtc3XaT7REGsGmhi6@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: <D74DB38FC0103144AB398D87738D102B09A5DEC05B@xxxxxxxxxxxxxxxxxxxxx> <AANLkTim3Hg0ha5Tt8gk6QtUDcqjVtc3XaT7REGsGmhi6@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcvBk6EkeVNqyB5SSfOZPbBBKJY9IABSfVUQ
Thread-topic: [Xen-users] VM keeps rebooting when building via pxe
Hi Melody,
Thanks for your response.
I tried this again today and here is what I see. I am using Oracle VM manager 
to create the pxe configuration files. When I create the pxe configuration 
file, the following 2 files get created

diff -y vm.cfg vm.cfg.orig
bootargs = 'bridge=xenbr0,mac=00:16:3E:35:C7:95,type=netfront | bootargs = 
'bridge=xenbr0'
bootloader = '/usr/bin/pypxeboot'                               bootloader = 
'/usr/bin/pypxeboot'
disk = ['file:/var/ovs/mount/ADB5300DA0664B9C8CBDBAC34BFFC5A1   disk = 
['file:/var/ovs/mount/ADB5300DA0664B9C8CBDBAC34BFFC5A1
memory = 2048                                                   memory = 2048
name = '66_oraclevm3'                                         | name = 'PXE_pvm'
on_crash = 'restart'                                            on_crash = 
'restart'
on_reboot = 'restart'                                           on_reboot = 
'restart'
uuid = 'da985745-54ec-4387-8d3e-e80f2242b698'                 <
vcpus = 2                                                       vcpus = 2
vfb = ['type=vnc,vncunused=1,vnclisten=0.0.0.0,vncpasswd=ovsr   vfb = 
['type=vnc,vncunused=1,vnclisten=0.0.0.0,vncpasswd=ovsr
vif = ['bridge=xenbr0,mac=00:16:3E:35:C7:95,type=netfront']     vif = 
['bridge=xenbr0,mac=00:16:3E:35:C7:95,type=netfront']
vif_other_config = []                                           
vif_other_config = []

I edit the vm.cfg.orig file with the suggestion you made
on_crash="destroy"
on_reboot="destroy"

I then run a xm create on the vm.cfg file and it starts to pxe  and builds. 
When the build is completed it goes back to rebuilding the host again. I then 
edited the pypxeboot line to pygrub in vm.cfg but now it returns with a "Error: 
Boot loader didn't return any data!" error

Any thoughts on this and what needs to be changed in these steps?

Thanks
Melzer


-----Original Message-----
From: Melody Bliss [mailto:melodybliss@xxxxxxxxx]
Sent: Monday, January 31, 2011 5:10 PM
To: Pinto, Melzer
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] VM keeps rebooting when building via pxe

You want
on_crash="destroy"
on_reboot="destroy"

instead of restart. Then, upon reboot, it will destroy the current VM.
You'd then used a running config that uses pygrub as your bootloaded
instead. This config would have

on_reboot="restart"
on_crash="restart"

Mel


On Mon, Jan 31, 2011 at 1:35 PM, Pinto, Melzer <Melzer.Pinto@xxxxxxx> wrote:
> Hi,
>
> I am trying to build a Xen VM(THEL 5.3 and OEL 5.5) via pxe boot. I'm able
> to get the dhcp and tftp servers to respond to the pxe request and the VM
> starts building. However when it reboots it goes back to building again
> instead of booting up. Has anyone seen this kind of behavior before? I tried
> both RHEL and OEL. I think the problem might be bootloader pypxeboot line
> but I'm not sure. Here is the vm.cfg
>
>
>
> bootargs = 'bridge=xenbr0,mac=00:16:3E:35:C7:95,type=netfront'
>
> bootloader = '/usr/bin/pypxeboot'
>
> disk =
> ['file:/var/ovs/mount/ADB5300DA0664B9C8CBDBAC34BFFC5A1/running_pool/52_vm4/System.img,xvda,w']
>
> memory = 2048
>
> name = '52_vm4'
>
> on_crash = 'restart'
>
> on_reboot = 'restart'
>
> uuid = '25fd9fa0-e383-4e11-98d8-1921d787547a'
>
> vcpus = 2
>
> vfb = ['type=vnc,vncunused=1,vnclisten=0.0.0.0,vncpasswd=xxxxxx']
>
> vif = ['bridge=xenbr0,mac=00:16:3E:35:C7:95,type=netfront']
>
> vif_other_config = []
>
>
>
> Thanks
>
> Melzer Pinto
>
>
>
> ________________________________
> IMPORTANT: The information contained in this email and/or its attachments is
> confidential. If you are not the intended recipient, please notify the
> sender immediately by reply and immediately delete this message and all its
> attachments. Any review, use, reproduction, disclosure or dissemination of
> this message or any attachment by an unintended recipient is strictly
> prohibited. Neither this message nor any attachment is intended as or should
> be construed as an offer, solicitation or recommendation to buy or sell any
> security or other financial instrument. Neither the sender, his or her
> employer nor any of their respective affiliates makes any warranties as to
> the completeness or accuracy of any of the information contained herein or
> that this message or any of its attachments is free of viruses.
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>



--
Melody Bliss
Usenix, SAGE and LOPSA Charter Member
Patron Member of the NRA

IMPORTANT: The information contained in this email and/or its attachments is 
confidential. If you are not the intended recipient, please notify the sender 
immediately by reply and immediately delete this message and all its 
attachments. Any review, use, reproduction, disclosure or dissemination of this 
message or any attachment by an unintended recipient is strictly prohibited. 
Neither this message nor any attachment is intended as or should be construed 
as an offer, solicitation or recommendation to buy or sell any security or 
other financial instrument. Neither the sender, his or her employer nor any of 
their respective affiliates makes any warranties as to the completeness or 
accuracy of any of the information contained herein or that this message or any 
of its attachments is free of viruses.

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