All,
I'm somewhat confounded by what I'm seeing when using KOAN. I have a machine running CentOS 6.4 and installed CentOS-Xen using para virtualization (my hardware on this box doesn't support full virtualization)...
I had an old VM I created under CentOS 5.9 Xen which I migrated over to this new machine and it runs fine...
However, I am trying to spin up a new VM and what I see happening is the install proceeds as expected (again using KOAN). I see in VNC when the boot loader installs and then the VM attempts to reboot and run... What it does next is not expected: the install proceeds again...and this continues forever... Once it reinstalls, it reboots and reinstalls again...
This all works fine under CentOS 5.x - so it could be Xen 4.2 or it could just be me :) Which, BTW, CentOS-Xen is 4.2 I believe.
Thanks ahead of time...
Flossy
it is because of the "Netboot Enabled" flag in cobbler.
After the node begins its kickstart either change netboot enabled to false (unchecked) in GUI or run the following command:
cobbler system edit --name=<hostname> --netboot-enabled=0
That should fix it for you.
Make sure you do it AFTER it begins PXE (so during DHCP stage is fine, right after it gets its IP).
On 11/26/13, 9:30 AM, Scot Floess wrote:
All,
I'm somewhat confounded by what I'm seeing when using KOAN. I have a machine running CentOS 6.4 and installed CentOS-Xen using para virtualization (my hardware on this box doesn't support full virtualization)...
I had an old VM I created under CentOS 5.9 Xen which I migrated over to this new machine and it runs fine...
However, I am trying to spin up a new VM and what I see happening is the install proceeds as expected (again using KOAN). I see in VNC when the boot loader installs and then the VM attempts to reboot and run... What it does next is not expected: the install proceeds again...and this continues forever... Once it reinstalls, it reboots and reinstalls again...
This all works fine under CentOS 5.x - so it could be Xen 4.2 or it could just be me :) Which, BTW, CentOS-Xen is 4.2 I believe.
Thanks ahead of time...
Flossy
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
Bryan,
Thanks for the response!
Alas this isn't a netboot problem - although at first glance I thought you were correct. Unfortunately, I'm watching my VM reinstall itself again :(
It's almost like I "koan --replace-self" but that's not what I told it to do. In fact, this is what I executed:
koan --server=cobbler --system=centos-workstation --virt
I literally see the VM install itself, bootloader installs then the VM shutdown and is started up again and its as if I initiated the original " koan --server=cobbler --system=centos-workstation --virt"
Flossy
----- Original Message -----
From: "Bryan Hughes" bhughes@gisfederal.com To: "cobbler mailing list" cobbler@lists.fedorahosted.org Sent: Tuesday, November 26, 2013 11:24:53 AM Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
it is because of the "Netboot Enabled" flag in cobbler.
After the node begins its kickstart either change netboot enabled to false (unchecked) in GUI or run the following command:
cobbler system edit --name=<hostname> --netboot-enabled=0
That should fix it for you.
Make sure you do it AFTER it begins PXE (so during DHCP stage is fine, right after it gets its IP).
On 11/26/13, 9:30 AM, Scot Floess wrote:
All,
I'm somewhat confounded by what I'm seeing when using KOAN. I have a machine running CentOS 6.4 and installed CentOS-Xen using para virtualization (my hardware on this box doesn't support full virtualization)...
I had an old VM I created under CentOS 5.9 Xen which I migrated over to this new machine and it runs fine...
However, I am trying to spin up a new VM and what I see happening is the install proceeds as expected (again using KOAN). I see in VNC when the boot loader installs and then the VM attempts to reboot and run... What it does next is not expected: the install proceeds again...and this continues forever... Once it reinstalls, it reboots and reinstalls again...
This all works fine under CentOS 5.x - so it could be Xen 4.2 or it could just be me :) Which, BTW, CentOS-Xen is 4.2 I believe.
Thanks ahead of time...
Flossy
--
Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
I should say I also tried setting netboot-enabled to 0 and verify its not enabled in the UI...
----- Original Message -----
From: "Scot Floess" sfloess@redhat.com To: "cobbler mailing list" cobbler@lists.fedorahosted.org Sent: Tuesday, November 26, 2013 12:33:29 PM Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Bryan,
Thanks for the response!
Alas this isn't a netboot problem - although at first glance I thought you were correct. Unfortunately, I'm watching my VM reinstall itself again :(
It's almost like I "koan --replace-self" but that's not what I told it to do. In fact, this is what I executed:
koan --server=cobbler --system=centos-workstation --virt
I literally see the VM install itself, bootloader installs then the VM shutdown and is started up again and its as if I initiated the original " koan --server=cobbler --system=centos-workstation --virt"
Flossy
----- Original Message -----
From: "Bryan Hughes" bhughes@gisfederal.com
To: "cobbler mailing list" cobbler@lists.fedorahosted.org
Sent: Tuesday, November 26, 2013 11:24:53 AM
Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
it is because of the "Netboot Enabled" flag in cobbler.
After the node begins its kickstart either change netboot enabled to false (unchecked) in GUI or run the following command:
cobbler system edit --name=<hostname> --netboot-enabled=0
That should fix it for you.
Make sure you do it AFTER it begins PXE (so during DHCP stage is fine, right after it gets its IP).
On 11/26/13, 9:30 AM, Scot Floess wrote:
All,
I'm somewhat confounded by what I'm seeing when using KOAN. I have a machine running CentOS 6.4 and installed CentOS-Xen using para virtualization (my hardware on this box doesn't support full virtualization)...
I had an old VM I created under CentOS 5.9 Xen which I migrated over to this new machine and it runs fine...
However, I am trying to spin up a new VM and what I see happening is the install proceeds as expected (again using KOAN). I see in VNC when the boot loader installs and then the VM attempts to reboot and run... What it does next is not expected: the install proceeds again...and this continues forever... Once it reinstalls, it reboots and reinstalls again...
This all works fine under CentOS 5.x - so it could be Xen 4.2 or it could just be me :) Which, BTW, CentOS-Xen is 4.2 I believe.
Thanks ahead of time...
Flossy
--
Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list
cobbler@lists.fedorahosted.org
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
Do you also have the kickstart done ($SNIPPET('kickstart_done')) snippet included in your %post section? That is the piece which notifies the cobbler server the PXE is complete and toggles the netboot-enabled flag.
On Tue, Nov 26, 2013 at 11:37 AM, Scot Floess sfloess@redhat.com wrote:
I should say I also tried setting netboot-enabled to 0 and verify its not enabled in the UI...
*From: *"Scot Floess" sfloess@redhat.com *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Tuesday, November 26, 2013 12:33:29 PM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Bryan,
Thanks for the response!
Alas this isn't a netboot problem - although at first glance I thought you were correct. Unfortunately, I'm watching my VM reinstall itself again :(
It's almost like I "koan --replace-self" but that's not what I told it to do. In fact, this is what I executed:
koan --server=cobbler --system=centos-workstation --virt
I literally see the VM install itself, bootloader installs then the VM shutdown and is started up again and its as if I initiated the original "koan --server=cobbler --system=centos-workstation --virt"
Flossy
*From: *"Bryan Hughes" bhughes@gisfederal.com *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Tuesday, November 26, 2013 11:24:53 AM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
it is because of the "Netboot Enabled" flag in cobbler.
After the node begins its kickstart either change netboot enabled to false (unchecked) in GUI or run the following command:
cobbler system edit --name=<hostname> --netboot-enabled=0
That should fix it for you.
Make sure you do it AFTER it begins PXE (so during DHCP stage is fine, right after it gets its IP).
On 11/26/13, 9:30 AM, Scot Floess wrote:
All,
I'm somewhat confounded by what I'm seeing when using KOAN. I have a machine running CentOS 6.4 and installed CentOS-Xen using para virtualization (my hardware on this box doesn't support full virtualization)...
I had an old VM I created under CentOS 5.9 Xen which I migrated over to this new machine and it runs fine...
However, I am trying to spin up a new VM and what I see happening is the install proceeds as expected (again using KOAN). I see in VNC when the boot loader installs and then the VM attempts to reboot and run... What it does next is not expected: the install proceeds again...and this continues forever... Once it reinstalls, it reboots and reinstalls again...
This all works fine under CentOS 5.x - so it could be Xen 4.2 or it could just be me :) Which, BTW, CentOS-Xen is 4.2 I believe.
Thanks ahead of time...
Flossy
-- Make It So Number One
cobbler mailing listcobbler@lists.fedorahosted.orghttps://lists.fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
James,
Interesting!
So I have an old kickstart I've been using since Cobbler 1.6x days... In it I have $kickstart_done - but when executing
cobbler system getks --name=centos-workstation
I see it is not expanded!
So I added the snippet to the end of my kickstart like so:
$SNIPPET('kickstart_done')
And now see:
wget "http://cobbler/cblr/svc/op/ks/system/centos-workstation" -O /root/cobbler.ks wget "http://cobbler/cblr/svc/op/trig/mode/post/system/centos-workstation" -O /dev/null
However, I am still getting the reinstall happening...
----- Original Message -----
From: "James Cammarata" jimi@sngx.net To: "cobbler mailing list" cobbler@lists.fedorahosted.org Sent: Tuesday, November 26, 2013 1:37:53 PM Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Do you also have the kickstart done ($SNIPPET('kickstart_done')) snippet included in your %post section? That is the piece which notifies the cobbler server the PXE is complete and toggles the netboot-enabled flag.
On Tue, Nov 26, 2013 at 11:37 AM, Scot Floess < sfloess@redhat.com > wrote:
<blockquote>
I should say I also tried setting netboot-enabled to 0 and verify its not enabled in the UI...
<blockquote> From: "Scot Floess" < sfloess@redhat.com > To: "cobbler mailing list" < cobbler@lists.fedorahosted.org > Sent: Tuesday, November 26, 2013 12:33:29 PM Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Bryan,
Thanks for the response!
Alas this isn't a netboot problem - although at first glance I thought you were correct. Unfortunately, I'm watching my VM reinstall itself again :(
It's almost like I "koan --replace-self" but that's not what I told it to do. In fact, this is what I executed:
koan --server=cobbler --system=centos-workstation --virt
I literally see the VM install itself, bootloader installs then the VM shutdown and is started up again and its as if I initiated the original " koan --server=cobbler --system=centos-workstation --virt"
Flossy
<blockquote> From: "Bryan Hughes" < bhughes@gisfederal.com > To: "cobbler mailing list" < cobbler@lists.fedorahosted.org > Sent: Tuesday, November 26, 2013 11:24:53 AM Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
it is because of the "Netboot Enabled" flag in cobbler.
After the node begins its kickstart either change netboot enabled to false (unchecked) in GUI or run the following command:
cobbler system edit --name=<hostname> --netboot-enabled=0
That should fix it for you.
Make sure you do it AFTER it begins PXE (so during DHCP stage is fine, right after it gets its IP).
On 11/26/13, 9:30 AM, Scot Floess wrote:
<blockquote>
All,
I'm somewhat confounded by what I'm seeing when using KOAN. I have a machine running CentOS 6.4 and installed CentOS-Xen using para virtualization (my hardware on this box doesn't support full virtualization)...
I had an old VM I created under CentOS 5.9 Xen which I migrated over to this new machine and it runs fine...
However, I am trying to spin up a new VM and what I see happening is the install proceeds as expected (again using KOAN). I see in VNC when the boot loader installs and then the VM attempts to reboot and run... What it does next is not expected: the install proceeds again...and this continues forever... Once it reinstalls, it reboots and reinstalls again...
This all works fine under CentOS 5.x - so it could be Xen 4.2 or it could just be me :) Which, BTW, CentOS-Xen is 4.2 I believe.
Thanks ahead of time...
Flossy
James,
Curious - is something from the kickstart_done that does the right thing as far as ensuring "kick start" that KOAN initially uses isn't copied over or something like that? To be honest, that's what it feels like is happening ... once installed the VM doesn't have the ability to boot off the installed bootloader and then simply uses the same "kickstart" to reinstall again...
I don't know if this may be the issue but at the end of my kickstart, it looks liek the following:
$SNIPPET('kickstart_done')
%end Is that out of order maybe?
Thanks!
Flossy
----- Original Message -----
From: "Scot Floess" sfloess@redhat.com To: "cobbler mailing list" cobbler@lists.fedorahosted.org Sent: Tuesday, November 26, 2013 2:20:34 PM Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
James,
Interesting!
So I have an old kickstart I've been using since Cobbler 1.6x days... In it I have $kickstart_done - but when executing
cobbler system getks --name=centos-workstation
I see it is not expanded!
So I added the snippet to the end of my kickstart like so:
$SNIPPET('kickstart_done')
And now see:
wget "http://cobbler/cblr/svc/op/ks/system/centos-workstation" -O /root/cobbler.ks wget "http://cobbler/cblr/svc/op/trig/mode/post/system/centos-workstation" -O /dev/null
However, I am still getting the reinstall happening...
----- Original Message -----
From: "James Cammarata" jimi@sngx.net
To: "cobbler mailing list" cobbler@lists.fedorahosted.org
Sent: Tuesday, November 26, 2013 1:37:53 PM
Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Do you also have the kickstart done ($SNIPPET('kickstart_done')) snippet included in your %post section? That is the piece which notifies the cobbler server the PXE is complete and toggles the netboot-enabled flag.
On Tue, Nov 26, 2013 at 11:37 AM, Scot Floess < sfloess@redhat.com > wrote:
I should say I also tried setting netboot-enabled to 0 and verify its not enabled in the UI...
From: "Scot Floess" < sfloess@redhat.com >
To: "cobbler mailing list" < cobbler@lists.fedorahosted.org >
Sent: Tuesday, November 26, 2013 12:33:29 PM
Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Bryan,
Thanks for the response!
Alas this isn't a netboot problem - although at first glance I thought you were correct. Unfortunately, I'm watching my VM reinstall itself again :(
It's almost like I "koan --replace-self" but that's not what I told it to do. In fact, this is what I executed:
koan --server=cobbler --system=centos-workstation --virt
I literally see the VM install itself, bootloader installs then the VM shutdown and is started up again and its as if I initiated the original " koan --server=cobbler --system=centos-workstation --virt"
Flossy
From: "Bryan Hughes" < bhughes@gisfederal.com >
To: "cobbler mailing list" < cobbler@lists.fedorahosted.org >
Sent: Tuesday, November 26, 2013 11:24:53 AM
Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
it is because of the "Netboot Enabled" flag in cobbler.
After the node begins its kickstart either change netboot enabled to false (unchecked) in GUI or run the following command:
cobbler system edit --name=<hostname> --netboot-enabled=0
That should fix it for you.
Make sure you do it AFTER it begins PXE (so during DHCP stage is fine, right after it gets its IP).
On 11/26/13, 9:30 AM, Scot Floess wrote:
All,
I'm somewhat confounded by what I'm seeing when using KOAN. I have a machine running CentOS 6.4 and installed CentOS-Xen using para virtualization (my hardware on this box doesn't support full virtualization)...
I had an old VM I created under CentOS 5.9 Xen which I migrated over to this new machine and it runs fine...
However, I am trying to spin up a new VM and what I see happening is the install proceeds as expected (again using KOAN). I see in VNC when the boot loader installs and then the VM attempts to reboot and run... What it does next is not expected: the install proceeds again...and this continues forever... Once it reinstalls, it reboots and reinstalls again...
This all works fine under CentOS 5.x - so it could be Xen 4.2 or it could just be me :) Which, BTW, CentOS-Xen is 4.2 I believe.
Thanks ahead of time...
Flossy
--
Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list
cobbler@lists.fedorahosted.org
--
Make It So Number One
cobbler mailing list
cobbler@lists.fedorahosted.org
--
Make It So Number One
cobbler mailing list
cobbler@lists.fedorahosted.org
cobbler mailing list
cobbler@lists.fedorahosted.org
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
Yes, it should be the last thing before the %end, as you have it.
Have you also set pxe_just_once:1 in your cobbler settings?
On Wed, Nov 27, 2013 at 1:44 PM, Scot Floess sfloess@redhat.com wrote:
James,
Curious - is something from the kickstart_done that does the right thing as far as ensuring "kick start" that KOAN initially uses isn't copied over or something like that? To be honest, that's what it feels like is happening ... once installed the VM doesn't have the ability to boot off the installed bootloader and then simply uses the same "kickstart" to reinstall again...
I don't know if this may be the issue but at the end of my kickstart, it looks liek the following:
$SNIPPET('kickstart_done')
%end Is that out of order maybe?
Thanks!
Flossy
*From: *"Scot Floess" sfloess@redhat.com *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Tuesday, November 26, 2013 2:20:34 PM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
James,
Interesting!
So I have an old kickstart I've been using since Cobbler 1.6x days... In it I have $kickstart_done - but when executing
cobbler system getks --name=centos-workstation
I see it is not expanded!
So I added the snippet to the end of my kickstart like so:
$SNIPPET('kickstart_done')
And now see:
wget "http://cobbler/cblr/svc/op/ks/system/centos-workstation" -O /root/cobbler.ks wget "http://cobbler/cblr/svc/op/trig/mode/post/system/centos-workstation" -O /dev/null
However, I am still getting the reinstall happening...
*From: *"James Cammarata" jimi@sngx.net *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Tuesday, November 26, 2013 1:37:53 PM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Do you also have the kickstart done ($SNIPPET('kickstart_done')) snippet included in your %post section? That is the piece which notifies the cobbler server the PXE is complete and toggles the netboot-enabled flag.
On Tue, Nov 26, 2013 at 11:37 AM, Scot Floess sfloess@redhat.com wrote:
I should say I also tried setting netboot-enabled to 0 and verify its not enabled in the UI...
*From: *"Scot Floess" sfloess@redhat.com *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Tuesday, November 26, 2013 12:33:29 PM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Bryan,
Thanks for the response!
Alas this isn't a netboot problem - although at first glance I thought you were correct. Unfortunately, I'm watching my VM reinstall itself again :(
It's almost like I "koan --replace-self" but that's not what I told it to do. In fact, this is what I executed:
koan --server=cobbler --system=centos-workstation --virt
I literally see the VM install itself, bootloader installs then the VM shutdown and is started up again and its as if I initiated the original "koan --server=cobbler --system=centos-workstation --virt"
Flossy
*From: *"Bryan Hughes" bhughes@gisfederal.com *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Tuesday, November 26, 2013 11:24:53 AM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
it is because of the "Netboot Enabled" flag in cobbler.
After the node begins its kickstart either change netboot enabled to false (unchecked) in GUI or run the following command:
cobbler system edit --name=<hostname> --netboot-enabled=0
That should fix it for you.
Make sure you do it AFTER it begins PXE (so during DHCP stage is fine, right after it gets its IP).
On 11/26/13, 9:30 AM, Scot Floess wrote:
All,
I'm somewhat confounded by what I'm seeing when using KOAN. I have a machine running CentOS 6.4 and installed CentOS-Xen using para virtualization (my hardware on this box doesn't support full virtualization)...
I had an old VM I created under CentOS 5.9 Xen which I migrated over to this new machine and it runs fine...
However, I am trying to spin up a new VM and what I see happening is the install proceeds as expected (again using KOAN). I see in VNC when the boot loader installs and then the VM attempts to reboot and run... What it does next is not expected: the install proceeds again...and this continues forever... Once it reinstalls, it reboots and reinstalls again...
This all works fine under CentOS 5.x - so it could be Xen 4.2 or it could just be me :) Which, BTW, CentOS-Xen is 4.2 I believe.
Thanks ahead of time...
Flossy
-- Make It So Number One
cobbler mailing listcobbler@lists.fedorahosted.orghttps://lists.fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
James,
OK I ensured:
/etc/cobbler/settings:
pxe_just_once: 1
-and-
My kickstart ends with:
$SNIPPET('kickstart_done')
%end
I'm seeing exactly the same behavior... In fact I just koan'd a new instance and its now on it's second install all by itself...
I am absolutely at a loss... This all worked for me using stock CentOS 5.x hosts... Really the difference is I'm using Xen as supported under CentOS 6.4 - so not sure if that has anything to do with this or not... ----- Original Message -----
From: "James Cammarata" jimi@sngx.net To: "cobbler mailing list" cobbler@lists.fedorahosted.org Sent: Wednesday, November 27, 2013 2:59:37 PM Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Yes, it should be the last thing before the %end, as you have it.
Have you also set pxe_just_once:1 in your cobbler settings?
On Wed, Nov 27, 2013 at 1:44 PM, Scot Floess < sfloess@redhat.com > wrote:
James,
Curious - is something from the kickstart_done that does the right thing as far as ensuring "kick start" that KOAN initially uses isn't copied over or something like that? To be honest, that's what it feels like is happening ... once installed the VM doesn't have the ability to boot off the installed bootloader and then simply uses the same "kickstart" to reinstall again...
I don't know if this may be the issue but at the end of my kickstart, it looks liek the following:
$SNIPPET('kickstart_done')
%end
Is that out of order maybe?
Thanks!
Flossy
From: "Scot Floess" < sfloess@redhat.com >
To: "cobbler mailing list" < cobbler@lists.fedorahosted.org >
Sent: Tuesday, November 26, 2013 2:20:34 PM
Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
James,
Interesting!
So I have an old kickstart I've been using since Cobbler 1.6x days... In it I have $kickstart_done - but when executing
cobbler system getks --name=centos-workstation
I see it is not expanded!
So I added the snippet to the end of my kickstart like so:
$SNIPPET('kickstart_done')
And now see:
wget " http://cobbler/cblr/svc/op/ks/system/centos-workstation " -O /root/cobbler.ks
wget " http://cobbler/cblr/svc/op/trig/mode/post/system/centos-workstation " -O /dev/null
However, I am still getting the reinstall happening...
From: "James Cammarata" < jimi@sngx.net >
To: "cobbler mailing list" < cobbler@lists.fedorahosted.org >
Sent: Tuesday, November 26, 2013 1:37:53 PM
Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Do you also have the kickstart done ($SNIPPET('kickstart_done')) snippet included in your %post section? That is the piece which notifies the cobbler server the PXE is complete and toggles the netboot-enabled flag.
On Tue, Nov 26, 2013 at 11:37 AM, Scot Floess < sfloess@redhat.com > wrote:
I should say I also tried setting netboot-enabled to 0 and verify its not enabled in the UI...
From: "Scot Floess" < sfloess@redhat.com >
To: "cobbler mailing list" < cobbler@lists.fedorahosted.org >
Sent: Tuesday, November 26, 2013 12:33:29 PM
Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Bryan,
Thanks for the response!
Alas this isn't a netboot problem - although at first glance I thought you were correct. Unfortunately, I'm watching my VM reinstall itself again :(
It's almost like I "koan --replace-self" but that's not what I told it to do. In fact, this is what I executed:
koan --server=cobbler --system=centos-workstation --virt
I literally see the VM install itself, bootloader installs then the VM shutdown and is started up again and its as if I initiated the original " koan --server=cobbler --system=centos-workstation --virt"
Flossy
> From: "Bryan Hughes" < bhughes@gisfederal.com >
> To: "cobbler mailing list" < cobbler@lists.fedorahosted.org >
> Sent: Tuesday, November 26, 2013 11:24:53 AM
> Subject: Re: [cobbler] Using KOAN to install a VM under CentOS > 6.4 > using > CentOS Xen...it installs over and over again
> it is because of the "Netboot Enabled" flag in cobbler.
> After the node begins its kickstart either change netboot enabled > to > false > (unchecked) in GUI or run the following command:
> cobbler system edit --name=<hostname> --netboot-enabled=0
> That should fix it for you.
> Make sure you do it AFTER it begins PXE (so during DHCP stage is > fine, > right > after it gets its IP).
> On 11/26/13, 9:30 AM, Scot Floess wrote:
> > All, >
> > I'm somewhat confounded by what I'm seeing when using KOAN. I > > have > > a > > machine > > running CentOS 6.4 and installed CentOS-Xen using para > > virtualization > > (my > > hardware on this box doesn't support full virtualization)... >
> > I had an old VM I created under CentOS 5.9 Xen which I migrated > > over > > to > > this > > new machine and it runs fine... >
> > However, I am trying to spin up a new VM and what I see > > happening > > is > > the > > install proceeds as expected (again using KOAN). I see in VNC > > when > > the > > boot > > loader installs and then the VM attempts to reboot and run... > > What > > it > > does > > next is not expected: the install proceeds again...and this > > continues > > forever... Once it reinstalls, it reboots and reinstalls > > again... >
> > This all works fine under CentOS 5.x - so it could be Xen 4.2 > > or > > it > > could > > just be me :) Which, BTW, CentOS-Xen is 4.2 I believe. >
> > Thanks ahead of time... >
> > Flossy >
> > -- >
> > Make It So Number One >
> > _______________________________________________ >
> > cobbler mailing list cobbler@lists.fedorahosted.org > > https://lists.fedorahosted.org/mailman/listinfo/cobbler >
> _______________________________________________
> cobbler mailing list
> cobbler@lists.fedorahosted.org
--
Make It So Number One
cobbler mailing list
cobbler@lists.fedorahosted.org
--
Make It So Number One
cobbler mailing list
cobbler@lists.fedorahosted.org
cobbler mailing list
cobbler@lists.fedorahosted.org
--
Make It So Number One
cobbler mailing list
cobbler@lists.fedorahosted.org
--
Make It So Number One
cobbler mailing list
cobbler@lists.fedorahosted.org
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
Did you restart cobblerd after making the settings change? You should also be seeing this in the output from the kickstart_done snippet:
wget "http://x.x.x.x/cblr/svc/op/nopxe/system/foo" -O /dev/null
That is the trigger to disable the netboot flag.
On Wed, Nov 27, 2013 at 2:41 PM, Scot Floess sfloess@redhat.com wrote:
James,
OK I ensured:
/etc/cobbler/settings:
pxe_just_once: 1
-and-
My kickstart ends with:
$SNIPPET('kickstart_done')
%end
I'm seeing exactly the same behavior... In fact I just koan'd a new instance and its now on it's second install all by itself...
I am absolutely at a loss... This all worked for me using stock CentOS 5.x hosts... Really the difference is I'm using Xen as supported under CentOS 6.4 - so not sure if that has anything to do with this or not...
*From: *"James Cammarata" jimi@sngx.net *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Wednesday, November 27, 2013 2:59:37 PM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Yes, it should be the last thing before the %end, as you have it.
Have you also set pxe_just_once:1 in your cobbler settings?
On Wed, Nov 27, 2013 at 1:44 PM, Scot Floess sfloess@redhat.com wrote:
James,
Curious - is something from the kickstart_done that does the right thing as far as ensuring "kick start" that KOAN initially uses isn't copied over or something like that? To be honest, that's what it feels like is happening ... once installed the VM doesn't have the ability to boot off the installed bootloader and then simply uses the same "kickstart" to reinstall again...
I don't know if this may be the issue but at the end of my kickstart, it looks liek the following:
$SNIPPET('kickstart_done')
%end Is that out of order maybe?
Thanks!
Flossy
*From: *"Scot Floess" sfloess@redhat.com *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Tuesday, November 26, 2013 2:20:34 PM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
James,
Interesting!
So I have an old kickstart I've been using since Cobbler 1.6x days... In it I have $kickstart_done - but when executing
cobbler system getks --name=centos-workstation
I see it is not expanded!
So I added the snippet to the end of my kickstart like so:
$SNIPPET('kickstart_done')
And now see:
wget "http://cobbler/cblr/svc/op/ks/system/centos-workstation" -O /root/cobbler.ks wget "http://cobbler/cblr/svc/op/trig/mode/post/system/centos-workstation" -O /dev/null
However, I am still getting the reinstall happening...
*From: *"James Cammarata" jimi@sngx.net *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Tuesday, November 26, 2013 1:37:53 PM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Do you also have the kickstart done ($SNIPPET('kickstart_done')) snippet included in your %post section? That is the piece which notifies the cobbler server the PXE is complete and toggles the netboot-enabled flag.
On Tue, Nov 26, 2013 at 11:37 AM, Scot Floess sfloess@redhat.com wrote:
I should say I also tried setting netboot-enabled to 0 and verify its not enabled in the UI...
*From: *"Scot Floess" sfloess@redhat.com *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Tuesday, November 26, 2013 12:33:29 PM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Bryan,
Thanks for the response!
Alas this isn't a netboot problem - although at first glance I thought you were correct. Unfortunately, I'm watching my VM reinstall itself again :(
It's almost like I "koan --replace-self" but that's not what I told it to do. In fact, this is what I executed:
koan --server=cobbler --system=centos-workstation --virt
I literally see the VM install itself, bootloader installs then the VM shutdown and is started up again and its as if I initiated the original "koan --server=cobbler --system=centos-workstation --virt"
Flossy
*From: *"Bryan Hughes" bhughes@gisfederal.com *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Tuesday, November 26, 2013 11:24:53 AM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
it is because of the "Netboot Enabled" flag in cobbler.
After the node begins its kickstart either change netboot enabled to false (unchecked) in GUI or run the following command:
cobbler system edit --name=<hostname> --netboot-enabled=0
That should fix it for you.
Make sure you do it AFTER it begins PXE (so during DHCP stage is fine, right after it gets its IP).
On 11/26/13, 9:30 AM, Scot Floess wrote:
All,
I'm somewhat confounded by what I'm seeing when using KOAN. I have a machine running CentOS 6.4 and installed CentOS-Xen using para virtualization (my hardware on this box doesn't support full virtualization)...
I had an old VM I created under CentOS 5.9 Xen which I migrated over to this new machine and it runs fine...
However, I am trying to spin up a new VM and what I see happening is the install proceeds as expected (again using KOAN). I see in VNC when the boot loader installs and then the VM attempts to reboot and run... What it does next is not expected: the install proceeds again...and this continues forever... Once it reinstalls, it reboots and reinstalls again...
This all works fine under CentOS 5.x - so it could be Xen 4.2 or it could just be me :) Which, BTW, CentOS-Xen is 4.2 I believe.
Thanks ahead of time...
Flossy
-- Make It So Number One
cobbler mailing listcobbler@lists.fedorahosted.orghttps://lists.fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
James,
I did restart cobblerd...
And this is literally what I see now when issuing:
cobbler system getks --name=centos-workstation
Result:
wget "http://cobbler/cblr/svc/op/ks/system/centos-workstation" -O /root/cobbler.ks wget "http://cobbler/cblr/svc/op/trig/mode/post/system/centos-workstation" -O /dev/null wget "http://cobbler/cblr/svc/op/nopxe/system/centos-workstation" -O /dev/null
%end
----- Original Message -----
From: "James Cammarata" jimi@sngx.net To: "cobbler mailing list" cobbler@lists.fedorahosted.org Sent: Wednesday, November 27, 2013 3:47:37 PM Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Did you restart cobblerd after making the settings change? You should also be seeing this in the output from the kickstart_done snippet:
wget " http://x.x.x.x/cblr/svc/op/nopxe/system/foo " -O /dev/null
That is the trigger to disable the netboot flag.
On Wed, Nov 27, 2013 at 2:41 PM, Scot Floess < sfloess@redhat.com > wrote:
James,
OK I ensured:
/etc/cobbler/settings:
pxe_just_once: 1
-and-
My kickstart ends with:
$SNIPPET('kickstart_done')
%end
I'm seeing exactly the same behavior... In fact I just koan'd a new instance and its now on it's second install all by itself...
I am absolutely at a loss... This all worked for me using stock CentOS 5.x hosts... Really the difference is I'm using Xen as supported under CentOS 6.4 - so not sure if that has anything to do with this or not...
From: "James Cammarata" < jimi@sngx.net >
To: "cobbler mailing list" < cobbler@lists.fedorahosted.org >
Sent: Wednesday, November 27, 2013 2:59:37 PM
Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Yes, it should be the last thing before the %end, as you have it.
Have you also set pxe_just_once:1 in your cobbler settings?
On Wed, Nov 27, 2013 at 1:44 PM, Scot Floess < sfloess@redhat.com > wrote:
James,
Curious - is something from the kickstart_done that does the right thing as far as ensuring "kick start" that KOAN initially uses isn't copied over or something like that? To be honest, that's what it feels like is happening ... once installed the VM doesn't have the ability to boot off the installed bootloader and then simply uses the same "kickstart" to reinstall again...
I don't know if this may be the issue but at the end of my kickstart, it looks liek the following:
$SNIPPET('kickstart_done')
%end
Is that out of order maybe?
Thanks!
Flossy
From: "Scot Floess" < sfloess@redhat.com >
To: "cobbler mailing list" < cobbler@lists.fedorahosted.org >
Sent: Tuesday, November 26, 2013 2:20:34 PM
Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
James,
Interesting!
So I have an old kickstart I've been using since Cobbler 1.6x days... In it I have $kickstart_done - but when executing
cobbler system getks --name=centos-workstation
I see it is not expanded!
So I added the snippet to the end of my kickstart like so:
$SNIPPET('kickstart_done')
And now see:
wget " http://cobbler/cblr/svc/op/ks/system/centos-workstation " -O /root/cobbler.ks
wget " http://cobbler/cblr/svc/op/trig/mode/post/system/centos-workstation " -O /dev/null
However, I am still getting the reinstall happening...
From: "James Cammarata" < jimi@sngx.net >
To: "cobbler mailing list" < cobbler@lists.fedorahosted.org >
Sent: Tuesday, November 26, 2013 1:37:53 PM
Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Do you also have the kickstart done ($SNIPPET('kickstart_done')) snippet included in your %post section? That is the piece which notifies the cobbler server the PXE is complete and toggles the netboot-enabled flag.
On Tue, Nov 26, 2013 at 11:37 AM, Scot Floess < sfloess@redhat.com > wrote:
> I should say I also tried setting netboot-enabled to 0 and verify > its > not > enabled in the UI...
> > From: "Scot Floess" < sfloess@redhat.com > >
> > To: "cobbler mailing list" < cobbler@lists.fedorahosted.org > >
> > Sent: Tuesday, November 26, 2013 12:33:29 PM >
> > Subject: Re: [cobbler] Using KOAN to install a VM under CentOS > > 6.4 > > using > > CentOS Xen...it installs over and over again >
> > Bryan, >
> > Thanks for the response! >
> > Alas this isn't a netboot problem - although at first glance I > > thought > > you > > were correct. Unfortunately, I'm watching my VM reinstall > > itself > > again > > :( >
> > It's almost like I "koan --replace-self" but that's not what I > > told > > it > > to > > do. > > In fact, this is what I executed: >
> > koan --server=cobbler --system=centos-workstation --virt >
> > I literally see the VM install itself, bootloader installs then > > the > > VM > > shutdown and is started up again and its as if I initiated the > > original > > " > > koan --server=cobbler --system=centos-workstation --virt" >
> > Flossy >
> > > From: "Bryan Hughes" < bhughes@gisfederal.com > > > >
> > > To: "cobbler mailing list" < cobbler@lists.fedorahosted.org > > > >
> > > Sent: Tuesday, November 26, 2013 11:24:53 AM > > >
> > > Subject: Re: [cobbler] Using KOAN to install a VM under > > > CentOS > > > 6.4 > > > using > > > CentOS Xen...it installs over and over again > > >
> > > it is because of the "Netboot Enabled" flag in cobbler. > > >
> > > After the node begins its kickstart either change netboot > > > enabled > > > to > > > false > > > (unchecked) in GUI or run the following command: > > >
> > > cobbler system edit --name=<hostname> --netboot-enabled=0 > > >
> > > That should fix it for you. > > >
> > > Make sure you do it AFTER it begins PXE (so during DHCP stage > > > is > > > fine, > > > right > > > after it gets its IP). > > >
> > > On 11/26/13, 9:30 AM, Scot Floess wrote: > > >
> > > > All, > > > > > >
> > > > I'm somewhat confounded by what I'm seeing when using KOAN. > > > > I > > > > have > > > > a > > > > machine > > > > running CentOS 6.4 and installed CentOS-Xen using para > > > > virtualization > > > > (my > > > > hardware on this box doesn't support full > > > > virtualization)... > > > > > >
> > > > I had an old VM I created under CentOS 5.9 Xen which I > > > > migrated > > > > over > > > > to > > > > this > > > > new machine and it runs fine... > > > > > >
> > > > However, I am trying to spin up a new VM and what I see > > > > happening > > > > is > > > > the > > > > install proceeds as expected (again using KOAN). I see in > > > > VNC > > > > when > > > > the > > > > boot > > > > loader installs and then the VM attempts to reboot and > > > > run... > > > > What > > > > it > > > > does > > > > next is not expected: the install proceeds again...and this > > > > continues > > > > forever... Once it reinstalls, it reboots and reinstalls > > > > again... > > > > > >
> > > > This all works fine under CentOS 5.x - so it could be Xen > > > > 4.2 > > > > or > > > > it > > > > could > > > > just be me :) Which, BTW, CentOS-Xen is 4.2 I believe. > > > > > >
> > > > Thanks ahead of time... > > > > > >
> > > > Flossy > > > > > >
> > > > -- > > > > > >
> > > > Make It So Number One > > > > > >
> > > > _______________________________________________ > > > > > >
> > > > cobbler mailing list cobbler@lists.fedorahosted.org > > > > https://lists.fedorahosted.org/mailman/listinfo/cobbler > > > > > >
> > > _______________________________________________ > > >
> > > cobbler mailing list > > >
> > > cobbler@lists.fedorahosted.org > > >
> > > https://lists.fedorahosted.org/mailman/listinfo/cobbler > > >
> > -- >
> > Make It So Number One >
> > _______________________________________________ >
> > cobbler mailing list >
> > cobbler@lists.fedorahosted.org >
> > https://lists.fedorahosted.org/mailman/listinfo/cobbler >
> --
> Make It So Number One
> _______________________________________________
> cobbler mailing list
> cobbler@lists.fedorahosted.org
cobbler mailing list
cobbler@lists.fedorahosted.org
--
Make It So Number One
cobbler mailing list
cobbler@lists.fedorahosted.org
--
Make It So Number One
cobbler mailing list
cobbler@lists.fedorahosted.org
cobbler mailing list
cobbler@lists.fedorahosted.org
--
Make It So Number One
cobbler mailing list
cobbler@lists.fedorahosted.org
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
What is your "server: " setting? It appears it's "cobbler", which will work as long as that resolves in DNS, otherwise you need to set it to a DNS resolvable name or IP.
On Wed, Nov 27, 2013 at 2:56 PM, Scot Floess sfloess@redhat.com wrote:
James,
I did restart cobblerd...
And this is literally what I see now when issuing:
cobbler system getks --name=centos-workstation
Result:
wget "http://cobbler/cblr/svc/op/ks/system/centos-workstation" -O /root/cobbler.ks wget "http://cobbler/cblr/svc/op/trig/mode/post/system/centos-workstation" -O /dev/null wget "http://cobbler/cblr/svc/op/nopxe/system/centos-workstation" -O /dev/null
%end
*From: *"James Cammarata" jimi@sngx.net *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Wednesday, November 27, 2013 3:47:37 PM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Did you restart cobblerd after making the settings change? You should also be seeing this in the output from the kickstart_done snippet:
wget "http://x.x.x.x/cblr/svc/op/nopxe/system/foo" -O /dev/null
That is the trigger to disable the netboot flag.
On Wed, Nov 27, 2013 at 2:41 PM, Scot Floess sfloess@redhat.com wrote:
James,
OK I ensured:
/etc/cobbler/settings:
pxe_just_once: 1
-and-
My kickstart ends with:
$SNIPPET('kickstart_done')
%end
I'm seeing exactly the same behavior... In fact I just koan'd a new instance and its now on it's second install all by itself...
I am absolutely at a loss... This all worked for me using stock CentOS 5.x hosts... Really the difference is I'm using Xen as supported under CentOS 6.4 - so not sure if that has anything to do with this or not...
*From: *"James Cammarata" jimi@sngx.net *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Wednesday, November 27, 2013 2:59:37 PM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Yes, it should be the last thing before the %end, as you have it.
Have you also set pxe_just_once:1 in your cobbler settings?
On Wed, Nov 27, 2013 at 1:44 PM, Scot Floess sfloess@redhat.com wrote:
James,
Curious - is something from the kickstart_done that does the right thing as far as ensuring "kick start" that KOAN initially uses isn't copied over or something like that? To be honest, that's what it feels like is happening ... once installed the VM doesn't have the ability to boot off the installed bootloader and then simply uses the same "kickstart" to reinstall again...
I don't know if this may be the issue but at the end of my kickstart, it looks liek the following:
$SNIPPET('kickstart_done')
%end Is that out of order maybe?
Thanks!
Flossy
*From: *"Scot Floess" sfloess@redhat.com *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Tuesday, November 26, 2013 2:20:34 PM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
James,
Interesting!
So I have an old kickstart I've been using since Cobbler 1.6x days... In it I have $kickstart_done - but when executing
cobbler system getks --name=centos-workstation
I see it is not expanded!
So I added the snippet to the end of my kickstart like so:
$SNIPPET('kickstart_done')
And now see:
wget "http://cobbler/cblr/svc/op/ks/system/centos-workstation" -O /root/cobbler.ks wget " http://cobbler/cblr/svc/op/trig/mode/post/system/centos-workstation" -O /dev/null
However, I am still getting the reinstall happening...
*From: *"James Cammarata" jimi@sngx.net *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Tuesday, November 26, 2013 1:37:53 PM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Do you also have the kickstart done ($SNIPPET('kickstart_done')) snippet included in your %post section? That is the piece which notifies the cobbler server the PXE is complete and toggles the netboot-enabled flag.
On Tue, Nov 26, 2013 at 11:37 AM, Scot Floess sfloess@redhat.comwrote:
I should say I also tried setting netboot-enabled to 0 and verify its not enabled in the UI...
*From: *"Scot Floess" sfloess@redhat.com *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Tuesday, November 26, 2013 12:33:29 PM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Bryan,
Thanks for the response!
Alas this isn't a netboot problem - although at first glance I thought you were correct. Unfortunately, I'm watching my VM reinstall itself again :(
It's almost like I "koan --replace-self" but that's not what I told it to do. In fact, this is what I executed:
koan --server=cobbler --system=centos-workstation --virt
I literally see the VM install itself, bootloader installs then the VM shutdown and is started up again and its as if I initiated the original "koan --server=cobbler --system=centos-workstation --virt"
Flossy
*From: *"Bryan Hughes" bhughes@gisfederal.com *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Tuesday, November 26, 2013 11:24:53 AM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
it is because of the "Netboot Enabled" flag in cobbler.
After the node begins its kickstart either change netboot enabled to false (unchecked) in GUI or run the following command:
cobbler system edit --name=<hostname> --netboot-enabled=0
That should fix it for you.
Make sure you do it AFTER it begins PXE (so during DHCP stage is fine, right after it gets its IP).
On 11/26/13, 9:30 AM, Scot Floess wrote:
All,
I'm somewhat confounded by what I'm seeing when using KOAN. I have a machine running CentOS 6.4 and installed CentOS-Xen using para virtualization (my hardware on this box doesn't support full virtualization)...
I had an old VM I created under CentOS 5.9 Xen which I migrated over to this new machine and it runs fine...
However, I am trying to spin up a new VM and what I see happening is the install proceeds as expected (again using KOAN). I see in VNC when the boot loader installs and then the VM attempts to reboot and run... What it does next is not expected: the install proceeds again...and this continues forever... Once it reinstalls, it reboots and reinstalls again...
This all works fine under CentOS 5.x - so it could be Xen 4.2 or it could just be me :) Which, BTW, CentOS-Xen is 4.2 I believe.
Thanks ahead of time...
Flossy
-- Make It So Number One
cobbler mailing listcobbler@lists.fedorahosted.orghttps://lists.fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
Just a suggestion - is the boot order sequence for the server being provisioned set to PXE before internal disk? If so the newly built server will reboot, and before it gets to the newly built OS it will perform another PXE install.
Dylan On 28 Nov 2013 01:11, "James Cammarata" jimi@sngx.net wrote:
What is your "server: " setting? It appears it's "cobbler", which will work as long as that resolves in DNS, otherwise you need to set it to a DNS resolvable name or IP.
On Wed, Nov 27, 2013 at 2:56 PM, Scot Floess sfloess@redhat.com wrote:
James,
I did restart cobblerd...
And this is literally what I see now when issuing:
cobbler system getks --name=centos-workstation
Result:
wget "http://cobbler/cblr/svc/op/ks/system/centos-workstation" -O /root/cobbler.ks wget "http://cobbler/cblr/svc/op/trig/mode/post/system/centos-workstation" -O /dev/null wget "http://cobbler/cblr/svc/op/nopxe/system/centos-workstation" -O /dev/null
%end
*From: *"James Cammarata" jimi@sngx.net *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Wednesday, November 27, 2013 3:47:37 PM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Did you restart cobblerd after making the settings change? You should also be seeing this in the output from the kickstart_done snippet:
wget "http://x.x.x.x/cblr/svc/op/nopxe/system/foo" -O /dev/null
That is the trigger to disable the netboot flag.
On Wed, Nov 27, 2013 at 2:41 PM, Scot Floess sfloess@redhat.com wrote:
James,
OK I ensured:
/etc/cobbler/settings:
pxe_just_once: 1
-and-
My kickstart ends with:
$SNIPPET('kickstart_done')
%end
I'm seeing exactly the same behavior... In fact I just koan'd a new instance and its now on it's second install all by itself...
I am absolutely at a loss... This all worked for me using stock CentOS 5.x hosts... Really the difference is I'm using Xen as supported under CentOS 6.4 - so not sure if that has anything to do with this or not...
*From: *"James Cammarata" jimi@sngx.net *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Wednesday, November 27, 2013 2:59:37 PM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Yes, it should be the last thing before the %end, as you have it.
Have you also set pxe_just_once:1 in your cobbler settings?
On Wed, Nov 27, 2013 at 1:44 PM, Scot Floess sfloess@redhat.comwrote:
James,
Curious - is something from the kickstart_done that does the right thing as far as ensuring "kick start" that KOAN initially uses isn't copied over or something like that? To be honest, that's what it feels like is happening ... once installed the VM doesn't have the ability to boot off the installed bootloader and then simply uses the same "kickstart" to reinstall again...
I don't know if this may be the issue but at the end of my kickstart, it looks liek the following:
$SNIPPET('kickstart_done')
%end Is that out of order maybe?
Thanks!
Flossy
*From: *"Scot Floess" sfloess@redhat.com *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Tuesday, November 26, 2013 2:20:34 PM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
James,
Interesting!
So I have an old kickstart I've been using since Cobbler 1.6x days... In it I have $kickstart_done - but when executing
cobbler system getks --name=centos-workstation
I see it is not expanded!
So I added the snippet to the end of my kickstart like so:
$SNIPPET('kickstart_done')
And now see:
wget "http://cobbler/cblr/svc/op/ks/system/centos-workstation" -O /root/cobbler.ks wget " http://cobbler/cblr/svc/op/trig/mode/post/system/centos-workstation" -O /dev/null
However, I am still getting the reinstall happening...
*From: *"James Cammarata" jimi@sngx.net *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Tuesday, November 26, 2013 1:37:53 PM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Do you also have the kickstart done ($SNIPPET('kickstart_done')) snippet included in your %post section? That is the piece which notifies the cobbler server the PXE is complete and toggles the netboot-enabled flag.
On Tue, Nov 26, 2013 at 11:37 AM, Scot Floess sfloess@redhat.comwrote:
I should say I also tried setting netboot-enabled to 0 and verify its not enabled in the UI...
*From: *"Scot Floess" sfloess@redhat.com *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Tuesday, November 26, 2013 12:33:29 PM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Bryan,
Thanks for the response!
Alas this isn't a netboot problem - although at first glance I thought you were correct. Unfortunately, I'm watching my VM reinstall itself again :(
It's almost like I "koan --replace-self" but that's not what I told it to do. In fact, this is what I executed:
koan --server=cobbler --system=centos-workstation --virt
I literally see the VM install itself, bootloader installs then the VM shutdown and is started up again and its as if I initiated the original "koan --server=cobbler --system=centos-workstation --virt"
Flossy
*From: *"Bryan Hughes" bhughes@gisfederal.com *To: *"cobbler mailing list" cobbler@lists.fedorahosted.org *Sent: *Tuesday, November 26, 2013 11:24:53 AM *Subject: *Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
it is because of the "Netboot Enabled" flag in cobbler.
After the node begins its kickstart either change netboot enabled to false (unchecked) in GUI or run the following command:
cobbler system edit --name=<hostname> --netboot-enabled=0
That should fix it for you.
Make sure you do it AFTER it begins PXE (so during DHCP stage is fine, right after it gets its IP).
On 11/26/13, 9:30 AM, Scot Floess wrote:
All,
I'm somewhat confounded by what I'm seeing when using KOAN. I have a machine running CentOS 6.4 and installed CentOS-Xen using para virtualization (my hardware on this box doesn't support full virtualization)...
I had an old VM I created under CentOS 5.9 Xen which I migrated over to this new machine and it runs fine...
However, I am trying to spin up a new VM and what I see happening is the install proceeds as expected (again using KOAN). I see in VNC when the boot loader installs and then the VM attempts to reboot and run... What it does next is not expected: the install proceeds again...and this continues forever... Once it reinstalls, it reboots and reinstalls again...
This all works fine under CentOS 5.x - so it could be Xen 4.2 or it could just be me :) Which, BTW, CentOS-Xen is 4.2 I believe.
Thanks ahead of time...
Flossy
-- Make It So Number One
cobbler mailing listcobbler@lists.fedorahosted.orghttps://lists.fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
-- Make It So Number One
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
Dylan,
Great question - alas this is a VM... And that's not the issue :)
I'm about to follow-up with what I discovered this weekend and my work-around :)
----- Original Message -----
From: "Dylan Swift" dylan.swift@gmail.com To: "cobbler mailing list" cobbler@lists.fedorahosted.org Sent: Friday, November 29, 2013 3:02:00 AM Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Just a suggestion - is the boot order sequence for the server being provisioned set to PXE before internal disk? If so the newly built server will reboot, and before it gets to the newly built OS it will perform another PXE install.
Dylan On 28 Nov 2013 01:11, "James Cammarata" < jimi@sngx.net > wrote:
What is your "server: " setting? It appears it's "cobbler", which will work as long as that resolves in DNS, otherwise you need to set it to a DNS resolvable name or IP.
On Wed, Nov 27, 2013 at 2:56 PM, Scot Floess < sfloess@redhat.com > wrote:
James,
I did restart cobblerd...
And this is literally what I see now when issuing:
cobbler system getks --name=centos-workstation
Result:
wget " http://cobbler/cblr/svc/op/ks/system/centos-workstation " -O /root/cobbler.ks
wget " http://cobbler/cblr/svc/op/trig/mode/post/system/centos-workstation " -O /dev/null
wget " http://cobbler/cblr/svc/op/nopxe/system/centos-workstation " -O /dev/null
%end
From: "James Cammarata" < jimi@sngx.net >
To: "cobbler mailing list" < cobbler@lists.fedorahosted.org >
Sent: Wednesday, November 27, 2013 3:47:37 PM
Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Did you restart cobblerd after making the settings change? You should also be seeing this in the output from the kickstart_done snippet:
wget " http://x.x.x.x/cblr/svc/op/nopxe/system/foo " -O /dev/null
That is the trigger to disable the netboot flag.
On Wed, Nov 27, 2013 at 2:41 PM, Scot Floess < sfloess@redhat.com > wrote:
James,
OK I ensured:
/etc/cobbler/settings:
pxe_just_once: 1
-and-
My kickstart ends with:
$SNIPPET('kickstart_done')
%end
I'm seeing exactly the same behavior... In fact I just koan'd a new instance and its now on it's second install all by itself...
I am absolutely at a loss... This all worked for me using stock CentOS 5.x hosts... Really the difference is I'm using Xen as supported under CentOS 6.4 - so not sure if that has anything to do with this or not...
From: "James Cammarata" < jimi@sngx.net >
To: "cobbler mailing list" < cobbler@lists.fedorahosted.org >
Sent: Wednesday, November 27, 2013 2:59:37 PM
Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Yes, it should be the last thing before the %end, as you have it.
Have you also set pxe_just_once:1 in your cobbler settings?
On Wed, Nov 27, 2013 at 1:44 PM, Scot Floess < sfloess@redhat.com > wrote:
> James,
> Curious - is something from the kickstart_done that does the > right > thing > as > far as ensuring "kick start" that KOAN initially uses isn't > copied > over > or > something like that? To be honest, that's what it feels like is > happening > ... once installed the VM doesn't have the ability to boot off > the > installed > bootloader and then simply uses the same "kickstart" to reinstall > again...
> I don't know if this may be the issue but at the end of my > kickstart, > it > looks liek the following:
> $SNIPPET('kickstart_done')
> %end
> Is that out of order maybe?
> Thanks!
> Flossy
> > From: "Scot Floess" < sfloess@redhat.com > >
> > To: "cobbler mailing list" < cobbler@lists.fedorahosted.org > >
> > Sent: Tuesday, November 26, 2013 2:20:34 PM >
> > Subject: Re: [cobbler] Using KOAN to install a VM under CentOS > > 6.4 > > using > > CentOS Xen...it installs over and over again >
> > James, >
> > Interesting! >
> > So I have an old kickstart I've been using since Cobbler 1.6x > > days... > > In > > it > > I > > have $kickstart_done - but when executing >
> > cobbler system getks --name=centos-workstation >
> > I see it is not expanded! >
> > So I added the snippet to the end of my kickstart like so: >
> > $SNIPPET('kickstart_done') >
> > And now see: >
> > wget " http://cobbler/cblr/svc/op/ks/system/centos-workstation > > " > > -O > > /root/cobbler.ks >
> > wget " > > http://cobbler/cblr/svc/op/trig/mode/post/system/centos-workstation > > " > > -O /dev/null >
> > However, I am still getting the reinstall happening... >
> > > From: "James Cammarata" < jimi@sngx.net > > > >
> > > To: "cobbler mailing list" < cobbler@lists.fedorahosted.org > > > >
> > > Sent: Tuesday, November 26, 2013 1:37:53 PM > > >
> > > Subject: Re: [cobbler] Using KOAN to install a VM under > > > CentOS > > > 6.4 > > > using > > > CentOS Xen...it installs over and over again > > >
> > > Do you also have the kickstart done > > > ($SNIPPET('kickstart_done')) > > > snippet > > > included in your %post section? That is the piece which > > > notifies > > > the > > > cobbler > > > server the PXE is complete and toggles the netboot-enabled > > > flag. > > >
> > > On Tue, Nov 26, 2013 at 11:37 AM, Scot Floess < > > > sfloess@redhat.com > > > > > > > wrote: > > >
> > > > I should say I also tried setting netboot-enabled to 0 and > > > > verify > > > > its > > > > not > > > > enabled in the UI... > > > > > >
> > > > > From: "Scot Floess" < sfloess@redhat.com > > > > > > > > > > >
> > > > > To: "cobbler mailing list" < > > > > > cobbler@lists.fedorahosted.org > > > > > > > > > > > > > > > >
> > > > > Sent: Tuesday, November 26, 2013 12:33:29 PM > > > > > > > > > >
> > > > > Subject: Re: [cobbler] Using KOAN to install a VM under > > > > > CentOS > > > > > 6.4 > > > > > using > > > > > CentOS Xen...it installs over and over again > > > > > > > > > >
> > > > > Bryan, > > > > > > > > > >
> > > > > Thanks for the response! > > > > > > > > > >
> > > > > Alas this isn't a netboot problem - although at first > > > > > glance > > > > > I > > > > > thought > > > > > you > > > > > were correct. Unfortunately, I'm watching my VM reinstall > > > > > itself > > > > > again > > > > > :( > > > > > > > > > >
> > > > > It's almost like I "koan --replace-self" but that's not > > > > > what > > > > > I > > > > > told > > > > > it > > > > > to > > > > > do. > > > > > In fact, this is what I executed: > > > > > > > > > >
> > > > > koan --server=cobbler --system=centos-workstation --virt > > > > > > > > > >
> > > > > I literally see the VM install itself, bootloader > > > > > installs > > > > > then > > > > > the > > > > > VM > > > > > shutdown and is started up again and its as if I > > > > > initiated > > > > > the > > > > > original > > > > > " > > > > > koan --server=cobbler --system=centos-workstation --virt" > > > > > > > > > >
> > > > > Flossy > > > > > > > > > >
> > > > > > From: "Bryan Hughes" < bhughes@gisfederal.com > > > > > > > > > > > > > > > >
> > > > > > To: "cobbler mailing list" < > > > > > > cobbler@lists.fedorahosted.org > > > > > > > > > > > > > > > > > > > > > >
> > > > > > Sent: Tuesday, November 26, 2013 11:24:53 AM > > > > > > > > > > > > > > >
> > > > > > Subject: Re: [cobbler] Using KOAN to install a VM under > > > > > > CentOS > > > > > > 6.4 > > > > > > using > > > > > > CentOS Xen...it installs over and over again > > > > > > > > > > > > > > >
> > > > > > it is because of the "Netboot Enabled" flag in cobbler. > > > > > > > > > > > > > > >
> > > > > > After the node begins its kickstart either change > > > > > > netboot > > > > > > enabled > > > > > > to > > > > > > false > > > > > > (unchecked) in GUI or run the following command: > > > > > > > > > > > > > > >
> > > > > > cobbler system edit --name=<hostname> > > > > > > --netboot-enabled=0 > > > > > > > > > > > > > > >
> > > > > > That should fix it for you. > > > > > > > > > > > > > > >
> > > > > > Make sure you do it AFTER it begins PXE (so during DHCP > > > > > > stage > > > > > > is > > > > > > fine, > > > > > > right > > > > > > after it gets its IP). > > > > > > > > > > > > > > >
> > > > > > On 11/26/13, 9:30 AM, Scot Floess wrote: > > > > > > > > > > > > > > >
> > > > > > > All, > > > > > > > > > > > > > > > > > > > > >
> > > > > > > I'm somewhat confounded by what I'm seeing when using > > > > > > > KOAN. > > > > > > > I > > > > > > > have > > > > > > > a > > > > > > > machine > > > > > > > running CentOS 6.4 and installed CentOS-Xen using > > > > > > > para > > > > > > > virtualization > > > > > > > (my > > > > > > > hardware on this box doesn't support full > > > > > > > virtualization)... > > > > > > > > > > > > > > > > > > > > >
> > > > > > > I had an old VM I created under CentOS 5.9 Xen which > > > > > > > I > > > > > > > migrated > > > > > > > over > > > > > > > to > > > > > > > this > > > > > > > new machine and it runs fine... > > > > > > > > > > > > > > > > > > > > >
> > > > > > > However, I am trying to spin up a new VM and what I > > > > > > > see > > > > > > > happening > > > > > > > is > > > > > > > the > > > > > > > install proceeds as expected (again using KOAN). I > > > > > > > see > > > > > > > in > > > > > > > VNC > > > > > > > when > > > > > > > the > > > > > > > boot > > > > > > > loader installs and then the VM attempts to reboot > > > > > > > and > > > > > > > run... > > > > > > > What > > > > > > > it > > > > > > > does > > > > > > > next is not expected: the install proceeds > > > > > > > again...and > > > > > > > this > > > > > > > continues > > > > > > > forever... Once it reinstalls, it reboots and > > > > > > > reinstalls > > > > > > > again... > > > > > > > > > > > > > > > > > > > > >
> > > > > > > This all works fine under CentOS 5.x - so it could be > > > > > > > Xen > > > > > > > 4.2 > > > > > > > or > > > > > > > it > > > > > > > could > > > > > > > just be me :) Which, BTW, CentOS-Xen is 4.2 I > > > > > > > believe. > > > > > > > > > > > > > > > > > > > > >
> > > > > > > Thanks ahead of time... > > > > > > > > > > > > > > > > > > > > >
> > > > > > > Flossy > > > > > > > > > > > > > > > > > > > > >
> > > > > > > -- > > > > > > > > > > > > > > > > > > > > >
> > > > > > > Make It So Number One > > > > > > > > > > > > > > > > > > > > >
> > > > > > > _______________________________________________ > > > > > > > > > > > > > > > > > > > > >
> > > > > > > cobbler mailing list cobbler@lists.fedorahosted.org > > > > > > > https://lists.fedorahosted.org/mailman/listinfo/cobbler > > > > > > > > > > > > > > > > > > > > >
> > > > > > _______________________________________________ > > > > > > > > > > > > > > >
> > > > > > cobbler mailing list > > > > > > > > > > > > > > >
> > > > > > cobbler@lists.fedorahosted.org > > > > > > > > > > > > > > >
> > > > > > https://lists.fedorahosted.org/mailman/listinfo/cobbler > > > > > > > > > > > > > > >
> > > > > -- > > > > > > > > > >
> > > > > Make It So Number One > > > > > > > > > >
> > > > > _______________________________________________ > > > > > > > > > >
> > > > > cobbler mailing list > > > > > > > > > >
> > > > > cobbler@lists.fedorahosted.org > > > > > > > > > >
> > > > > https://lists.fedorahosted.org/mailman/listinfo/cobbler > > > > > > > > > >
> > > > -- > > > > > >
> > > > Make It So Number One > > > > > >
> > > > _______________________________________________ > > > > > >
> > > > cobbler mailing list > > > > > >
> > > > cobbler@lists.fedorahosted.org > > > > > >
> > > > https://lists.fedorahosted.org/mailman/listinfo/cobbler > > > > > >
> > > _______________________________________________ > > >
> > > cobbler mailing list > > >
> > > cobbler@lists.fedorahosted.org > > >
> > > https://lists.fedorahosted.org/mailman/listinfo/cobbler > > >
> > -- >
> > Make It So Number One >
> > _______________________________________________ >
> > cobbler mailing list >
> > cobbler@lists.fedorahosted.org >
> > https://lists.fedorahosted.org/mailman/listinfo/cobbler >
> --
> Make It So Number One
> _______________________________________________
> cobbler mailing list
> cobbler@lists.fedorahosted.org
cobbler mailing list
cobbler@lists.fedorahosted.org
--
Make It So Number One
cobbler mailing list
cobbler@lists.fedorahosted.org
cobbler mailing list
cobbler@lists.fedorahosted.org
--
Make It So Number One
cobbler mailing list
cobbler@lists.fedorahosted.org
cobbler mailing list
cobbler@lists.fedorahosted.org
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
All,
First thanks to everyone who assisted me - good stuff! And very much appreciated!
A few things to note:
- CentOS 6.x has added support for Xen - which is Xen 4.2x - xend, xm, etc is deprecated (but does work) - the new way to do things is using xl vs xm
I, of course, didn't bother to look at all the "newness" in Xen 4.x - so was completely clueless to what behavior I was seeing...
I disable reboot once VM installs - which once install completed, I noted "xm list" showed me the VM yet it had no ID associated with it at all...
I also noted no config file was created down in the /etc/xen dir...
So to get this working:
* I disabled the auto reboot option for VMs * Once installed I did "xl delete [vm name]" Note "xl" not "xm" * I manually created a config file for the VM * Ran "xm create [vm name]" * VM starts as expected
According to the Xen 4.1 documentation xend and xm are deprecated in favor of xl. I tried turning off xend but KOAN will not provision the VM without it... Not a big deal since it still works at the moment.
Question I do have, is there hope of supporting Xen 4.x with KOAN?
Again - thank you all for your help...
Flossy
----- Original Message -----
From: "Scot Floess" sfloess@redhat.com To: "cobbler mailing list" cobbler@lists.fedorahosted.org Sent: Monday, December 2, 2013 9:04:30 AM Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Dylan,
Great question - alas this is a VM... And that's not the issue :)
I'm about to follow-up with what I discovered this weekend and my work-around :)
----- Original Message -----
<blockquote> From: "Dylan Swift" dylan.swift@gmail.com To: "cobbler mailing list" cobbler@lists.fedorahosted.org Sent: Friday, November 29, 2013 3:02:00 AM Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Just a suggestion - is the boot order sequence for the server being provisioned set to PXE before internal disk? If so the newly built server will reboot, and before it gets to the newly built OS it will perform another PXE install.
Dylan On 28 Nov 2013 01:11, "James Cammarata" < jimi@sngx.net > wrote:
<blockquote>
What is your "server: " setting? It appears it's "cobbler", which will work as long as that resolves in DNS, otherwise you need to set it to a DNS resolvable name or IP.
On Wed, Nov 27, 2013 at 2:56 PM, Scot Floess < sfloess@redhat.com > wrote:
<blockquote>
James,
I did restart cobblerd...
And this is literally what I see now when issuing:
cobbler system getks --name=centos-workstation
Result:
wget " http://cobbler/cblr/svc/op/ks/system/centos-workstation " -O /root/cobbler.ks wget " http://cobbler/cblr/svc/op/trig/mode/post/system/centos-workstation " -O /dev/null wget " http://cobbler/cblr/svc/op/nopxe/system/centos-workstation " -O /dev/null
%end
<blockquote> From: "James Cammarata" < jimi@sngx.net > To: "cobbler mailing list" < cobbler@lists.fedorahosted.org > Sent: Wednesday, November 27, 2013 3:47:37 PM Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Did you restart cobblerd after making the settings change? You should also be seeing this in the output from the kickstart_done snippet:
wget " http://x.x.x.x/cblr/svc/op/nopxe/system/foo " -O /dev/null
That is the trigger to disable the netboot flag.
On Wed, Nov 27, 2013 at 2:41 PM, Scot Floess < sfloess@redhat.com > wrote:
<blockquote>
James,
OK I ensured:
/etc/cobbler/settings:
pxe_just_once: 1
-and-
My kickstart ends with:
$SNIPPET('kickstart_done')
%end
I'm seeing exactly the same behavior... In fact I just koan'd a new instance and its now on it's second install all by itself...
I am absolutely at a loss... This all worked for me using stock CentOS 5.x hosts... Really the difference is I'm using Xen as supported under CentOS 6.4 - so not sure if that has anything to do with this or not...
<blockquote> From: "James Cammarata" < jimi@sngx.net > To: "cobbler mailing list" < cobbler@lists.fedorahosted.org > Sent: Wednesday, November 27, 2013 2:59:37 PM Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Yes, it should be the last thing before the %end, as you have it.
Have you also set pxe_just_once:1 in your cobbler settings?
On Wed, Nov 27, 2013 at 1:44 PM, Scot Floess < sfloess@redhat.com > wrote:
<blockquote>
James,
Curious - is something from the kickstart_done that does the right thing as far as ensuring "kick start" that KOAN initially uses isn't copied over or something like that? To be honest, that's what it feels like is happening ... once installed the VM doesn't have the ability to boot off the installed bootloader and then simply uses the same "kickstart" to reinstall again...
I don't know if this may be the issue but at the end of my kickstart, it looks liek the following:
$SNIPPET('kickstart_done')
%end Is that out of order maybe?
Thanks!
Flossy
<blockquote> From: "Scot Floess" < sfloess@redhat.com > To: "cobbler mailing list" < cobbler@lists.fedorahosted.org > Sent: Tuesday, November 26, 2013 2:20:34 PM Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
James,
Interesting!
So I have an old kickstart I've been using since Cobbler 1.6x days... In it I have $kickstart_done - but when executing
cobbler system getks --name=centos-workstation
I see it is not expanded!
So I added the snippet to the end of my kickstart like so:
$SNIPPET('kickstart_done')
And now see:
wget " http://cobbler/cblr/svc/op/ks/system/centos-workstation " -O /root/cobbler.ks wget " http://cobbler/cblr/svc/op/trig/mode/post/system/centos-workstation " -O /dev/null
However, I am still getting the reinstall happening...
<blockquote> From: "James Cammarata" < jimi@sngx.net > To: "cobbler mailing list" < cobbler@lists.fedorahosted.org > Sent: Tuesday, November 26, 2013 1:37:53 PM Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Do you also have the kickstart done ($SNIPPET('kickstart_done')) snippet included in your %post section? That is the piece which notifies the cobbler server the PXE is complete and toggles the netboot-enabled flag.
On Tue, Nov 26, 2013 at 11:37 AM, Scot Floess < sfloess@redhat.com > wrote:
<blockquote>
I should say I also tried setting netboot-enabled to 0 and verify its not enabled in the UI...
<blockquote> From: "Scot Floess" < sfloess@redhat.com > To: "cobbler mailing list" < cobbler@lists.fedorahosted.org > Sent: Tuesday, November 26, 2013 12:33:29 PM Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Bryan,
Thanks for the response!
Alas this isn't a netboot problem - although at first glance I thought you were correct. Unfortunately, I'm watching my VM reinstall itself again :(
It's almost like I "koan --replace-self" but that's not what I told it to do. In fact, this is what I executed:
koan --server=cobbler --system=centos-workstation --virt
I literally see the VM install itself, bootloader installs then the VM shutdown and is started up again and its as if I initiated the original " koan --server=cobbler --system=centos-workstation --virt"
Flossy
<blockquote> From: "Bryan Hughes" < bhughes@gisfederal.com > To: "cobbler mailing list" < cobbler@lists.fedorahosted.org > Sent: Tuesday, November 26, 2013 11:24:53 AM Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
it is because of the "Netboot Enabled" flag in cobbler.
After the node begins its kickstart either change netboot enabled to false (unchecked) in GUI or run the following command:
cobbler system edit --name=<hostname> --netboot-enabled=0
That should fix it for you.
Make sure you do it AFTER it begins PXE (so during DHCP stage is fine, right after it gets its IP).
On 11/26/13, 9:30 AM, Scot Floess wrote:
<blockquote>
All,
I'm somewhat confounded by what I'm seeing when using KOAN. I have a machine running CentOS 6.4 and installed CentOS-Xen using para virtualization (my hardware on this box doesn't support full virtualization)...
I had an old VM I created under CentOS 5.9 Xen which I migrated over to this new machine and it runs fine...
However, I am trying to spin up a new VM and what I see happening is the install proceeds as expected (again using KOAN). I see in VNC when the boot loader installs and then the VM attempts to reboot and run... What it does next is not expected: the install proceeds again...and this continues forever... Once it reinstalls, it reboots and reinstalls again...
This all works fine under CentOS 5.x - so it could be Xen 4.2 or it could just be me :) Which, BTW, CentOS-Xen is 4.2 I believe.
Thanks ahead of time...
Flossy
James,
Yes my server has an alias named "cobbler" - its found (aka I can ping it)... I'm about to follow-up with what I discovered... I've resolved the issue...
Thanks!!!!
Flossy
----- Original Message -----
From: "James Cammarata" jimi@sngx.net To: "cobbler mailing list" cobbler@lists.fedorahosted.org Sent: Wednesday, November 27, 2013 8:11:48 PM Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
What is your "server: " setting? It appears it's "cobbler", which will work as long as that resolves in DNS, otherwise you need to set it to a DNS resolvable name or IP.
On Wed, Nov 27, 2013 at 2:56 PM, Scot Floess < sfloess@redhat.com > wrote:
James,
I did restart cobblerd...
And this is literally what I see now when issuing:
cobbler system getks --name=centos-workstation
Result:
wget " http://cobbler/cblr/svc/op/ks/system/centos-workstation " -O /root/cobbler.ks
wget " http://cobbler/cblr/svc/op/trig/mode/post/system/centos-workstation " -O /dev/null
wget " http://cobbler/cblr/svc/op/nopxe/system/centos-workstation " -O /dev/null
%end
From: "James Cammarata" < jimi@sngx.net >
To: "cobbler mailing list" < cobbler@lists.fedorahosted.org >
Sent: Wednesday, November 27, 2013 3:47:37 PM
Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Did you restart cobblerd after making the settings change? You should also be seeing this in the output from the kickstart_done snippet:
wget " http://x.x.x.x/cblr/svc/op/nopxe/system/foo " -O /dev/null
That is the trigger to disable the netboot flag.
On Wed, Nov 27, 2013 at 2:41 PM, Scot Floess < sfloess@redhat.com > wrote:
James,
OK I ensured:
/etc/cobbler/settings:
pxe_just_once: 1
-and-
My kickstart ends with:
$SNIPPET('kickstart_done')
%end
I'm seeing exactly the same behavior... In fact I just koan'd a new instance and its now on it's second install all by itself...
I am absolutely at a loss... This all worked for me using stock CentOS 5.x hosts... Really the difference is I'm using Xen as supported under CentOS 6.4 - so not sure if that has anything to do with this or not...
From: "James Cammarata" < jimi@sngx.net >
To: "cobbler mailing list" < cobbler@lists.fedorahosted.org >
Sent: Wednesday, November 27, 2013 2:59:37 PM
Subject: Re: [cobbler] Using KOAN to install a VM under CentOS 6.4 using CentOS Xen...it installs over and over again
Yes, it should be the last thing before the %end, as you have it.
Have you also set pxe_just_once:1 in your cobbler settings?
On Wed, Nov 27, 2013 at 1:44 PM, Scot Floess < sfloess@redhat.com > wrote:
James,
Curious - is something from the kickstart_done that does the right thing as far as ensuring "kick start" that KOAN initially uses isn't copied over or something like that? To be honest, that's what it feels like is happening ... once installed the VM doesn't have the ability to boot off the installed bootloader and then simply uses the same "kickstart" to reinstall again...
I don't know if this may be the issue but at the end of my kickstart, it looks liek the following:
$SNIPPET('kickstart_done')
%end
Is that out of order maybe?
Thanks!
Flossy
> From: "Scot Floess" < sfloess@redhat.com >
> To: "cobbler mailing list" < cobbler@lists.fedorahosted.org >
> Sent: Tuesday, November 26, 2013 2:20:34 PM
> Subject: Re: [cobbler] Using KOAN to install a VM under CentOS > 6.4 > using > CentOS Xen...it installs over and over again
> James,
> Interesting!
> So I have an old kickstart I've been using since Cobbler 1.6x > days... > In > it > I > have $kickstart_done - but when executing
> cobbler system getks --name=centos-workstation
> I see it is not expanded!
> So I added the snippet to the end of my kickstart like so:
> $SNIPPET('kickstart_done')
> And now see:
> wget " http://cobbler/cblr/svc/op/ks/system/centos-workstation " > -O > /root/cobbler.ks
> wget " > http://cobbler/cblr/svc/op/trig/mode/post/system/centos-workstation > " > -O /dev/null
> However, I am still getting the reinstall happening...
> > From: "James Cammarata" < jimi@sngx.net > >
> > To: "cobbler mailing list" < cobbler@lists.fedorahosted.org > >
> > Sent: Tuesday, November 26, 2013 1:37:53 PM >
> > Subject: Re: [cobbler] Using KOAN to install a VM under CentOS > > 6.4 > > using > > CentOS Xen...it installs over and over again >
> > Do you also have the kickstart done > > ($SNIPPET('kickstart_done')) > > snippet > > included in your %post section? That is the piece which > > notifies > > the > > cobbler > > server the PXE is complete and toggles the netboot-enabled > > flag. >
> > On Tue, Nov 26, 2013 at 11:37 AM, Scot Floess < > > sfloess@redhat.com > > > > > wrote: >
> > > I should say I also tried setting netboot-enabled to 0 and > > > verify > > > its > > > not > > > enabled in the UI... > > >
> > > > From: "Scot Floess" < sfloess@redhat.com > > > > > > >
> > > > To: "cobbler mailing list" < cobbler@lists.fedorahosted.org > > > > > > > > > > >
> > > > Sent: Tuesday, November 26, 2013 12:33:29 PM > > > > > >
> > > > Subject: Re: [cobbler] Using KOAN to install a VM under > > > > CentOS > > > > 6.4 > > > > using > > > > CentOS Xen...it installs over and over again > > > > > >
> > > > Bryan, > > > > > >
> > > > Thanks for the response! > > > > > >
> > > > Alas this isn't a netboot problem - although at first > > > > glance > > > > I > > > > thought > > > > you > > > > were correct. Unfortunately, I'm watching my VM reinstall > > > > itself > > > > again > > > > :( > > > > > >
> > > > It's almost like I "koan --replace-self" but that's not > > > > what > > > > I > > > > told > > > > it > > > > to > > > > do. > > > > In fact, this is what I executed: > > > > > >
> > > > koan --server=cobbler --system=centos-workstation --virt > > > > > >
> > > > I literally see the VM install itself, bootloader installs > > > > then > > > > the > > > > VM > > > > shutdown and is started up again and its as if I initiated > > > > the > > > > original > > > > " > > > > koan --server=cobbler --system=centos-workstation --virt" > > > > > >
> > > > Flossy > > > > > >
> > > > > From: "Bryan Hughes" < bhughes@gisfederal.com > > > > > > > > > > >
> > > > > To: "cobbler mailing list" < > > > > > cobbler@lists.fedorahosted.org > > > > > > > > > > > > > > > >
> > > > > Sent: Tuesday, November 26, 2013 11:24:53 AM > > > > > > > > > >
> > > > > Subject: Re: [cobbler] Using KOAN to install a VM under > > > > > CentOS > > > > > 6.4 > > > > > using > > > > > CentOS Xen...it installs over and over again > > > > > > > > > >
> > > > > it is because of the "Netboot Enabled" flag in cobbler. > > > > > > > > > >
> > > > > After the node begins its kickstart either change netboot > > > > > enabled > > > > > to > > > > > false > > > > > (unchecked) in GUI or run the following command: > > > > > > > > > >
> > > > > cobbler system edit --name=<hostname> --netboot-enabled=0 > > > > > > > > > >
> > > > > That should fix it for you. > > > > > > > > > >
> > > > > Make sure you do it AFTER it begins PXE (so during DHCP > > > > > stage > > > > > is > > > > > fine, > > > > > right > > > > > after it gets its IP). > > > > > > > > > >
> > > > > On 11/26/13, 9:30 AM, Scot Floess wrote: > > > > > > > > > >
> > > > > > All, > > > > > > > > > > > > > > >
> > > > > > I'm somewhat confounded by what I'm seeing when using > > > > > > KOAN. > > > > > > I > > > > > > have > > > > > > a > > > > > > machine > > > > > > running CentOS 6.4 and installed CentOS-Xen using para > > > > > > virtualization > > > > > > (my > > > > > > hardware on this box doesn't support full > > > > > > virtualization)... > > > > > > > > > > > > > > >
> > > > > > I had an old VM I created under CentOS 5.9 Xen which I > > > > > > migrated > > > > > > over > > > > > > to > > > > > > this > > > > > > new machine and it runs fine... > > > > > > > > > > > > > > >
> > > > > > However, I am trying to spin up a new VM and what I see > > > > > > happening > > > > > > is > > > > > > the > > > > > > install proceeds as expected (again using KOAN). I see > > > > > > in > > > > > > VNC > > > > > > when > > > > > > the > > > > > > boot > > > > > > loader installs and then the VM attempts to reboot and > > > > > > run... > > > > > > What > > > > > > it > > > > > > does > > > > > > next is not expected: the install proceeds again...and > > > > > > this > > > > > > continues > > > > > > forever... Once it reinstalls, it reboots and > > > > > > reinstalls > > > > > > again... > > > > > > > > > > > > > > >
> > > > > > This all works fine under CentOS 5.x - so it could be > > > > > > Xen > > > > > > 4.2 > > > > > > or > > > > > > it > > > > > > could > > > > > > just be me :) Which, BTW, CentOS-Xen is 4.2 I believe. > > > > > > > > > > > > > > >
> > > > > > Thanks ahead of time... > > > > > > > > > > > > > > >
> > > > > > Flossy > > > > > > > > > > > > > > >
> > > > > > -- > > > > > > > > > > > > > > >
> > > > > > Make It So Number One > > > > > > > > > > > > > > >
> > > > > > _______________________________________________ > > > > > > > > > > > > > > >
> > > > > > cobbler mailing list cobbler@lists.fedorahosted.org > > > > > > https://lists.fedorahosted.org/mailman/listinfo/cobbler > > > > > > > > > > > > > > >
> > > > > _______________________________________________ > > > > > > > > > >
> > > > > cobbler mailing list > > > > > > > > > >
> > > > > cobbler@lists.fedorahosted.org > > > > > > > > > >
> > > > > https://lists.fedorahosted.org/mailman/listinfo/cobbler > > > > > > > > > >
> > > > -- > > > > > >
> > > > Make It So Number One > > > > > >
> > > > _______________________________________________ > > > > > >
> > > > cobbler mailing list > > > > > >
> > > > cobbler@lists.fedorahosted.org > > > > > >
> > > > https://lists.fedorahosted.org/mailman/listinfo/cobbler > > > > > >
> > > -- > > >
> > > Make It So Number One > > >
> > > _______________________________________________ > > >
> > > cobbler mailing list > > >
> > > cobbler@lists.fedorahosted.org > > >
> > > https://lists.fedorahosted.org/mailman/listinfo/cobbler > > >
> > _______________________________________________ >
> > cobbler mailing list >
> > cobbler@lists.fedorahosted.org >
> > https://lists.fedorahosted.org/mailman/listinfo/cobbler >
> --
> Make It So Number One
> _______________________________________________
> cobbler mailing list
> cobbler@lists.fedorahosted.org
--
Make It So Number One
cobbler mailing list
cobbler@lists.fedorahosted.org
cobbler mailing list
cobbler@lists.fedorahosted.org
--
Make It So Number One
cobbler mailing list
cobbler@lists.fedorahosted.org
cobbler mailing list
cobbler@lists.fedorahosted.org
--
Make It So Number One
cobbler mailing list
cobbler@lists.fedorahosted.org
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
cobbler@lists.fedorahosted.org