this is obsolete doc -- see http://doc.nethence.com/ instead

Setting up netbsd on Amazon EC2 

 

http://pbraun.nethence.com/unix/sysutils_bsd/netbsd.html 

http://pbraun.nethence.com/unix/sysutils_bsd/netbsd-amazon-ec2.html 

http://pbraun.nethence.com/unix/sysutils_bsd/netbsd-pxe.html 

http://pbraun.nethence.com/unix/sysutils_bsd/netbsd-update.html 

 

Creating the instance and opening ports 

Create the instance like [explained in the netbsd wiki](https://wiki.netbsd.org/amazon_ec2/netbsd_in_5_min/). And open the ports you need in the EC2 security groups configuration. 

 

Choose a location: https://aws.amazon.com/fr/about-aws/global-infrastructure/ 

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html 

 

System preparation 

Proceed as-like any other NetBSD post-installation process](http://pbraun.nethence.com/unix/sysutils_bsd/netbsd.html), just don't forget to setup your own custom hostname, 

cd /etc/ 

mv myname myname.dist 

echo host > myname 

/etc/rc.d/network restart (yes it comes back) 

and check, 

  hostname 

 

Also add the public and natted aws IPs into the hosts file, 

vi /etc/hosts 

public_ip host host.example.net 

172.31.x.x host host.example.net 

 

References 

amazon ec2: https://wiki.netbsd.org/amazon_ec2/ 

Launching a NetBSD instance in 5 minutes: https://wiki.netbsd.org/amazon_ec2/netbsd_in_5_min/