mardi 4 mai 2021
asciiarts
dimanche 25 avril 2021
Disable macOS 11 (Big Sur) 'kernel_task' which is throttling the CPU
Disable macOS 11 (Big Sur) 'kernel_task' which is throttling the CPU
Source : "grafxflow.co.uk"
URL : "https://grafxflow.co.uk/blog/mac-os-x/delete-ioplatformpluginfamilykext-macos-big-sur"
Writer : "me@grafxflow" Le
WARNING ALERT: This ONLY relates to someone who has deleted the IOPlatformPluginFamily.kext in previous versions of macOS to sort the kernel_task overloading the CPU but now after installing macOS 11 (Big Sur) the problem has started again. You will be deleting a system extension and taking a risk... so you have been WARNED! + also best to use version 11.1 upwards, since when testing with 11.0.1 I found it very buggy!
So here is the problem...
After booting up the MacBook Pro the macOS would be running unbelievably slow. When opening the Activity Monitor to see what was happening with the CPU the thing at the top of the list was the kernel_task using around 500%!

In any of the previous versions - macOS 10.14 (Mojave) or below it was a fairly easy fix by first running recovery mode CMD + R and in the terminal.
csrutil disable
Then running single user mode CMD + S.
fsck -fy
mount -uw /
sudo mkdir /IOPlatformPluginFamily-backup-kexts/
sudo mv /System/Library/Extensions/IOPlatformPluginFamily.kext /IOPlatformPluginFamily-backup-kexts/
sudo rm -rf /System/Library/Extensions/IOPlatformPluginFamily.kext
But from macOS 10.15 (Catalina) onwards this has stopped working. The reason being that Apple introduced the read-only system volume which is a dedicated partition for only storing system content which prevents any tampering with system files which one of them is the troublesome IOPlatformPluginFamily.kext.
Now before finding the solution below which relates to macOS 11 (Big Sur) I had tried making a bootable USB running macOS 10.14 (Mojave) but this couldn't read the read-only system volume.
Step 1 - Disable FileVault
Go to System Preferences -> Security & Privacy and choose the FileVault tab. Then select Turn Off FileVault.
Step 2 - Bypassing the Signed System Volume (SSV*)
SSV helps prevent tampering with any Apple software that is part of the operating system. Additionally, it makes macOS Software Update more reliable and much safer. SSV utilizes APFS snapshots, so if an update cannot be performed, the old system version can be restored without reinstallation.
So this means that macOS Big Sur actually no longer boots from the live system volume but now boots from a snapshot/copy of the same system folder. Normally it's impossible to mount a snapshot as writable, only readable so here is the solution I have found.
So at first bootup in Recovery Mode using CMD + R. On the screen that loads go to the navigation and choose Utilities -> Terminal. Input the following.
NOTE: Without this being done first you won't have permissions to carry out the next csrutil authenticated-root disable command.
csrutil disable
Then.
reboot
Straight away bootup in Recovery Mode again using CMD + R and choose Utilities -> Terminal. Input the following.
csrutil authenticated-root disable
Then.
reboot
Step 3 - Mount the Live Volume and backup the IOPlatformPluginFamily.kext file
Now reboot back into the normal macOS boot mode and let us mount the live volume - the disk1s5 could be different.
NOTE: To find out if 'disks5' is correct for your machine enter diskutil list in the terminal which will list your drives.
diskutil mount disk1s5
Next make it writable which will require you to enter your password - the /Volumes/Macintosh\ HD\ 1 could be different.
sudo mount -uw /Volumes/Macintosh\ HD\ 1
Password:
Now let's first see that the offending IOPlatformPluginFamily.kext file exists by entering.
ls -a /Volumes/Macintosh\ HD\ 1/System/Library/Extensions/
Rather than deleting the file we will do a backup - so use the below and move it to a newly created folder.
sudo mkdir /Volumes/Macintosh\ HD\ 1/IOPlatformPluginFamily-backup-kexts/
sudo mv /Volumes/Macintosh\ HD\ 1/System/Library/Extensions/IOPlatformPluginFamily.kext /Volumes/Macintosh\ HD\ 1/IOPlatformPluginFamily-backup-kexts/
Again see if it has disappeared from the directory.
ls -a /Volumes/Macintosh\ HD\ 1/System/Library/Extensions/
Step 4 - Create snapshot and tag it for the next default reboot.
Now we have deleted the file we need to add this new version of the system folder as a snapshot so enter the following.
sudo /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs_systemsnapshot -s "SnapshotName" -v /Volumes/Macintosh\ HD\ 1
Then tag this as a our default for the next reboot.
sudo /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs_systemsnapshot -r "SnapshotName" -v /Volumes/Macintosh\ HD\ 1
Now fingers crossed you should be able to reboot and the kernel_task should no longer be hogging the CPU as before and in return slowing your machine down.
samedi 24 avril 2021
AS5432
as-block: AS5377 - AS5535 descr: RIPE NCC ASN block remarks: These AS Numbers are assigned to network operators in the RIPE NCC service region. mnt-by: RIPE-NCC-HM-MNT created: 2018-11-22T15:27:22Z last-modified: 2018-11-22T15:27:22Z source: RIPE aut-num: AS5432 as-name: PROXIMUS-ISP-AS org: ORG-BA4-RIPE admin-c: BIEC1-RIPE tech-c: BIEC1-RIPE status: ASSIGNED member-of: AS3320:AS-AUTH-PILOT-ROUTEPRIO-FROM-AS3303 abuse-c: BIAC1-RIPE mnt-by: RIPE-NCC-END-MNT remarks: ------------------------------------------------- remarks: For peering @ BNIX , please contact peering@skynet.be remarks: -------------------------------------------------- remarks: Network problems to: noc@skynet.be remarks: Abuse notifications to: abuse@proximus.com remarks: -------------------------------------------------- mnt-by: SKYNETBE-MNT created: 2002-09-10T14:42:40Z last-modified: 2020-03-04T06:25:55Z source: RIPE abuse-email: abuse@proximus.com abuse-c: BIAC1-RIPE abuse-org: ORG-BA4-RIPE organisation: ORG-BA4-RIPE org-name: Proximus NV country: BE org-type: LIR address: Koning AlbertII-laan 27 address: 1030 address: Brussels address: BELGIUM phone: +32 2 514 43 66 e-mail: ip-experteam@belgacom.be admin-c: SVdS1-RIPE admin-c: MN1190-RIPE admin-c: KB905-RIPE admin-c: PD756-RIPE abuse-c: BIAC1-RIPE mnt-ref: RIPE-NCC-HM-MNT mnt-ref: SKYNETBE-MNT mnt-by: RIPE-NCC-HM-MNT mnt-by: SKYNETBE-MNT created: 2004-04-17T11:00:05Z last-modified: 2020-12-16T13:36:07Z source: RIPE role: Belgacom Internet Expertise Center address: Proximus SA de droit public address: Network Engineering & Operations address: Boulevard du Roi Albert II, 27 address: B-1030 Bruxelles address: Belgium phone: +32 2 202-4111 abuse-mailbox: abuse@proximus.com e-mail: noc@skynet.be e-mail: cops@belgacom.be e-mail: mailadmin@skynet.be admin-c: MN1190-RIPE tech-c: SVDS1-RIPE tech-c: PD756-RIPE tech-c: KB905-RIPE nic-hdl: BIEC1-RIPE remarks: ------------------------------------------- remarks: Network problems to: noc@skynet.be remarks: Peering requests to: peering@skynet.be remarks: Abuse notifications to: abuse@belgacom.be remarks: abuse requests sent to another address remarks: will be ignored. remarks: ------------------------------------------- notify: noc@skynet.be mnt-by: SKYNETBE-MNT created: 2004-08-06T09:18:56Z last-modified: 2019-12-17T08:58:50Z source: RIPE
C'est reparti pour un tour : une première bêta pour macOS 11.4 🆕
La semaine a déjà été bien chargée mais Apple ne s'en laisse pas compter en démarrant un nouveau cycle de développement pour macOS 11.4 (cette première bêta est numérotée 20F5046g) ! Alors que macOS 11.3 est toujours en bêta, en release candidate pour être plus précis.

Mise à jour — Malgré le nombre de Mac M1 qui occupent de plus en place dans son catalogue, Apple n'en oublie pas pour autant les bons vieux Mac Intel ! Les notes de version de cette première bêta annoncent que macOS 11.4 permettra d'utiliser des cartes graphiques AMD 6800, 6800XT et 6900XT (architecture Navi RDNA2).
Podman and Buildah for Docker users
Podman and Buildah for Docker users
I was asked recently on Twitter to better explain Podman and Buildah for someone familiar with Docker. Though there are many blogs and tutorials out there, which I will list later, we in the community have not centralized an explanation of how Docker users move from Docker to Podman and Buildah. Also what role does Buildah play? Is Podman deficient in some way that we need both Podman and Buildah to replace Docker?
This article answers those questions and shows how to migrate to Podman.
How does Docker work?
First, let’s be clear about how Docker works; that will help us to understand the motivation for Podman and also for Buildah. If you are a Docker user, you understand that there is a daemon process that must be run to service all of your Docker commands. I can’t claim to understand the motivation behind this but I imagine it seemed like a great idea, at the time, to do all the cool things that Docker does in one place and also provide a useful API to that process for future evolution. In the diagram below, we can see that the Docker daemon provides all the functionality needed to:
- Pull and push images from an image registry
- Make copies of images in a local container storage and to add layers to those containers
- Commit containers and remove local container images from the host repository
- Ask the kernel to run a container with the right namespace and cgroup, etc.
Essentially the Docker daemon does all the work with registries, images, containers, and the kernel. The Docker command-line interface (CLI) asks the daemon to do this on your behalf.
This article does not get into the detailed pros and cons of the Docker daemon process. There is much to be said in favor of this approach and I can see why, in the early days of Docker, it made a lot of sense. Suffice it to say that there were several reasons why Docker users were concerned about this approach as usage went up. To list a few:
- A single process could be a single point of failure.
- This process owned all the child processes (the running containers).
- If a failure occurred, then there were orphaned processes.
- Building containers led to security vulnerabilities.
- All Docker operations had to be conducted by a user (or users) with the same full root authority.
There are probably more. Whether these issues have been fixed or you disagree with this characterization is not something this article is going to debate. We in the community believe that Podman has addressed many of these problems. If you want to take advantage of Podman’s improvements, then this article is for you.
The Podman approach is simply to directly interact with the image registry, with the container and image storage, and with the Linux kernel through the runC container runtime process (not a daemon).
Now that we’ve discussed some of the motivation it’s time to discuss what that means for the user migrating to Podman. There are a few things to unpack here and we’ll get into each one separately:
- You install Podman instead of Docker. You do not need to start or manage a daemon process like the Docker daemon.
- The commands you are familiar with in Docker work the same for Podman.
- Podman stores its containers and images in a different place than Docker.
- Podman and Docker images are compatible.
- Podman does more than Docker for Kubernetes environments.
- What is Buildah and why might I need it?
Installing Podman
If you are using Docker today, you can remove it when you decide to make the switch. However, you may wish to keep Docker around while you try out Podman. There are some useful tutorials and an awesome demonstration that you may wish to run through first so you can understand the transition more. One example in the demonstration requires Docker in order to show compatibility.
To install Podman on Red Hat Enterprise Linux 7.6 or later, use the following; if you are using Fedora, then replace
yumwithdnf:# yum -y install podmanPodman commands are the same as Docker’s
When building Podman, the goal was to make sure that Docker users could easily adapt. So all the commands you are familiar with also exist with Podman. In fact, the claim is made that if you have existing scripts that run Docker you can create a
dockeralias forpodmanand all your scripts should work (alias docker=podman). Try it. Of course, you should stop Docker first (systemctl stop docker). There is a package you can install calledpodman-dockerthat does this for conversion for you. It drops a script at/usr/bin/dockerthat executes Podman with the same arguments.The commands you are familiar with—
pull,push,build,run,commit,tag, etc.—all exist with Podman. See the manual pages for Podman for more information. One notable difference is that Podman has added some convenience flags to some commands. For example, Podman has added--all(-a) flags forpodman rmandpodman rmi. Many users will find that very helpful.You can also run Podman from your normal non-root user in Podman 1.0 on Fedora. RHEL support is aimed for version 7.7 and 8.1 onwards. Enhancements in userspace security have made this possible. Running Podman as a normal user means that Podman will, by default, store images and containers in the user’s home directory. This is explained in the next section. For more information on how Podman runs as a non-root user, please check out Dan Walsh’s article: How does rootless Podman work?
Podman and container images
When you first type
podman images, you might be surprised that you don’t see any of the Docker images you’ve already pulled down. This is because Podman’s local repository is in/var/lib/containersinstead of/var/lib/docker. This isn’t an arbitrary change; this new storage structure is based on the Open Containers Initiative (OCI) standards.In 2015, Docker, Red Hat, CoreOS, SUSE, Google, and other leaders in the Linux containers industry created the Open Container Initiative in order to provide an independent body to manage the standard specifications for defining container images and the runtime. In order to maintain that independence, the containers/image and containers/storage projects were created on GitHub.
Since you can run
podmanwithout being root, there needs to be a separate place wherepodmancan write images. Podman uses a repository in the user’s home directory:~/.local/share/containers. This avoids making/var/lib/containersworld-writeable or other practices that might lead to potential security problems. This also ensures that every user has separate sets of containers and images and all can use Podman concurrently on the same host without stepping on each other. When users are finished with their work, they can push to a common registry to share their image with others.Docker users coming to Podman find that knowing these locations is useful for debugging and for the important
rm -rf /var/lib/containers, when you just want to start over. However, once you start using Podman, you’ll probably start using the new-alloption topodman rmandpodman rmiinstead.Container images are compatible between Podman and other runtimes
Despite the new locations for the local repositories, the images created by Docker or Podman are compatible with the OCI standard. Podman can push to and pull from popular container registries like Quay.io and Docker hub, as well as private registries. For example, you can pull the latest Fedora image from the Docker hub and run it using Podman. Not specifying a registry means Podman will default to searching through registries listed in the
registries.conffile, in the order in which they are listed. An unmodifiedregistries.conffile means it will look in the Docker hub first.$ podman pull fedora:latest $ podman run -it fedora bashImages pushed to an image registry by Docker can be pulled down and run by Podman. For example, an image (myfedora) I created using Docker and pushed to my Quay.io repository (ipbabble) using Docker can be pulled and run with Podman as follows:
$ podman pull quay.io/ipbabble/myfedora:latest $ podman run -it myfedora bashPodman provides capabilities in its command-line
pushandpullcommands to gracefully move images from/var/lib/dockerto/var/lib/containersand vice versa. For example:$ podman push myfedora docker-daemon:myfedora:latestObviously, leaving out the
docker-daemonabove will default to pushing to the Docker hub. Usingquay.io/myquayid/myfedorawill push the image to the Quay.io registry (wheremyquayidbelow is your personal Quay.io account):$ podman push myfedora quay.io/myquayid/myfedora:latestIf you are ready to remove Docker, you should shut down the daemon and then remove the Docker package using your package manager. But first, if you have images you created with Docker that you wish to keep, you should make sure those images are pushed to a registry so that you can pull them down later. Or you can use Podman to pull each image (for example, fedora) from the host’s Docker repository into Podman’s OCI-based repository. With RHEL you can run the following:
# systemctl stop docker # podman pull docker-daemon:fedora:latest # yum -y remove docker # optionalPodman helps users move to Kubernetes
Podman provides some extra features that help developers and operators in Kubernetes environments. There are extra commands provided by Podman that are not available in Docker. If you are familiar with Docker and are considering using Kubernetes/OpenShift as your container platform, then Podman can help you.
Podman can generate a Kubernetes YAML file based on a running container using
podman generate kube. The commandpodman podcan be used to help debug running Kubernetes pods along with the standard container commands. For more details on how Podman can help you transition to Kubernetes, see the following article by Brent Baude: Podman can now ease the transition to Kubernetes and CRI-O.What is Buildah and why would I use it?
Buildah actually came first. And maybe that’s why some Docker users get a bit confused. Why do these Podman evangelists also talk about Buildah? Does Podman not do builds?
Podman does do builds and for those familiar with Docker, the build process is the same. You can either build using a Dockerfile using
podman buildor you can run a container and make lots of changes and then commit those changes to a new image tag. Buildah can be described as a superset of commands related to creating and managing container images and, therefore, it has much finer-grained control over images. Podman’sbuildcommand contains a subset of the Buildah functionality. It uses the same code as Buildah for building.The most powerful way to use Buildah is to write Bash scripts for creating your images—in a similar way that you would write a Dockerfile.
I like to think of the evolution in the following way. When Kubernetes moved to CRI-O based on the OCI runtime specification, there was no need to run a Docker daemon and, therefore, no need to install Docker on any host in the Kubernetes cluster for running pods and containers. Kubernetes could call CRI-O and it could call runC directly. This, in turn, starts the container processes. However, if we want to use the same Kubernetes cluster to do builds, as in the case of OpenShift clusters, then we needed a new tool to perform builds that would not require the Docker daemon and subsequently require that Docker be installed. Such a tool, based on the
containers/storageandcontainers/imageprojects, would also eliminate the security risk of the open Docker daemon socket during builds, which concerned many users.Buildah (named for fun because of Dan Walsh’s Boston accent when pronouncing “builder”) fit this bill. For more information on Buildah, see buildah.io and specifically see the blogs and tutorials sections.
There are a couple of extra things practitioners need to understand about Buildah:
- It allows for finer control of creating image layers. This is a feature that many container users have been asking for for a long time. Committing many changes to a single layer is desirable.
- Buildah’s
runcommand is not the same as Podman’sruncommand. Because Buildah is for building images, theruncommand is essentially the same as the DockerfileRUNcommand. In fact, I remember the week this was made explicit. I was foolishly complaining that some port or mount that I was trying wasn’t working as I expected it to. Dan (@rhatdan ) weighed in and said that Buildah should not be supporting running containers in that way. No port mapping. No volume mounting. Those flags were removed. Insteadbuildah runis for running specific commands in order to help build a container image, for example,buildah run dnf -y install nginx.- Buildah can build images from scratch, that is, images with nothing in them at all. Nothing. In fact, looking at the container storage created as a result of a
buildah from scratchcommand yields an empty directory. This is useful for creating very lightweight images that contain only the packages needed in order to run your application.A good example use case for a scratch build is to consider the development images versus staging or production images of a Java application. During development, a Java application container image may require the Java compiler and Maven and other tools. But in production, you may only require the Java runtime and your packages. And, by the way, you also do not require a package manager such as DNF/YUM or even Bash. Buildah is a powerful CLI for this use case. See the diagram below. For more information, see Building a Buildah Container Image for Kubernetes and also this Buildah introduction demo.
Getting back to the evolution story…Now that we had solved the Kubernetes runtime issue with CRI-O and runC, and we had solved the build problem with Buildah, there was still one reason why Docker was still needed on a Kubernetes host: debugging. How can we debug container issues on a host if we don’t have the tools to do it? We would need to install Docker, and then we are back where we started with the Docker daemon on the host. Podman solves this problem.
Podman becomes a tool that solves two problems. It allows operators to examine containers and images with commands they are familiar with using. And it also provides developers with the same tools. So Docker users, developers, or operators, can move to Podman, do all the fun tasks that they are familiar with from using Docker, and do much more.
Conclusion
I hope this article has been useful and will help you migrate to using Podman (and Buildah) confidently and successfully.



