NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Modifying/completing a NetBSD wiki page



I have installed recently NetBSD on a OVH bare metal server and used
as first guide this wiki page:

https://wiki.netbsd.org/tutorials/how_to_install_netbsd_on_OVH/

Iain Hibbert, who wrote it, has suggested to complete it and I have
extracted from my notes what seems to me the most relevant additions
(I have written more detailed explanations about "debugging" and
dual booting, but this is too much, IMHO, for a wiki page). Iain
is AFK for now so here is the diff if someone has access to the
Wiki:

---8<---
--- wiki.html.bak	2022-09-01 14:52:19.262927042 +0200
+++ wiki.html	2022-09-01 15:14:23.887289470 +0200
@@ -12,6 +12,16 @@
 
 <p>Note the IP address of your server, available in the Kimsufi control panel.</p>
 
+<p>Before installing NetBSD, it could be a good idea to install first a
+provided Linux image. Because you will have then a Linux <code>dmesg</code>.
+This will give you supplementary informations about the hardware and
+the booting sequence: it is the second line of the <code>dmesg</code>
+and is introduced by <code>Command line:</code>. Specially, if the Linux
+kernel was booted with <code>nomodeset</code>, it is a safe guess that
+NetBSD will not be able to drive the framebuffer and enabling it could
+crash the kernel. We will see below how to first boot NetBSD more safely
+without the framebuffer by writing a <code>/boot.cfg</code> file.</p>
+
 <p>In the Kimsufi control panel disable monitoring as this would alert a
  technician if your machine seems to be having problems. You can 
 re-enable that later.</p>
@@ -31,7 +41,12 @@
 gzip -d NetBSD-9.2-amd64-install.img.gz
 </code></pre>
 
-<p>As I had had a different installation previously, I ensured the disk was clear of partition information:</p>
+<p>As I had had a different installation previously, I ensured the disk was clear of partition information
+(this is for MBR partitioned disks; for a GPT partitioned one, you
+will have to <code>destroy</code> the GPT, using the dedicated
+tool, due to the presence of a GPT backup at the end of the disk
+that will resurrect the partition even if the initial GPT table
+has been erased):</p>
 
 <pre><code>dd if=/dev/zero of=/dev/sda bs=1M count=10
 </code></pre>
@@ -61,8 +76,33 @@
 
 <p>to /etc/rc.conf.</p>
 
+<p>If the server has an IPv6 address too, add</p>
+
+<pre><code>ip6mode="autohost"
+</code></pre>
+
+<p>to /etc/rc.conf.</p>
+
 <p>Create a user, add your SSH keys to authorized_keys and disable PasswordAuthentication and RootLogin in /etc/ssh/sshd_config.</p>
 
+<p>Then configure the boot sequence to first run (on real hardware) with
+the framebuffer disabled. If it works, you can then test with it
+enabled (simply commenting out the <code>userconf</conf> directive we
+set). To do so, create or edit <code>/boot.cfg</code>
+with this (here the framebuffer device <code>i915drmkms</code> is an
+example; look at the real hardware to find the corresponding device to
+disable in your case---read <code>man 4 drm</code>):</p>
+
+<pre><code>
+menu=Boot normally:rndseed /var/db/entropy-file;boot
+menu=Boot single user:rndseed /var/db/entropy-file;boot -s
+menu=Drop to boot prompt:prompt
+default=1
+timeout=5
+clear=1
+userconf=disable i915drmkms*
+</code></pre>
+
 <p>Back in Kimsufi dashboard, click Netboot again and choose Hard Disk. 
 Restart and wait a while and you should be able to SSH in to your 
 dedicated NetBSD server.</p>
--->8---

FWIW,
-- 
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                     http://www.kergis.com/
                    http://kertex.kergis.com/
                       http://www.sbfa.fr/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C


Home | Main Index | Thread Index | Old Index