deutrino's picture

Hi folks, long story short I have clients who prefer some "mom & pop" cloud providers who have to manually add a .iso image to their control panel before one can boot a VPS from a custom image with them. This provider offers all manner of images and are fine with Turnkey so I'm not trying to bend the rules, just cut down on waiting for a support ticket.

Curious if anyone has a surefire method to boot an arbitrary .iso from e.g. a stock Debian 9 or 10 system, or something like System Rescue CD. I tried a number of things with System Rescue CD, but never got anything to work. Seems like maybe the best method might be to use grub's isoboot capability, I'm just wondering if anyone knows of any guides or has any tips before I try to possibly reinvent the wheel.

Forum: 
deutrino's picture

um. apparently the forum ate my entire original post.

anyway, wondering if anyone has any surefire ways to boot an arbitrary .iso from either a generic Debian install, or something like System Rescue CD. I am working with a client's preferred host who is fine with us using Turnkey, but have to manually add .isos to their control panel, and I'm looking to cut down on waiting for a support ticket each time, and just be able to boot the Turnkey .isos (or .ova / .vmdk if somehow applicable, I haven't checked exactly what type of virtualization is in use yet) from within a boot .iso they already offer.

Jeremy Davis's picture

Re your post getting eaten, I was under the impression that it only happens (sometimes) with new users who are filtered by the spam filtering mechanisms (i.e. that I haven't modified their user account), but it seems I was wrong!? I wonder what happens when that occurs? I haven't hit it for a long time, but it appears to happen more with first post in a new thread (and that's something I rarely do).

Anyway, TBH, I'm not really sure. I know that grub can boot from an ISO, but it needs to know the name of the file, plus it needs to know where to find the file. AFAIK, that is often used on "multiboot" USB sticks with various ISO files copied onto the USB.

Whether that functionality could be somehow leveraged to support your desired boot scenario, I'm not sure. Possibly?

Also, I'm not sure if it's of any value, but Syslinux (which provides ISOlinux; the bootloader our ISO uses) is capable of chainloading ISOs too AFAIK. Although again, I'm not sure if that's of value...?

Alvaro Gilabert's picture

if they are using some sort of VPS, have you tried to boot using rescue mode? taking their wordpress iso as an example, you can write directly to disk

curl https://www.turnkeylinux.org/download?file=turnkey-wordpress-16.0-buster-amd64.iso | dd of=/dev/sda

depending on their configuration, you can boot into rescue mode using /dev/sdb, download the iso file and then boot from /dev/sda

Jeremy Davis's picture

Thanks for sharing Alvaro. I've never considered an approach like that, but could be a winner?! Certainly worth a try.

Alvaro Gilabert's picture

20 years after being mentioned on bugtraq, 15 years after being thanked by Ponce de Leon, I am now being thanked by Jeremy Davis himself.

"See, honey? I'm an Internet super-star"

;)

 

Add new comment