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@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2011-Jan-31 21:53 UTC
Re: [Xen-users] VM keeps rebooting when building via pxe
On Tue, Feb 1, 2011 at 4:35 AM, Pinto, Melzer <Melzer.Pinto@sig.com> 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. >Did you change the settings on domU config after installation completed? Usually when you manually install domU using network install, you need two sets of config file: one for installation, one for booting. Sometimes the difference between the two is simply replacing the install kernel/bootloader with pygrub. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Melody Bliss
2011-Jan-31 22:10 UTC
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@sig.com> 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@lists.xensource.com > http://lists.xensource.com/xen-users >-- Melody Bliss Usenix, SAGE and LOPSA Charter Member Patron Member of the NRA _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pinto, Melzer
2011-Feb-02 14:21 UTC
RE: [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@gmail.com] Sent: Monday, January 31, 2011 5:10 PM To: Pinto, Melzer Cc: xen-users@lists.xensource.com 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@sig.com> 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@lists.xensource.com > 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@lists.xensource.com http://lists.xensource.com/xen-users
Melody Bliss
2011-Feb-02 22:32 UTC
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@sig.com> 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@gmail.com] > Sent: Monday, January 31, 2011 5:10 PM > To: Pinto, Melzer > Cc: xen-users@lists.xensource.com > 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@sig.com> 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@lists.xensource.com >> 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 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pinto, Melzer
2011-Feb-03 18:17 UTC
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@gmail.com] Sent: Wednesday, February 02, 2011 5:33 PM To: Pinto, Melzer Cc: xen-users@lists.xensource.com 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@sig.com> 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@gmail.com] > Sent: Monday, January 31, 2011 5:10 PM > To: Pinto, Melzer > Cc: xen-users@lists.xensource.com > 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@sig.com> 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@lists.xensource.com >> 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@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2011-Feb-04 02:23 UTC
Re: [Xen-users] VM keeps rebooting when building via pxe
On Fri, Feb 4, 2011 at 1:17 AM, Pinto, Melzer <Melzer.Pinto@sig.com> wrote:> No problem Melody. I''ll keep working on this and send out the solution if I find it>> 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?What happens when you run pygrub manually? e.g /usr/bin/pygrub -i /var/ovs/mount/ADB5300DA0664B9C8CBDBAC34BFFC5A1/running_pool/52_vm4/System.img -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pinto, Melzer
2011-Feb-04 14:47 UTC
RE: [Xen-users] VM keeps rebooting when building via pxe
Hi Fajar, It displays the boot screen menu and then errors out with /usr/bin/pygrub -i System.img linux (kernel /var/run/xend/boot/boot_kernel.ndiG14)(ramdisk /var/run/xend/boot/boot_ramdisk._NG8ZR)(args "ro root=LABEL=/ rhgb quiet ") Also it doesn''t log anything in the xend.log Thanks Melzer -----Original Message----- From: Fajar A. Nugraha [mailto:list@fajar.net] Sent: Thursday, February 03, 2011 9:24 PM To: Pinto, Melzer Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] VM keeps rebooting when building via pxe On Fri, Feb 4, 2011 at 1:17 AM, Pinto, Melzer <Melzer.Pinto@sig.com> wrote:> No problem Melody. I''ll keep working on this and send out the solution if I find it>> 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?What happens when you run pygrub manually? e.g /usr/bin/pygrub -i /var/ovs/mount/ADB5300DA0664B9C8CBDBAC34BFFC5A1/running_pool/52_vm4/System.img -- Fajar 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@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2011-Feb-04 15:51 UTC
Re: [Xen-users] VM keeps rebooting when building via pxe
On Fri, Feb 4, 2011 at 9:47 PM, Pinto, Melzer <Melzer.Pinto@sig.com> wrote:> Hi Fajar, > It displays the boot screen menu and then errors out with > > /usr/bin/pygrub -i System.img > linux (kernel /var/run/xend/boot/boot_kernel.ndiG14)(ramdisk /var/run/xend/boot/boot_ramdisk._NG8ZR)(args "ro root=LABEL=/ rhgb quiet ")That''s not an error. It''s normal. Next, make sure your bootloader is set to /usr/bin/pygrub, and run xm create -c name_of_your_domU_config_file Note the "-c" in the command. It should display the boot menu (the same one you see when you run "pygrub -i") and boot. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pinto, Melzer
2011-Feb-04 16:00 UTC
RE: [Xen-users] VM keeps rebooting when building via pxe
I tried this a few times already but I gave it a shot again(It''s a different vm from vm4 but its built with the same specs) xm create -c vm.cfg Using config file "./vm.cfg". Error: Boot loader didn''t return any data! cat vm.cfg bootargs = ''bridge=xenbr0,mac=00:16:3E:35:C7:95,type=netfront'' bootloader = ''/usr/bin/pygrub'' disk = [''file:/var/ovs/mount/ADB5300DA0664B9C8CBDBAC34BFFC5A1/running_pool/66_oraclevm3/System.img,xvda,w''] memory = 2048 name = ''66_oraclevm3'' on_crash = ''restart'' on_reboot = ''restart'' uuid = ''da985745-54ec-4387-8d3e-e80f2242b698'' vcpus = 2 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_other_config = [] Thanks Melzer -----Original Message----- From: Fajar A. Nugraha [mailto:list@fajar.net] Sent: Friday, February 04, 2011 10:52 AM To: Pinto, Melzer Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] VM keeps rebooting when building via pxe On Fri, Feb 4, 2011 at 9:47 PM, Pinto, Melzer <Melzer.Pinto@sig.com> wrote:> Hi Fajar, > It displays the boot screen menu and then errors out with > > /usr/bin/pygrub -i System.img > linux (kernel /var/run/xend/boot/boot_kernel.ndiG14)(ramdisk /var/run/xend/boot/boot_ramdisk._NG8ZR)(args "ro root=LABEL=/ rhgb quiet ")That''s not an error. It''s normal. Next, make sure your bootloader is set to /usr/bin/pygrub, and run xm create -c name_of_your_domU_config_file Note the "-c" in the command. It should display the boot menu (the same one you see when you run "pygrub -i") and boot. -- Fajar 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@lists.xensource.com http://lists.xensource.com/xen-users