How to Pass Through a SATA Controller in XCP-ng/Xen

Do you want your Virtual Machine to have direct, raw access to your SATA hard drives? Sometimes, letting the hypervisor handle disk I/O adds unnecessary overhead. By using PCI passthrough, you can give a VM direct control over the onboard SATA controller. This can improve performance and allow the guest OS to manage the hardware directly. Here is a step-by-step guide on how to do it using XCP-ng. As a little piece of addtional information, the machine used here is a Intel Core Ultra 7 265k with a AsRock Z890M Riptide motherboard. This pass through the onboard SATA controller for direct guest VM control. ...

23/10/2026 · 3 min · El Darv

Uncompress cpio.zst initramfs

Who deals with embedded Linux already had the situation where there’s the need to inspect the contents of a system that executes from RAM. Usually, it exists only compressed as a single file at a boot folder, or is thrown around at an EFI partition or /boot formatted using FAS16/32, like on a RaspberryPi. The command for that is simple, with the initramfs on this example being called rootfs.cpio.zst: zstdcat rootfs.cpio.zst | cpio -idmv That’s it. Since it isn’t really a file system, there’s no need to mount it. It will expand all their root tree contents inside the folder that you called the command, ready to be inspected.

19/10/2022 · 1 min · El Darv

Access remote server on Linux with SSHFS using Autofs

One of the most irrational things on Linux, when they don’t have to deal with Windows, it why use SAMBA/CIFS. It’s cumbersome to configure, and don’t feel at home on Linux at all. And there’s NFS, that unfortunately ins’t much better at the simplicity aspect (if you use authentication), and actually, can be even worse if you use some exotic distribution without the required kernel modules. But there’s something that all slightly more advanced users has on his file server that usually is shipped by default: SSH. ...

13/05/2022 · 3 min · El Darv