Re: [CentOS] The case of the missing /boot/grub2/grub.cfg in centos8

2019-12-26 Thread Nicolas Kovacs

Le 27/12/2019 à 04:11, Mauricio Tavares a écrit :

Why is it not there?  FYI, I did try 'yum reinstall grub2' and no
/boot/grub2/grub.cfg for me.


You're probably on an EFI system, and your grub.cfg is in a different 
location. Can't remember it off the top of my head, but do


# find /boot -name 'grub.cfg'

Cheers,

Niki

--
Microlinux - Solutions informatiques durables
7, place de l'église - 30730 Montpezat
Site : https://www.microlinux.fr
Mail : i...@microlinux.fr
Tél. : 04 66 63 10 32
Mob. : 06 51 80 12 12
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Disabling TLS 1.1 in Centos 7 cockpit

2019-12-26 Thread Erick Perez - Quadrian Enterprises
Hi, I'm using cockpit in standard port 9090 in a Centos 7 system.
Due to a suggestion from management, they want TLS 1.1 disabled
system-wide in all Linux boxes and TLS 1.2 enabled.

I have not found proper documentation on how to disable it for cockpit
(version 195.1 ships with Centos 7)

So far I have tried (https://cockpit-project.org/guide/149/https.html):

/usr/lib/systemd/system/cockpit.service
[Service]
Environment=G_TLS_GNUTLS_PRIORITY=-VERS-ALL:+VERS-TLS1.2

And I also created the file /etc/systemd/system/cockpit.service.d/ssl.conf
and added:
[Service]
Environment=G_TLS_GNUTLS_PRIORITY=-VERS-ALL:+VERS-TLS1.2

after that, I systemctl restart cockpit

But if I do
#openssl s_client -connect  localhost:9090 -tls1_1
I get a proper response (a certificate), so TLS 1.1 is being accepted.

Suggestions?

Thanks.

-- 

-
Erick Perez
-
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] The case of the missing /boot/grub2/grub.cfg in centos8

2019-12-26 Thread Mauricio Tavares
So I installed centos8. And I was looking for the grub config file:

[root@testbox ~]# ls -l /etc/grub2.cfg
lrwxrwxrwx. 1 root root 22 Oct  2 13:01 /etc/grub2.cfg -> ../boot/grub2/grub.cfg
[root@testbox ~]#

But

[root@testbox ~]# ls /boot/grub2/
grubenv
[root@testbox ~]#

Why is it not there?  FYI, I did try 'yum reinstall grub2' and no
/boot/grub2/grub.cfg for me.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Problem with disconnecting SSH-sessions

2019-12-26 Thread Gordon Messmer

On 12/26/19 2:49 PM, H wrote:

I just looked at the settings in /etc/ssh/ssh_config on the workstation - which 
should apply to all users on it - I already had:

Host *
  TCPKeepAlive yes
  ServerAliveInterval 60



Well, keep-alive options would only make a difference if the problem 
were a DNAT timeout.  If it's some other limitation imposed on DNAT, 
those won't have any effect.


If you can reproduce this reliably and have admin access to both the 
server and client, you can determine whether the router is the problem:


1) Start an scp transfer of a large file

2) Use netstat or ss on the client to determine what port the client is 
using for the SSH connection


3) Use netstat or ss on the server to determine what port the client is 
using (NAT will probably change both the client's address and port)


4) Run "tcpdump -nn host  and port " on 
the client, using the values from step 2


5) Run "tcpdump -nn host  and port " on 
the server, using the values from step 3


6) Wait for the transfer to terminate

I expect that when the client terminates, you'll see a TCP reset packet 
at the end of the output from tcpdump on the client side, but you won't 
see that packet in the tcpdump output on the server side.  If so, then 
the router is sending the TCP reset, and you'll need to work with its 
owners to resolve the problem.


Incidentally, why are you connecting to an internal resource through an 
external address (NAT)?  Are you unable to connect directly to its 
internal address?


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Problem with disconnecting SSH-sessions

2019-12-26 Thread R C
are you using ssh to connect to a server, and from there do a scp? If 
so, your ssh session might be the  one timing out,and not the


scp session, due to inactivity on the terminal session.  you can always 
use the -vvv option, to see more detailed msgs about what is going on.



Ron

On 12/25/19 7:56 AM, H wrote:

I am running CentOS 7 on a workstation and CentOS 6 and 7 on a couple of 
servers I am remotely connecting to using the same username and thus ssh 
configuration. However, one of the servers running CentOS 6 I keep getting 
disconnected from whereas I have no such problems with another CentOS 6 server 
and CentOS 7 server. The latter two are on two different hosted server setups 
far, far away whereas the problematic one is my own physical hardware in the 
same building.

I have tried to make sure the sshd configuration on all servers are identical 
but still have this problem. I can rule out a general problem with the router 
in my office since all connections are via that router, the only difference is 
that the problematic server is in the same building and the connection loops 
back via the same router but through an external IP address. /var/log/secure on 
the workstation offers no clues with no messages regarding any disconnection.

If anyone has suggestions what I should check, it would be greatly appreciated!

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Problem with disconnecting SSH-sessions

2019-12-26 Thread H
On 12/26/2019 05:05 PM, H wrote:
> On 12/26/2019 04:45 PM, Gordon Messmer wrote:
>> On 12/26/19 12:59 PM, H wrote:
>>> Are my observations above still consistent with your hypothesis?
>>
>> Largely, yes.  I'm not sure why you'd be disconnected while transferring 
>> data (one of scp or sftp, right?), but it sounds like a DNAT-related limit.
>>
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> https://lists.centos.org/mailman/listinfo/centos
> Yes, I am using scp and sometimes, but not always, get disconnected within 10 
> minutes while transferring gigabyte files. I will try what you suggested in 
> your previous post. I guess there is nothing I can change in the router 
> itself?
>
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos

I just looked at the settings in /etc/ssh/ssh_config on the workstation - which 
should apply to all users on it - I already had:

Host *

 TCPKeepAlive yes

 ServerAliveInterval 60

 ServerAliveCountMax 300

So, unless there are some other settings I should check, this should always 
apply when I open any ssh connection on the workstation, or?

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Problem with disconnecting SSH-sessions

2019-12-26 Thread H
On 12/26/2019 04:45 PM, Gordon Messmer wrote:
> On 12/26/19 12:59 PM, H wrote:
>> Are my observations above still consistent with your hypothesis?
>
>
> Largely, yes.  I'm not sure why you'd be disconnected while transferring data 
> (one of scp or sftp, right?), but it sounds like a DNAT-related limit.
>
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos

Yes, I am using scp and sometimes, but not always, get disconnected within 10 
minutes while transferring gigabyte files. I will try what you suggested in 
your previous post. I guess there is nothing I can change in the router itself?

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Problem with disconnecting SSH-sessions

2019-12-26 Thread Gordon Messmer

On 12/26/19 12:59 PM, H wrote:

Are my observations above still consistent with your hypothesis?



Largely, yes.  I'm not sure why you'd be disconnected while transferring 
data (one of scp or sftp, right?), but it sounds like a DNAT-related limit.


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] State of CentOS 8

2019-12-26 Thread Lamar Owen

On 12/23/19 3:16 AM, Nicolas Kovacs wrote:

Le 23/12/2019 à 02:48, Akemi Yagi a écrit :

You may want to watch the "CR work" on that wiki page.


CR seems to be empty right now.


Not any more; updating one of my testing C8 VMs to the CR content now.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Problem with disconnecting SSH-sessions

2019-12-26 Thread H
On 12/26/2019 02:47 PM, Gordon Messmer wrote:
> On 12/25/19 6:56 AM, H wrote:
>> I have tried to make sure the sshd configuration on all servers are 
>> identical but still have this problem. I can rule out a general problem with 
>> the router in my office since all connections are via that router, the only 
>> difference is that the problematic server is in the same building and the 
>> connection loops back via the same router but through an external IP address.
>
>
> When you say "external address," I assume you mean that your office network 
> is being NATed.  In that case, when you are connecting to systems outside 
> your network, the router is performing SNAT for your connections.  When you 
> connect to the system in your building, using an "external" address, your 
> router is probably performing both SNAT and DNAT for that connection. Your 
> router may have different timeouts on its SNAT and DNAT tables.  More than 
> likely, the timeout for DNAT is lower than the TCP keepalive time, and you're 
> seeing idle connections closed by the router.  You might be able to prevent 
> that by setting a ServerAliveInterval value in ~/.ssh/config.  It is disabled 
> by default, but should keep connections alive in your case, if it is set 
> lower than the timeout on the router.
>
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos

I now have additional information:

- I could not find any entries in /var/log/secure on the server either that 
related to disconnections.

- I am also being disconnected while doing ssh transfers, thus not only when 
the session is idle. No set time intervals but often as quickly as within 10 
minutes after establishing the ssh connection.

- Further - which I forgot to mention - when I connect from my workstation back 
to server on the same router using Cisco AnyConnect software terminating far, 
far away and then thus going back to same router, I have no problems with being 
disconnected when the connection is idle. Thus no general problem with the 
router or the hardware on the server itself.

- Finally, today I for the first time connected to the server using the 
internal 192.168.x.x. address and have after several hours of idle session not 
been disconnected.

Are my observations above still consistent with your hypothesis?

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Nginx on CentOS 7: which one for production?

2019-12-26 Thread Jon Pruente
On Thu, Dec 26, 2019 at 4:17 AM Nicolas Kovacs  wrote:

> I wonder which version is recommended for production use on CentOS 7.
> Any suggestions?
>

It all depends on your needs. The nginx repo has 1.16.1, EPEL currently has
nginx 1.16.1 as well but could lag depending on the package maintainer. My
take is that the upstream repo will be the most up to date, but the EPEL
repo might be the most "correct" or tested on RHEL/CentOS.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Nginx on CentOS 7: which one for production?

2019-12-26 Thread Kenneth Porter
--On Thursday, December 26, 2019 8:35 PM +0100 Nicolas Kovacs 
 wrote:



At this point I'm already vaguely familiar with setting up Nginx. I was
only a little confused about which binary version to choose.


I was a bit confused when first setting it up, and I wanted to make sure 
that others who found my reply in the archives learned about the conflicts 
in blog HOWTOs. Some were suggesting putting the virtual servers in 
sites-available, which is a Debian convention that imitates their Apache 
layout.




___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] nfs causes Centos 7.7 system to hang

2019-12-26 Thread Gordon Messmer

On 12/26/19 2:15 AM, Nikolaos Milas wrote:
After I upgraded to latest: CentOS Linux release 7.7.1908 (Core) I am 
facing nfs crashes which cause the system to hang frequently.



This is happening on the client, right?  What system is providing the 
NFS service?



I tried to downgrade nfs-utils and rpcbind to earlier versions (in 
case there is a bug in latest ones), but I couldn't: 



Assuming this is a bug, it's probably in the kernel and not one of those 
two packages.  Select an older kernel from the GRUB list when the system 
boots, and see if the problem goes away.


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Problem with disconnecting SSH-sessions

2019-12-26 Thread Gordon Messmer

On 12/25/19 6:56 AM, H wrote:

I have tried to make sure the sshd configuration on all servers are identical 
but still have this problem. I can rule out a general problem with the router 
in my office since all connections are via that router, the only difference is 
that the problematic server is in the same building and the connection loops 
back via the same router but through an external IP address.



When you say "external address," I assume you mean that your office 
network is being NATed.  In that case, when you are connecting to 
systems outside your network, the router is performing SNAT for your 
connections.  When you connect to the system in your building, using an 
"external" address, your router is probably performing both SNAT and 
DNAT for that connection. Your router may have different timeouts on its 
SNAT and DNAT tables.  More than likely, the timeout for DNAT is lower 
than the TCP keepalive time, and you're seeing idle connections closed 
by the router.  You might be able to prevent that by setting a 
ServerAliveInterval value in ~/.ssh/config.  It is disabled by default, 
but should keep connections alive in your case, if it is set lower than 
the timeout on the router.


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Nginx on CentOS 7: which one for production?

2019-12-26 Thread Nicolas Kovacs

Le 26/12/2019 à 18:44, Kenneth Porter a écrit :

I suggest using the upstream package. Instructions can be found here:

https://nginx.org/en/linux_packages.html#RHEL-CentOS


OK



There's some conflicting information about how to set up your virtual 
servers in /etc in various blogs. Look at the official documentation to 
see their recommended setup. Most of your customization goes in 
/etc/nginx/conf.d.


https://nginx.org/en/docs/


A few weeks ago I bought an online video course about Nginx on Udemy, 
and I really enjoyed it. (Disclaimer: I'm not affiliated in any way)


At this point I'm already vaguely familiar with setting up Nginx. I was 
only a little confused about which binary version to choose.


Cheers,

Niki

--
Microlinux - Solutions informatiques durables
7, place de l'église - 30730 Montpezat
Site : https://www.microlinux.fr
Mail : i...@microlinux.fr
Tél. : 04 66 63 10 32
Mob. : 06 51 80 12 12
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Nginx on CentOS 7: which one for production?

2019-12-26 Thread Kenneth Porter

On 12/26/2019 2:17 AM, Nicolas Kovacs wrote:
I wonder which version is recommended for production use on CentOS 7. 
Any suggestions? 


I suggest using the upstream package. Instructions can be found here:

https://nginx.org/en/linux_packages.html#RHEL-CentOS

There's some conflicting information about how to set up your virtual 
servers in /etc in various blogs. Look at the official documentation to 
see their recommended setup. Most of your customization goes in 
/etc/nginx/conf.d.


https://nginx.org/en/docs/


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] livemedia-creator --make-pxe-live CentOS 7

2019-12-26 Thread R C
ah ok,  I do that different, I use VNFS and Perceus, however it works 
basically the same, initially.


You would need to create a ramdisk, and the best way to do that is by 
using an existing one, unpack it, stick


the stuff you need in it, and pack it again. (I have notes about the 
details there, but not them with me right now)


The way a ramdisk is (un)packacked has changed. After you have that 
ramdisk, you mount the "rest" using NFS.


(so things like mount etc needs to be on your ramdisk.) Typically you 
want the kernel from your netboot/tftp to


start the PXE process, simply because it is smaller, and use it to load 
your ramdisk and kernel, as configured in


pxeconfig  (check the default file).


Ron


On 12/26/19 10:20 AM, Drew Weaver wrote:

Oh, alright my specific issue is just about creating the actual pxe image.. not 
what happens after

-Original Message-
From: CentOS  On Behalf Of R C
Sent: Thursday, December 26, 2019 12:18 PM
To: centos@centos.org
Subject: Re: [CentOS] livemedia-creator --make-pxe-live CentOS 7

I have "issues" with later versions of Centos/RHEL 7 also.

PXE boot seems to work, but after the new kernel kexec's, it seems to drop the 
NICS and

further in the process for some reason, the nics never come up, which leads to 
all kindsof issues of course

(trying to boot a cluster that way). I also have the impression that it is a 
dracut issue, however, I have not pinpointed it yet.


Ron


On 12/26/19 9:57 AM, Drew Weaver wrote:

Hello,

I am trying to build a PXE boot image for CentOS 7.

livemedia-creator --make-pxe-live --ks=ks --no-virt

It runs the entire process and then it says:

losetup: /dev/: detach failed: Inappropriate ioctl for device
2019-12-26 11:49:47,293: Disk Image install successful
2019-12-26 11:49:47,293: working dir is /var/tmp/tmpKwqC77
mount: /dev/loop0 is write-protected, mounting read-only
mount: unknown filesystem type '(null)'
2019-12-26 11:49:52,301: Command '['mount', '-o', 'loop', 
'/var/tmp/diskJVpsJd.img', '/var/tmp/lorax.imgutils.OtV8Yh']' returned non-zero 
exit status 32

I then tried it on CentOS 8 and had the same problem until I installed the 
dracut-live package but that package doesn't exist on CentOS 7.

I will point out that it seems to work fine with make-iso, just not 
make-pxe-live. So there is probably a package it needs that I don't know about. 
Has anyone gotten this to work at all?

Since it is a disk/image issue this is the part of the ks relevant to disks:

# Disk partitioning information
reqpart
part / --fstype="ext4" --size=4000
part swap --size=1000
zerombr
clearpart --all
bootloader --location=mbr

Below is my packages part of my kickstart:

%packages
# Packages needed by anaconda, but not directly required.
# Includes all of the grub2 and shim packages needed, except
# for the grub2-efi-*-cdboot package
@anaconda-tools --optional
@core
anaconda
isomd5sum
kernel
memtest86+
syslinux
-dracut-config-rescue
dell-system-update
# This package is needed to boot the iso on UEFI
grub2-efi-*-cdboot
grub2-efi-ia32
%end

Thanks,
-Drew

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] livemedia-creator --make-pxe-live CentOS 7

2019-12-26 Thread Drew Weaver
Oh, alright my specific issue is just about creating the actual pxe image.. not 
what happens after

-Original Message-
From: CentOS  On Behalf Of R C
Sent: Thursday, December 26, 2019 12:18 PM
To: centos@centos.org
Subject: Re: [CentOS] livemedia-creator --make-pxe-live CentOS 7

I have "issues" with later versions of Centos/RHEL 7 also.

PXE boot seems to work, but after the new kernel kexec's, it seems to drop the 
NICS and

further in the process for some reason, the nics never come up, which leads to 
all kindsof issues of course

(trying to boot a cluster that way). I also have the impression that it is a 
dracut issue, however, I have not pinpointed it yet.


Ron


On 12/26/19 9:57 AM, Drew Weaver wrote:
> Hello,
>
> I am trying to build a PXE boot image for CentOS 7.
>
> livemedia-creator --make-pxe-live --ks=ks --no-virt
>
> It runs the entire process and then it says:
>
> losetup: /dev/: detach failed: Inappropriate ioctl for device
> 2019-12-26 11:49:47,293: Disk Image install successful
> 2019-12-26 11:49:47,293: working dir is /var/tmp/tmpKwqC77
> mount: /dev/loop0 is write-protected, mounting read-only
> mount: unknown filesystem type '(null)'
> 2019-12-26 11:49:52,301: Command '['mount', '-o', 'loop', 
> '/var/tmp/diskJVpsJd.img', '/var/tmp/lorax.imgutils.OtV8Yh']' returned 
> non-zero exit status 32
>
> I then tried it on CentOS 8 and had the same problem until I installed the 
> dracut-live package but that package doesn't exist on CentOS 7.
>
> I will point out that it seems to work fine with make-iso, just not 
> make-pxe-live. So there is probably a package it needs that I don't know 
> about. Has anyone gotten this to work at all?
>
> Since it is a disk/image issue this is the part of the ks relevant to disks:
>
> # Disk partitioning information
> reqpart
> part / --fstype="ext4" --size=4000
> part swap --size=1000
> zerombr
> clearpart --all
> bootloader --location=mbr
>
> Below is my packages part of my kickstart:
>
> %packages
> # Packages needed by anaconda, but not directly required.
> # Includes all of the grub2 and shim packages needed, except
> # for the grub2-efi-*-cdboot package
> @anaconda-tools --optional
> @core
> anaconda
> isomd5sum
> kernel
> memtest86+
> syslinux
> -dracut-config-rescue
> dell-system-update
> # This package is needed to boot the iso on UEFI
> grub2-efi-*-cdboot
> grub2-efi-ia32
> %end
>
> Thanks,
> -Drew
>
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] livemedia-creator --make-pxe-live CentOS 7

2019-12-26 Thread R C

I have "issues" with later versions of Centos/RHEL 7 also.

PXE boot seems to work, but after the new kernel kexec's, it seems to 
drop the NICS and


further in the process for some reason, the nics never come up, which 
leads to all kindsof issues of course


(trying to boot a cluster that way). I also have the impression that it 
is a dracut issue, however, I have not pinpointed it yet.



Ron


On 12/26/19 9:57 AM, Drew Weaver wrote:

Hello,

I am trying to build a PXE boot image for CentOS 7.

livemedia-creator --make-pxe-live --ks=ks --no-virt

It runs the entire process and then it says:

losetup: /dev/: detach failed: Inappropriate ioctl for device
2019-12-26 11:49:47,293: Disk Image install successful
2019-12-26 11:49:47,293: working dir is /var/tmp/tmpKwqC77
mount: /dev/loop0 is write-protected, mounting read-only
mount: unknown filesystem type '(null)'
2019-12-26 11:49:52,301: Command '['mount', '-o', 'loop', 
'/var/tmp/diskJVpsJd.img', '/var/tmp/lorax.imgutils.OtV8Yh']' returned non-zero 
exit status 32

I then tried it on CentOS 8 and had the same problem until I installed the 
dracut-live package but that package doesn't exist on CentOS 7.

I will point out that it seems to work fine with make-iso, just not 
make-pxe-live. So there is probably a package it needs that I don't know about. 
Has anyone gotten this to work at all?

Since it is a disk/image issue this is the part of the ks relevant to disks:

# Disk partitioning information
reqpart
part / --fstype="ext4" --size=4000
part swap --size=1000
zerombr
clearpart --all
bootloader --location=mbr

Below is my packages part of my kickstart:

%packages
# Packages needed by anaconda, but not directly required.
# Includes all of the grub2 and shim packages needed, except
# for the grub2-efi-*-cdboot package
@anaconda-tools --optional
@core
anaconda
isomd5sum
kernel
memtest86+
syslinux
-dracut-config-rescue
dell-system-update
# This package is needed to boot the iso on UEFI
grub2-efi-*-cdboot
grub2-efi-ia32
%end

Thanks,
-Drew

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] livemedia-creator --make-pxe-live CentOS 7

2019-12-26 Thread Drew Weaver
Hello,

I am trying to build a PXE boot image for CentOS 7.

livemedia-creator --make-pxe-live --ks=ks --no-virt

It runs the entire process and then it says:

losetup: /dev/: detach failed: Inappropriate ioctl for device
2019-12-26 11:49:47,293: Disk Image install successful
2019-12-26 11:49:47,293: working dir is /var/tmp/tmpKwqC77
mount: /dev/loop0 is write-protected, mounting read-only
mount: unknown filesystem type '(null)'
2019-12-26 11:49:52,301: Command '['mount', '-o', 'loop', 
'/var/tmp/diskJVpsJd.img', '/var/tmp/lorax.imgutils.OtV8Yh']' returned non-zero 
exit status 32

I then tried it on CentOS 8 and had the same problem until I installed the 
dracut-live package but that package doesn't exist on CentOS 7.

I will point out that it seems to work fine with make-iso, just not 
make-pxe-live. So there is probably a package it needs that I don't know about. 
Has anyone gotten this to work at all?

Since it is a disk/image issue this is the part of the ks relevant to disks:

# Disk partitioning information
reqpart
part / --fstype="ext4" --size=4000
part swap --size=1000
zerombr
clearpart --all
bootloader --location=mbr

Below is my packages part of my kickstart:

%packages
# Packages needed by anaconda, but not directly required.
# Includes all of the grub2 and shim packages needed, except
# for the grub2-efi-*-cdboot package
@anaconda-tools --optional
@core
anaconda
isomd5sum
kernel
memtest86+
syslinux
-dracut-config-rescue
dell-system-update
# This package is needed to boot the iso on UEFI
grub2-efi-*-cdboot
grub2-efi-ia32
%end

Thanks,
-Drew

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Raspberri PI 4B 4GB install image

2019-12-26 Thread Pete Biggs
On Wed, 2019-12-25 at 20:33 -0500, MAILIST wrote:
> You will have better luck with Raspbian.  Just sayin'

Yes, absolutely. I know it's appealing to install an OS you know and
love, but the tweaks that the RasPi Foundation have put into the
Raspbian kernel and utilities make it a no brainer. I run Fedora on my
own desktops, CentOS everywhere at work, but I still use Raspbian on
the Pi's.

> 
> I have installed 16 Rapberry Pi's
> 
Only 16?  :-)

P.


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] CentOS-announce Digest, Vol 178, Issue 5

2019-12-26 Thread centos-announce-request
Send CentOS-announce mailing list submissions to
centos-annou...@centos.org

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.centos.org/mailman/listinfo/centos-announce
or, via email, send a message with subject or body 'help' to
centos-announce-requ...@centos.org

You can reach the person managing the list at
centos-announce-ow...@centos.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of CentOS-announce digest..."


Today's Topics:

   1. CentOS Linux 8.0.1905 Continuous Release Populated (Brian Stinson)


--

Message: 1
Date: Wed, 25 Dec 2019 23:16:52 -0600
From: "Brian Stinson" 
To: CentOS-devel , centos-annou...@centos.org
Subject: [CentOS-announce] CentOS Linux 8.0.1905 Continuous Release
Populated
Message-ID: <0b74b7dd-c879-4062-802f-49ee0ef76...@www.fastmail.com>
Content-Type: text/plain

Hi Folks,

We've populated CentOS Linux 8.0.1905 with content from the upcoming 8.1.1911 
GA Release:
https://wiki.centos.org/AdditionalResources/Repositories/CR

This includes only the GA content at this time (0-day updates are still 
pending). 

One of the major things we're working on is matching the x86_64 multilib 
content set with upstream, be prepared for changes to i686 packages that may be 
removed at release time for CentOS Linux.

As usual, this content takes a little while to make it out to the mirror 
network, but it should coalesce shortly.

On behalf of the CentOS team: Happy testing, and Happy *C*hristmas *R*elease 

-- 
  Brian Stinson
  br...@bstinson.com


--

Subject: Digest Footer

___
CentOS-announce mailing list
centos-annou...@centos.org
https://lists.centos.org/mailman/listinfo/centos-announce


--

End of CentOS-announce Digest, Vol 178, Issue 5
***
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Nginx on CentOS 7: which one for production?

2019-12-26 Thread Nicolas Kovacs

Hi,

I'm currently fiddling with Nginx to get acquainted with its various 
quirks and idiosyncrasies.


I have a public CentOS 7 sandbox server, and I've tried various setups. 
Install the binary from EPEL, install various binaries from SCLo, build 
from source.


I wonder which version is recommended for production use on CentOS 7. 
Any suggestions?


Cheers & happy Christmas holidays,

Niki
--
Microlinux - Solutions informatiques durables
7, place de l'église - 30730 Montpezat
Site : https://www.microlinux.fr
Mail : i...@microlinux.fr
Tél. : 04 66 63 10 32
Mob. : 06 51 80 12 12
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] nfs causes Centos 7.7 system to hang

2019-12-26 Thread Nikolaos Milas

Hello,

MERRY CHRISTMAS to all in list!

After I upgraded to latest: CentOS Linux release 7.7.1908 (Core) I am 
facing nfs crashes which cause the system to hang frequently.


This is caused by cp to nfs-mounted shares.

Below is dmesg output; you will see call traces. These cause system to 
gradually overload:


[root@hesperia1 ~]# top
top - 10:09:40 up 10:16,  1 user,  load average: 53.66, 54.13, 52.98
Tasks: 475 total,   2 running, 436 sleeping,   0 stopped,  37 zombie
%Cpu(s):  0.1 us,  0.6 sy,  0.0 ni, 99.2 id,  0.0 wa,  0.0 hi, 0.0 si,  
0.1 st

KiB Mem :  3879928 total,   813504 free,  1733216 used,  1333208 buff/cache
KiB Swap:  4063228 total,  4062708 free,  520 used.  1797264 avail Mem

and finally hangs showing messages (which I have not recorded precisely) 
in the CLI login screen like "System out of memory". Then I have to reboot.


I tried to downgrade nfs-utils and rpcbind to earlier versions (in case 
there is a bug in latest ones), but I couldn't:


   [root@hesperia1 ~]# yum downgrade rpcbind-0.2.0-47 nfs-utils-1.3.0-61
   Loaded plugins: fastestmirror
   Loading mirror speeds from cached hostfile
 * base: ftp.ntua.gr
 * epel: mirrors.daticum.com
 * extras: ftp.ntua.gr
 * updates: ftp.ntua.gr
   No package rpcbind-0.2.0-47 available.
   No package nfs-utils-1.3.0-61 available.
   Error: Nothing to do

Do you know if this is a known bug? (I couldn't find something in my 
searches.)


Can you suggest a solution / workaround? I am facing this problem 
constantly and the system has become unstable.


[root@hesperia1 ~]# dmesg
...
[   26.525584] RPC: Registered named UNIX socket transport module.
[   26.525588] RPC: Registered udp transport module.
[   26.525590] RPC: Registered tcp transport module.
[   26.525592] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   27.103268] type=1305 audit(1577317991.465:3): audit_pid=836 old=0 
auid=4294967295 ses=4294967295 res=1

[   29.384755] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[   29.629701] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   30.773604] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   31.977476] FS-Cache: Loaded
[   32.170682] FS-Cache: Netfs 'nfs' registered for caching
[   53.671997] random: crng init done
[26399.967630] INFO: task cp:14560 blocked for more than 120 seconds.
[26399.967984] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" 
disables this message.
[26399.968202] cp  D 89373fc9ac80 0 14560 14053 
0x0080

[26399.968211] Call Trace:
[26399.968272]  [] ? nfs_permission+0x105/0x220 [nfs]
[26399.968321]  [] ? security_inode_permission+0x22/0x30
[26399.968345]  [] schedule_preempt_disabled+0x29/0x70
[26399.968375]  [] __mutex_lock_slowpath+0xc7/0x1d0
[26399.968395]  [] ? unlazy_walk+0x133/0x140
[26399.968404]  [] mutex_lock+0x1f/0x2f
[26399.968410]  [] lookup_slow+0x33/0xa7
[26399.968421]  [] path_lookupat+0x838/0x8b0
[26399.968445]  [] ? kmem_cache_alloc+0x35/0x1f0
[26399.968475]  [] ? getname_flags+0x4f/0x1a0
[26399.968481]  [] filename_lookup+0x2b/0xc0
[26399.968487]  [] user_path_at_empty+0x67/0xc0
[26399.968492]  [] ? cp_new_stat+0x165/0x1a0
[26399.968497]  [] user_path_at+0x11/0x20
[26399.968501]  [] vfs_fstatat+0x63/0xc0
[26399.968505]  [] SYSC_newstat+0x2e/0x60
[26399.968530]  [] ? __audit_syscall_exit+0x1e6/0x280
[26399.968534]  [] SyS_newstat+0xe/0x10
[26399.968544]  [] system_call_fastpath+0x25/0x2a
[27479.967352] INFO: task cp:4656 blocked for more than 120 seconds.
[27479.967414] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" 
disables this message.
[27479.967711] cp  D 8936b6548000 0  4656 2914 
0x0080

[27479.967726] Call Trace:
[27479.967749]  [] ? nfs_permission+0x105/0x220 [nfs]
[27479.967762]  [] ? security_inode_permission+0x22/0x30
[27479.967769]  [] schedule_preempt_disabled+0x29/0x70
[27479.967774]  [] __mutex_lock_slowpath+0xc7/0x1d0
[27479.967786]  [] ? unlazy_walk+0x133/0x140
[27479.967792]  [] mutex_lock+0x1f/0x2f
[27479.967821]  [] lookup_slow+0x33/0xa7
[27479.967828]  [] path_lookupat+0x838/0x8b0
[27479.967836]  [] ? kmem_cache_alloc+0x35/0x1f0
[27479.967841]  [] ? getname_flags+0x4f/0x1a0
[27479.967846]  [] filename_lookup+0x2b/0xc0
[27479.967852]  [] user_path_at_empty+0x67/0xc0
[27479.967857]  [] ? cp_new_stat+0x165/0x1a0
[27479.967862]  [] user_path_at+0x11/0x20
[27479.967866]  [] vfs_fstatat+0x63/0xc0
[27479.967870]  [] SYSC_newstat+0x2e/0x60
[27479.967880]  [] ? __audit_syscall_exit+0x1e6/0x280
[27479.967884]  [] SyS_newstat+0xe/0x10
[27479.967892]  [] system_call_fastpath+0x25/0x2a
[27479.967910] INFO: task cp:7754 blocked for more than 120 seconds.
[27479.968147] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" 
disables this message.
[27479.968437] cp  D 89373fc1ac80 0  7754 7285 
0x0080

[27479.968443] Call Trace:
[27479.968455]  [] ? nfs_permission+0x105/0x220 [nfs]
[27479.968461]  [] ? security_inode_permission+0x22/0x30
[27479.968466]  [] 

[CentOS-announce] CentOS Linux 8.0.1905 Continuous Release Populated

2019-12-26 Thread Brian Stinson
Hi Folks,

We've populated CentOS Linux 8.0.1905 with content from the upcoming 8.1.1911 
GA Release:
https://wiki.centos.org/AdditionalResources/Repositories/CR

This includes only the GA content at this time (0-day updates are still 
pending). 

One of the major things we're working on is matching the x86_64 multilib 
content set with upstream, be prepared for changes to i686 packages that may be 
removed at release time for CentOS Linux.

As usual, this content takes a little while to make it out to the mirror 
network, but it should coalesce shortly.

On behalf of the CentOS team: Happy testing, and Happy *C*hristmas *R*elease 

-- 
  Brian Stinson
  br...@bstinson.com
___
CentOS-announce mailing list
CentOS-announce@centos.org
https://lists.centos.org/mailman/listinfo/centos-announce