Reboot loop with second nic on vm

Hi,

Today I'm having something weird again.

When I add a second nic either through oVirt or foreman itself and
reboot the vm, it gets to the local boot screen and after the counter
hits 0 it keeps rebooting.

When I unplug or remove the NIC, bootup works fine again.

Met vriendelijke groet, With kind regards,

Jorick Astrego

Netbulae Virtualization Experts

··· ----------------
Tel: 053 20 30 270 	info@netbulae.eu 	Staalsteden 4-3A 	KvK 08198180
Fax: 053 20 30 271 	www.netbulae.eu 	7547 TA Enschede 	BTW NL821234584B01

So again, you have a provisioned host that is not in "build" mode, you
power it off, add new NIC, power on and it does not localboot?

In that case, can you try local_legacy mode?

Just edit the PXELinux configuration manually for that host on the TFTP
server and reboot if it helps. Just curious if this has anything to do with
it. All right, all right, I am shooting in the dark :slight_smile:

LZ

··· On Mon, Nov 7, 2016 at 2:54 PM, Jorick Astrego wrote:

Hi,

Today I’m having something weird again.

When I add a second nic either through oVirt or foreman itself and
reboot the vm, it gets to the local boot screen and after the counter
hits 0 it keeps rebooting.

When I unplug or remove the NIC, bootup works fine again.

Met vriendelijke groet, With kind regards,

Jorick Astrego

*Netbulae Virtualization Experts *

Tel: 053 20 30 270 info@netbulae.eu Staalsteden 4-3A KvK 08198180
Fax: 053 20 30 271 www.netbulae.eu 7547 TA Enschede BTW NL821234584B01


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Later,
Lukas @lzap Zapletal

Yes local_legacy mode works. Could it be caused by us having the
discovery plugin installed and enabled on our main foreman and not on
the capsule?

We want to use discovery for the bare metal but not the VM's in ovirt…

Regards,

Jorick Astrego

··· On 11/08/2016 03:44 PM, Lukas Zapletal wrote: > So again, you have a provisioned host that is not in "build" mode, you > power it off, add new NIC, power on and it does not localboot? > > In that case, can you try local_legacy mode? > > https://github.com/theforeman/community-templates/blob/9769dc89ec5d93193b059aeec3f3f9c80bc160d3/snippets/pxelinux_chainload.erb > > Just edit the PXELinux configuration manually for that host on the > TFTP server and reboot if it helps. Just curious if this has anything > to do with it. All right, all right, I am shooting in the dark :-) > > LZ > > On Mon, Nov 7, 2016 at 2:54 PM, Jorick Astrego > wrote: > > Hi, > > Today I'm having something weird again. > > When I add a second nic either through oVirt or foreman itself and > reboot the vm, it gets to the local boot screen and after the counter > hits 0 it keeps rebooting. > > When I unplug or remove the NIC, bootup works fine again. > > > > > > > Met vriendelijke groet, With kind regards, > > Jorick Astrego > * > Netbulae Virtualization Experts * > ------------------------------------------------------------------------ > Tel: 053 20 30 270 info@netbulae.eu > Staalsteden 4-3A KvK 08198180 > Fax: 053 20 30 271 www.netbulae.eu 7547 > TA Enschede BTW NL821234584B01 > > > ------------------------------------------------------------------------ > > -- > You received this message because you are subscribed to the Google > Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, > send an email to foreman-users+unsubscribe@googlegroups.com > . > To post to this group, send email to > foreman-users@googlegroups.com > . > Visit this group at https://groups.google.com/group/foreman-users > . > For more options, visit https://groups.google.com/d/optout > . > > > > > -- > Later, > Lukas @lzap Zapletal > -- > You received this message because you are subscribed to the Google > Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to foreman-users+unsubscribe@googlegroups.com > . > To post to this group, send email to foreman-users@googlegroups.com > . > Visit this group at https://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.

Met vriendelijke groet, With kind regards,

Jorick Astrego

Netbulae Virtualization Experts


Tel: 053 20 30 270 	info@netbulae.eu 	Staalsteden 4-3A 	KvK 08198180
Fax: 053 20 30 271 	www.netbulae.eu 	7547 TA Enschede 	BTW NL821234584B01

I have no idea, it's weird. I just encountered similar behaviour on oVirt.

Can you tell what causes the traditional localboot entry not to work? Is
this really adding a NIC? Can you verify what kind of NIC firmware have you
configured for both NICs? Are these the same drivers? Different? Can you
try with all of the drivers possible?

I could not reproduce this on my instance. What version of oVirt do you
have?

LZ

··· On Wed, Nov 9, 2016 at 10:50 AM, Jorick Astrego wrote:

Yes local_legacy mode works. Could it be caused by us having the discovery
plugin installed and enabled on our main foreman and not on the capsule?

We want to use discovery for the bare metal but not the VM’s in ovirt…

Regards,

Jorick Astrego
On 11/08/2016 03:44 PM, Lukas Zapletal wrote:

So again, you have a provisioned host that is not in “build” mode, you
power it off, add new NIC, power on and it does not localboot?

In that case, can you try local_legacy mode?

https://github.com/theforeman/community-templates/blob/
9769dc89ec5d93193b059aeec3f3f9c80bc160d3/snippets/pxelinux_chainload.erb

Just edit the PXELinux configuration manually for that host on the TFTP
server and reboot if it helps. Just curious if this has anything to do with
it. All right, all right, I am shooting in the dark :slight_smile:

LZ

On Mon, Nov 7, 2016 at 2:54 PM, Jorick Astrego jorick@netbulae.eu wrote:

Hi,

Today I’m having something weird again.

When I add a second nic either through oVirt or foreman itself and
reboot the vm, it gets to the local boot screen and after the counter
hits 0 it keeps rebooting.

When I unplug or remove the NIC, bootup works fine again.

Met vriendelijke groet, With kind regards,

Jorick Astrego

  • Netbulae Virtualization Experts *

Tel: 053 20 30 270 info@netbulae.eu Staalsteden 4-3A KvK 08198180
Fax: 053 20 30 271 www.netbulae.eu 7547 TA Enschede BTW NL821234584B01


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Later,
Lukas @lzap Zapletal

You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Met vriendelijke groet, With kind regards,

Jorick Astrego

*Netbulae Virtualization Experts *

Tel: 053 20 30 270 info@netbulae.eu Staalsteden 4-3A KvK 08198180
Fax: 053 20 30 271 www.netbulae.eu 7547 TA Enschede BTW NL821234584B01


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Later,
Lukas @lzap Zapletal

> I have no idea, it's weird. I just encountered similar behaviour on
> oVirt.
>
> Can you tell what causes the traditional localboot entry not to work?
> Is this really adding a NIC? Can you verify what kind of NIC firmware
> have you configured for both NICs? Are these the same drivers?
> Different? Can you try with all of the drivers possible?
>
Yes, when I remove the NIC or just unplug it in ovirt, it works. When I
add one or plug it back in, it works.

The driver used for all NIC's is VIRTIO as they are virtual. It works
after the timeout with the modifications I did to the pxeboot, oressing
enter to continue without waiting for the timeout puts it in the loop

With the normal default pxe boot, it still fails no matter which NIC
driver I use "e1000" or "rtl839".

Very weird, for now I just change the boot order after provisioning…

Regards,

> I could not reproduce this on my instance. What version of oVirt do
> you have?
>
> LZ
>
>
> Yes local_legacy mode works. Could it be caused by us having the
> discovery plugin installed and enabled on our main foreman and not
> on the capsule?
>
> We want to use discovery for the bare metal but not the VM's in
> ovirt…
>
> Regards,
>
> Jorick Astrego
>
>> So again, you have a provisioned host that is not in "build"
>> mode, you power it off, add new NIC, power on and it does not
>> localboot?
>>
>> In that case, can you try local_legacy mode?
>>
>> https://github.com/theforeman/community-templates/blob/9769dc89ec5d93193b059aeec3f3f9c80bc160d3/snippets/pxelinux_chainload.erb
>> <https://github.com/theforeman/community-templates/blob/9769dc89ec5d93193b059aeec3f3f9c80bc160d3/snippets/pxelinux_chainload.erb>
>>
>> Just edit the PXELinux configuration manually for that host on
>> the TFTP server and reboot if it helps. Just curious if this has
>> anything to do with it. All right, all right, I am shooting in
>> the dark :slight_smile:
>>
>> LZ
>>
>>
>> Hi,
>>
>> Today I'm having something weird again.
>>
>> When I add a second nic either through oVirt or foreman
>> itself and
>> reboot the vm, it gets to the local boot screen and after the
>> counter
>> hits 0 it keeps rebooting.
>>
>> When I unplug or remove the NIC, bootup works fine again.
>>
>>
>>
>>
>>
>>
>> Met vriendelijke groet, With kind regards,
>>
>> Jorick Astrego
>> *
>> Netbulae Virtualization Experts *
>> ------------------------------------------------------------------------
>> Tel: 053 20 30 270 info@netbulae.eu
>> <mailto:info@netbulae.eu> Staalsteden 4-3A KvK 08198180
>> Fax: 053 20 30 271 www.netbulae.eu <http://www.netbulae.eu>
>> 7547 TA Enschede BTW NL821234584B01
>>
>>
>> ------------------------------------------------------------------------
>>
>> –
>> You received this message because you are subscribed to the
>> Google Groups "Foreman users" group.
>> To unsubscribe from this group and stop receiving emails from
>> it, send an email to
>> foreman-users+unsubscribe@googlegroups.com
>> <mailto:foreman-users+unsubscribe@googlegroups.com>.
>> To post to this group, send email to
>> foreman-users@googlegroups.com
>> <mailto:foreman-users@googlegroups.com>.
>> Visit this group at
>> https://groups.google.com/group/foreman-users
>> <https://groups.google.com/group/foreman-users>.
>> For more options, visit https://groups.google.com/d/optout
>> <https://groups.google.com/d/optout>.
>>
>>
>>
>>
>> –
>> Later,
>> Lukas @lzap Zapletal
>> –
>> You received this message because you are subscribed to the
>> Google Groups "Foreman users" group.
>> To unsubscribe from this group and stop receiving emails from it,
>> send an email to foreman-users+unsubscribe@googlegroups.com
>> <mailto:foreman-users+unsubscribe@googlegroups.com>.
>> To post to this group, send email to
>> foreman-users@googlegroups.com
>> <mailto:foreman-users@googlegroups.com>.
>> Visit this group at https://groups.google.com/group/foreman-users
>> <https://groups.google.com/group/foreman-users>.
>> For more options, visit https://groups.google.com/d/optout
>> <https://groups.google.com/d/optout>.
>
>
>
>
>
> Met vriendelijke groet, With kind regards,
>
> Jorick Astrego
> *
> Netbulae Virtualization Experts *
> ------------------------------------------------------------------------
> Tel: 053 20 30 270 info@netbulae.eu <mailto:info@netbulae.eu>
> Staalsteden 4-3A KvK 08198180
> Fax: 053 20 30 271 www.netbulae.eu <http://www.netbulae.eu> 7547
> TA Enschede BTW NL821234584B01
>
>
> ------------------------------------------------------------------------
>
> –
> You received this message because you are subscribed to the Google
> Groups "Foreman users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to foreman-users+unsubscribe@googlegroups.com
> <mailto:foreman-users+unsubscribe@googlegroups.com>.
> To post to this group, send email to
> foreman-users@googlegroups.com
> <mailto:foreman-users@googlegroups.com>.
> Visit this group at https://groups.google.com/group/foreman-users
> <https://groups.google.com/group/foreman-users>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
>
>
> –
> Later,
> Lukas @lzap Zapletal
> –
> You received this message because you are subscribed to the Google
> Groups "Foreman users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to foreman-users+unsubscribe@googlegroups.com
> <mailto:foreman-users+unsubscribe@googlegroups.com>.
> To post to this group, send email to foreman-users@googlegroups.com
> <mailto:foreman-users@googlegroups.com>.
> Visit this group at https://groups.google.com/group/foreman-users.
> For more options, visit https://groups.google.com/d/optout.

Met vriendelijke groet, With kind regards,

Jorick Astrego

Netbulae Virtualization Experts

··· On 11/09/2016 02:36 PM, Lukas Zapletal wrote: > On Wed, Nov 9, 2016 at 10:50 AM, Jorick Astrego > wrote: > On 11/08/2016 03:44 PM, Lukas Zapletal wrote: >> On Mon, Nov 7, 2016 at 2:54 PM, Jorick Astrego >> <jorick@netbulae.eu > wrote:
Tel: 053 20 30 270 	info@netbulae.eu 	Staalsteden 4-3A 	KvK 08198180
Fax: 053 20 30 271 	www.netbulae.eu 	7547 TA Enschede 	BTW NL821234584B01