<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.eddyn.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Riiken</id>
	<title>eddynetweb&#039;s cesspit - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.eddyn.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Riiken"/>
	<link rel="alternate" type="text/html" href="https://wiki.eddyn.net/Special:Contributions/Riiken"/>
	<updated>2026-05-21T21:03:46Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.eddyn.net/index.php?title=CloudAtCost_Custom_OS&amp;diff=103</id>
		<title>CloudAtCost Custom OS</title>
		<link rel="alternate" type="text/html" href="https://wiki.eddyn.net/index.php?title=CloudAtCost_Custom_OS&amp;diff=103"/>
		<updated>2021-01-20T19:15:04Z</updated>

		<summary type="html">&lt;p&gt;Riiken: /* Steps */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This tutorial attempts to remake the original one present on the original CloudAtCost wiki. The original wiki had become rather overrun with spam, so the owner shut it down. &lt;br /&gt;
&lt;br /&gt;
== Supported OS ==&lt;br /&gt;
&lt;br /&gt;
The following OS&#039;s are supported, according to [https://netboot.xyz netboot.xyz]: &lt;br /&gt;
&lt;br /&gt;
* Antergos&lt;br /&gt;
* Arch Linux&lt;br /&gt;
* Architect Linux&lt;br /&gt;
* CentOS&lt;br /&gt;
* CoreOS&lt;br /&gt;
* Debian&lt;br /&gt;
* Fedora&lt;br /&gt;
* FreeBSD&lt;br /&gt;
* Gentoo&lt;br /&gt;
* Mageia&lt;br /&gt;
* Manjaro Linux&lt;br /&gt;
* Microsoft Windows&lt;br /&gt;
* MirOS&lt;br /&gt;
* OpenBSD&lt;br /&gt;
* OpenSUSE&lt;br /&gt;
* RancherOS&lt;br /&gt;
* Scientific&lt;br /&gt;
* Tiny Core Linux&lt;br /&gt;
* Ubuntu&lt;br /&gt;
* Many more (check the site)! &lt;br /&gt;
&lt;br /&gt;
== Script ==&lt;br /&gt;
&lt;br /&gt;
Simply create and execute this script to boot directly into the generic iPXE kernel without hassle.&lt;br /&gt;
&lt;br /&gt;
Special thanks to [https://www.reddit.com/user/rschulze /u/rschulze] for the script. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/usr/bin/env bash&lt;br /&gt;
&lt;br /&gt;
cdr2mask ()&lt;br /&gt;
{&lt;br /&gt;
   # Number of args to shift, 255..255, first non-255 byte, zeroes&lt;br /&gt;
   set -- $(( 5 - ($1 / 8) )) 255 255 255 255 $(( (255 &amp;lt;&amp;lt; (8 - ($1 % 8))) &amp;amp; 255 )) 0 0 0&lt;br /&gt;
   [[ $1 -gt 1 ]] &amp;amp;&amp;amp; shift ${1} || shift&lt;br /&gt;
   echo &amp;quot;${1-0}.${2-0}.${3-0}.${4-0}&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
cd /boot || exit 1&lt;br /&gt;
wget --continue --output-document=/boot/generic-ipxe.lkrn https://boot.netboot.xyz/ipxe/generic-ipxe.lkrn&lt;br /&gt;
&lt;br /&gt;
_Dev=&amp;quot;$(ip route list | awk &#039;/^default/ {print $5}&#039;)&amp;quot;&lt;br /&gt;
_Gateway=&amp;quot;$(ip route list | awk &#039;/^default/ {print $3}&#039;)&amp;quot;&lt;br /&gt;
_IP=&amp;quot;$(ip -o -4 addr show &amp;quot;${_Dev}&amp;quot; | awk &#039;{print $4}&#039;)&amp;quot;&lt;br /&gt;
_Netmask=&amp;quot;$(cdr2mask &amp;quot;${_IP#*/}&amp;quot;)&amp;quot; &lt;br /&gt;
_IP=${_IP%/*}&lt;br /&gt;
&lt;br /&gt;
cat &amp;lt;&amp;lt;_EOF_ &amp;gt; /boot/netboot.xyz-initrd&lt;br /&gt;
#!ipxe&lt;br /&gt;
#/boot/netboot.xyz-initrd&lt;br /&gt;
imgfree&lt;br /&gt;
set net0/ip ${_IP%/*}&lt;br /&gt;
set net0/netmask ${_Netmask}&lt;br /&gt;
set net0/gateway ${_Gateway}&lt;br /&gt;
set dns 208.67.222.222&lt;br /&gt;
ifopen net0&lt;br /&gt;
chain --autofree https://boot.netboot.xyz&lt;br /&gt;
_EOF_&lt;br /&gt;
&lt;br /&gt;
cat &amp;lt;&amp;lt;_EOF_ &amp;gt; /etc/grub.d/09_custom&lt;br /&gt;
echo &amp;quot;&lt;br /&gt;
menuentry &#039;netboot.xyz&#039; {&lt;br /&gt;
    set root=&#039;hd0,msdos1&#039;&lt;br /&gt;
    linux16 /generic-ipxe.lkrn&lt;br /&gt;
    initrd16 /netboot.xyz-initrd&lt;br /&gt;
}&lt;br /&gt;
&amp;quot;&lt;br /&gt;
_EOF_&lt;br /&gt;
chmod +x /etc/grub.d/09_custom&lt;br /&gt;
&lt;br /&gt;
update-grub2 || { grub2-mkconfig -o /boot/grub2/grub.cfg; grub2-set-default 0; }&lt;br /&gt;
&lt;br /&gt;
reboot&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
I would advise doing this on a fresh CloudAtCost server, preferably using the Debian 8 Jessie image. Make sure your console works, as you&#039;ll need it throughout the entire installation. &lt;br /&gt;
&lt;br /&gt;
It appears that the console works much more consistently on DC-2 as opposed to DC-3, so I&#039;d give it a shot there for the most successful installation (plus, DC-2 is probably as stable you&#039;re gonna get at the moment).&lt;br /&gt;
&lt;br /&gt;
== Steps ==&lt;br /&gt;
&lt;br /&gt;
1. Login into your fresh server, preferably using the console (SSH will work too). &lt;br /&gt;
&lt;br /&gt;
2. Run the following command: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd /boot &amp;amp;&amp;amp; wget -c &amp;quot;https://boot.netboot.xyz/ipxe/netboot.xyz.lkrn&amp;quot; &lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: This is where you&#039;ll need the console. If you&#039;re not already on it, do so now. &lt;br /&gt;
&lt;br /&gt;
3. Reboot your server using Ctrl+Alt+Del (or clicking the blue square in the corner of the console), or using the &amp;quot;reboot&amp;quot; command. &lt;br /&gt;
&lt;br /&gt;
4. Right after the VMWare splash screen, the GRUB boot menu will appear. &#039;&#039;Quickly&#039;&#039; press the letter &amp;quot;&#039;&#039;&#039;C&#039;&#039;&#039;&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: You should now see a &amp;quot;&#039;&#039;&#039;grub&amp;gt;&#039;&#039;&#039;&amp;quot; prompt. If not, you&#039;ll need to reboot and try step 4 again. &lt;br /&gt;
&lt;br /&gt;
5. In the grub prompt, type the following command: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;linux16 /boot/netboot.xyz.lkrn&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: Be prepared to &#039;&#039;quickly&#039;&#039; press &amp;quot;&#039;&#039;&#039;M&#039;&#039;&#039;&amp;quot; after this next command: &lt;br /&gt;
&lt;br /&gt;
6. Then boot into it using the following command: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;boot&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
7. &#039;&#039;Quickly&#039;&#039; press &amp;quot;&#039;&#039;&#039;M&#039;&#039;&#039;&amp;quot; to bring up the menu. &lt;br /&gt;
&lt;br /&gt;
8. Select &amp;quot;Manual network configuration&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
9. Now you&#039;ll need to provide the following information in order for the script to download the image. This can all be found on the information icon in the CloudAtCost panel:   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;IP address (found in panel)&lt;br /&gt;
Subnet mask (if you have issues relating to networking, try leaving this blank)&lt;br /&gt;
Default gateway (found in panel)&lt;br /&gt;
Set DNS to 8.8.8.8&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: To avoid HTTP/S timeouts when fetching iPXE bootfiles, avoid inputting netmask while performing the previous steps. If iPXE times out HTTP/s connections, reboot and perform the steps above starting from the grub prompt. This is a handshake bug between CloudAtCost VMs and our iPXE host server that we are currently working on addressing. &lt;br /&gt;
&lt;br /&gt;
10. If everything is successful, you should now get a list of OS&#039;s which you can choose to your hearts content. Pick the OS you&#039;d like and then follow the instructions. The script will lead you to installing the operating system of your choice. &lt;br /&gt;
&lt;br /&gt;
https://netboot.xyz/images/netboot.xyz.gif&lt;br /&gt;
&lt;br /&gt;
That&#039;s it!&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
If you have any issues, check the ##CloudAtCost channel on Freenode or /r/CloudAtCost on reddit. Plenty of people there available to help.&lt;/div&gt;</summary>
		<author><name>Riiken</name></author>
	</entry>
</feed>