From Linux to NetBSD, with SSH Only
CloudBSD.xyz offers a method to swap a remote Linux server's OS using SSH with takeover.sh script. Caution is advised, requiring components like busybox, fakeinit.c, and NetBSD ISO. Leveraging initrd and pivot_root, users can install NetBSD while maintaining remote access.
Read original articleCloudBSD.xyz provides a method to swap the operating system of a remote Linux server using SSH access. The process involves using a script called takeover.sh, which allows for the installation of NetBSD over an existing Debian Linux system. The article emphasizes the need for caution and understanding of the implications before attempting such actions on owned or authorized infrastructure. The procedure involves preparing components like a statically built busybox, compiling fakeinit.c, and having the NetBSD ISO ready for installation. The method leverages concepts like initrd and pivot_root to gain control of the main volume and install the new operating system while retaining remote access. The process requires public access to SSH ports and a sufficient amount of RAM to accommodate the new system's installation files. By following the outlined steps and utilizing the provided tools, users can effectively switch the operating system of their choice on remote servers, expanding the possibilities for hobbyists and enthusiasts interested in exploring different operating systems.
Related
FreeBSD Bhyve Companion Tools
The author details transitioning from VirtualBox to FreeBSD Bhyve, praising Bhyve's benefits in a FreeBSD setting. Tools like VNC connection and pause/resume scripts optimize Bhyve operations, simplifying VM management.
The FreeBSD-native-ish home lab and network
The author details a complex home lab setup with a FreeBSD server on a laptop, utilizing Jails for services like WordPress and emphasizing security measures and network configurations for efficiency and functionality.
Netboot (PXE) Armbian on an Orange Pi Zero 3 from SPI with NFS Root Filesystem
Guide on netbooting Orange Pi Zero 3 with Armbian for Kubernetes experimentation on SBC cluster. Setup involves SPI, u-boot, TFTP, NFS servers, static IP, PoE switch, u-boot updates, TFTP config, and console access.
From Cloud Chaos to FreeBSD Efficiency
A client shifted from expensive Kubernetes setups on AWS and GCP to cost-effective FreeBSD jails and VMs, improving control, cost savings, and performance. Real-world tests favored FreeBSD over cloud solutions, emphasizing efficient resource management.
I Like NetBSD, or Why Portability Matters
NetBSD, founded in 1993, prioritizes portability and simplicity following Unix philosophy. It supports various hardware platforms, emphasizes code quality, and fosters a community valuing system longevity and older tech. NetBSD promotes sustainability and efficiency in software design, offering a cozy, minimal setup for exploration and learning.
- Many commenters commend the author for the clarity and depth of the article.
- Several users share their own experiences with similar techniques for OS installation or conversion.
- Some highlight the availability of providers that support BSD installations, suggesting alternatives to the method described.
- There are mentions of historical methods and projects related to OS installations, indicating a shared interest in creative solutions.
- Concerns about the risks involved in such operations are noted, with some recalling past experiences that were challenging.
After reading all the comments, I believe I must precise, that I am aware of most of the mentioned alternative techniques.
Most of these only work as long as remote screen/keyboard control access is possible throughout a cloud panel (VNC).
My goal with this article was to avoid any third party control and making it to works even on a remote linux desktop pc used as a server.
Thanks for all the feedbacks, I appreciate it.
I've played similar tricks mounting a ramdisk, copying things in to it, starting daemons from it, then force-remounting rootfs read-only, then doing things you can't normally do. This takes things quite a bit further, and I like it.
I've never quite understood the details of Linux boot methods. This article is wonderful because it doesn't just say what to do, but explains what's going on, and in detail. Can't wait to try!
Some providers off the top of my head:
prgmr.com (now tornado vps apparently) - long-standing provider - they used to have netbsd dom0’s but now it’s all Linux based it looks like so appears you have to netinstall netbsd in your vm now)
buyvm.net - reasonable pricing and have bsd available to install (can’t remember if template or iso ready to mount/install)
https://www.netcup.eu/vserver/ - excellent value / been around forever (they offer custom iso)
I will add more here as I think of them..
There's lots of ways if you have access to common cloud primatives (replacement root volume, etc) and have some creativity.
I did appreciate this post though because it's for a way I haven't used before.
OpenBSD has an installation ramdisk. Just boot that.
See https://raby.sh/installing-openbsd-on-ovhs-vps-2016-kvm-mach...
I've also seen "dd if=path/to/install/ramdisk /dev/sd0" and reboot; depends on being classic BIOS not uefi. Can't find the link tho.
Related
FreeBSD Bhyve Companion Tools
The author details transitioning from VirtualBox to FreeBSD Bhyve, praising Bhyve's benefits in a FreeBSD setting. Tools like VNC connection and pause/resume scripts optimize Bhyve operations, simplifying VM management.
The FreeBSD-native-ish home lab and network
The author details a complex home lab setup with a FreeBSD server on a laptop, utilizing Jails for services like WordPress and emphasizing security measures and network configurations for efficiency and functionality.
Netboot (PXE) Armbian on an Orange Pi Zero 3 from SPI with NFS Root Filesystem
Guide on netbooting Orange Pi Zero 3 with Armbian for Kubernetes experimentation on SBC cluster. Setup involves SPI, u-boot, TFTP, NFS servers, static IP, PoE switch, u-boot updates, TFTP config, and console access.
From Cloud Chaos to FreeBSD Efficiency
A client shifted from expensive Kubernetes setups on AWS and GCP to cost-effective FreeBSD jails and VMs, improving control, cost savings, and performance. Real-world tests favored FreeBSD over cloud solutions, emphasizing efficient resource management.
I Like NetBSD, or Why Portability Matters
NetBSD, founded in 1993, prioritizes portability and simplicity following Unix philosophy. It supports various hardware platforms, emphasizes code quality, and fosters a community valuing system longevity and older tech. NetBSD promotes sustainability and efficiency in software design, offering a cozy, minimal setup for exploration and learning.