<h3 id="install-openbsd-from-linux-using-grub">Install OpenBSD from Linux using Grub</h3>
<h3 id="why-openbsd">Why OpenBSD</h3>
<p>Tune in for another episode.</p>
<h3 id="why-install-from-linux">Why install from linux</h3>
<ul>
<li>Most VPS providers have images for linux, but not OpenBSD</li>
<li>Easier than trying to upload custom image or iso.</li>
</ul>
<h3 id="grub2">Grub2</h3>
<ul>
<li>Start with a distro that uses grub2. I use Centos7</li>
<li>grub2 can load OpenBSD kernels.</li>
<li>The openbsd installer is a OpenBSD kernel.</li>
</ul>
<h3 id="procedure">Procedure</h3>
<ol type="1">
<li>Make sure you have console access to the linux VM</li>
<li>Record the Network info for the running linux VM. If not using DHCP, you will need to know the IP, netmask, default route (gateway), and a DNS server.</li>
<li><p>Download the OpenBSD installation ram disk to <code>/boot</code></p>
<pre><code>cd /boot
wget https://ftp5.usa.openbsd.org/pub/OpenBSD/6.0/amd64/bsd.rd</code></pre></li>
<li>Reboot</li>
<li>Enter the grub command prompt by pressing <code>c</code> at the grub menu</li>
<li>The grub2 prompt has tab completion which can be helpful.</li>
<li>Type <code>ls</code> to see the available disks</li>
<li><p>Load the OpenBSD installation ram disk and boot</p>
<pre><code>grub&gt; set root=(hd0,msdos1)
grub&gt; kopenbsd /bsd.rd
grub&gt; boot</code></pre></li>
</ol>
<h3 id="the-installation">The Installation</h3>
<ul>
<li>The Installer will ask you several questions</li>
<li>The default is almost always what you want. If unsure, just press enter.</li>
<li>Look at the <a href="https://www.openbsd.org/faq/faq4.html">FAQ</a> if you get stuck</li>
<li>Enter the network settings of the linux VPS</li>
<li>When asked &quot;Location of sets&quot;, use HTTP</li>
</ul>
