Sunday, 7 June 2026

CACHYOS REMOTE SYSTEM ROLLBACK VIA SSH & BTRFS-ASSISTANT CLI (proposed by Google AI Assistant)

 You must have access to the KVM host (virsh) to handle the initial reboot phase.

--------------------------------------------------------------------------------
PHASE 1: THE REBOOT & SNAPSHOT BOOT (PERFORMED ON KVM HOST VIA SSH)
--------------------------------------------------------------------------------
1. Connect to your KVM Host via SSH.
2. Force power off the crashed VM instance:
   sudo virsh destroy VMCachyOS0607

3. Start the VM directly into the interactive serial console:
   sudo virsh start VMCachyOS0607 --console

4. IMMEDIATELY tap the arrow keys in your terminal window to stop the GRUB timer.
5. Select "CachyOS Snapshots" -> Select your target working snapshot (e.g., 13).
6. Let the system boot completely into this temporary read-only snapshot.
7. Once the boot process finishes, press Enter to see the login prompt.
8. Disconnect from the virsh console by pressing: Ctrl + ]

--------------------------------------------------------------------------------
PHASE 2: EXECUTE THE PERMANENT ROLLBACK (PERFORMED VIA SSH TO THE VM)
--------------------------------------------------------------------------------
1. Connect directly to the VM instance via your normal SSH client.
2. Run the Btrfs Assistant scanner to list available snapshots and indexes:
   sudo btrfs-assistant --list

3. Locate your target snapshot ID in the table and note its Index number.
4. Execute the permanent restoration command (Replace <INDEX> with your number):
   sudo btrfs-assistant --restore <INDEX>

5. Commit the changes and return the system to normal read-write operation:
   sudo reboot
====================================================
VERIFICATION CHECKS (RUN INSIDE VM AFTER THE FINAL REBOOT)
====================================================
To verify core recovery (libc.so):
ls -la /usr/lib/libc.so*

To verify package manager state (/var/lib):
sudo pacman -Sy
===================================================

No comments:

Post a Comment

Setup non-flat btrfs achitecture on Arch Linux via CachyOS approach

The first phase follows exactly guidelines proposed in  Bring CachyOS KDE Plasma 6.7.2 along with kernel 7.1.3 to Arch Linux   Second phase ...