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

RE: [Xen-users] VM keeps rebooting when building via pxe



No problem Melody. I'll keep working on this and send out the solution if I 
find it

Thanks
Melzer

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

Hrm. Unfortunately, I don't. In both of these cases, it's using pxe to
boot your VM, which will cause it to reinstall.

What you want is it to use a bootloaded to do so. But it sounds like
pygrub isn't working here for you. Hopefully someone else on the list
can get you further. Sorry :(

Mel

On Wed, Feb 2, 2011 at 6:21 AM, Pinto, Melzer <Melzer.Pinto@xxxxxxx> wrote:
> 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.
>



--
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


 


Rackspace

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