Flashrd

From Noisebridge
(Difference between revisions)
Jump to: navigation, search
Line 34: Line 34:
  
 
To boot the older flash images, "boot -s" and then "/stand/rc".  If you need to use the network, remember to do "pfctl -d".
 
To boot the older flash images, "boot -s" and then "/stand/rc".  If you need to use the network, remember to do "pfctl -d".
 +
 +
Once you have a serial console on the new image, copy /etc/hostname.*, /etc/ssh/*key*, and /root/.ssh/authorized_keys to the new image from the old image.  Upon reboot you should be able to log in.
 +
 +
Files to copy from /etc:
 +
<pre>
 +
hosts
 +
dhcpd.conf
 +
resolv.conf
 +
myname
 +
rc.conf.local
 +
pf.conf
 +
localtime x
 +
snmpd.conf
 +
rtadvd.conf
 +
hostname.*
 +
master.passwd
 +
ntpd.conf x
 +
passwd
 +
ttys x
 +
sysctl.conf x
 +
mygate x
 +
dnsmasq.conf
 +
</pre>
 +
 +
Packages to install:
 +
<pre>
 +
export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.7/packages/i386/
 +
pkg_add -v dnsmasq lsof curl bash iperf isc-dhcp-server net-snmp ngrep bwm-ng
 +
</pre>

Revision as of 21:14, 15 August 2010

Installation notes

Download the flashrd binary images.

Backup the existing flash cards using dd.

dd the new flashrd images to the existing flash cards.

Mount the flash cards or boot the flash card using qemu, modify /etc/ttys as follows:

19c19
< tty00 "/usr/libexec/getty std.9600" unknown off
---
> tty00 "/usr/libexec/getty std.9600" vt220 on secure

Add this to /flash/etc/boot.conf: (/flash is on /dev/wd0a)

set timeout 5
set tty com0

Plug the flash cards into the existing devices, boot as follows:

boot> set tty com0
switching console to com0
                         >> OpenBSD/i386 BOOT 3.02
boot> boot
booting hd0a:/bsd: 10707316+1055248 [52+360656+344597]=0xbe4014
entry point at 0x200120

To boot the older flash images, "boot -s" and then "/stand/rc". If you need to use the network, remember to do "pfctl -d".

Once you have a serial console on the new image, copy /etc/hostname.*, /etc/ssh/*key*, and /root/.ssh/authorized_keys to the new image from the old image. Upon reboot you should be able to log in.

Files to copy from /etc:

hosts
dhcpd.conf
resolv.conf
myname
rc.conf.local
pf.conf
localtime x
snmpd.conf
rtadvd.conf
hostname.*
master.passwd
ntpd.conf x
passwd
ttys x
sysctl.conf x
mygate x
dnsmasq.conf

Packages to install:

export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.7/packages/i386/
pkg_add -v dnsmasq lsof curl bash iperf isc-dhcp-server net-snmp ngrep bwm-ng
Personal tools