diff --git a/content/2015/07/installing-and-running-netbsd-and.html b/content/2015/07/installing-and-running-netbsd-and.html index e1bfcc0..270ac65 100644 --- a/content/2015/07/installing-and-running-netbsd-and.html +++ b/content/2015/07/installing-and-running-netbsd-and.html @@ -29,24 +29,24 @@ Hope this helps others! ## NetBSD 1. Install `grub2-bhyve`: - ``` +
pkg install grub2-bhyve
- ```
+
2. Create a file called `instdev.map` containing:
- ```
+
(cd0) NetBSD-6.1.5-amd64.iso
(hd1) netbsd.img
- ```
+
3. Create the file `netbsd.img` with the correct size:
- ```
+
truncate -s 3g netbsd.img
- ```
+
4. Run the following commands (or put into a script file) under `sh`:
- ```
+
MEM=512M
VM=nbsd615
bhyvectl --destroy --vm=$VM
- grub-bhyve -r cd0 -M $MEM -m instdev.map $VM <
5. This will run the installer, complete the installation.
6. Create a file called `dev.map` containing:
- ```
+
(hd1) netbsd.img
- ```
+
7. Now in the future, to run NetBSD from the image, run the following commands:
- ```
+
MEM=512M
VM=nbsd615
bhyvectl --destroy --vm=$VM
- grub-bhyve -r cd0 -M $MEM -m dev.map $VM <
8. Profit!
## OpenBSD
1. Install `grub2-bhyve`:
- ```
+
pkg install grub2-bhyve
- ```
+
2. Create a file called `instdev.map` containing:
- ```
+
(cd0) install57.iso
(hd1) openbsd.img
- ```
+
3. Create the file `openbsd.img` with the correct size:
- ```
+
truncate -s 3g openbsd.img
- ```
+
4. Run the following commands (or put into a script file) under `sh`:
- ```
+
MEM=512M
VM=obsd57
bhyvectl --destroy --vm=$VM
- grub-bhyve -r cd0 -M $MEM -m instdev.map $VM <
5. This will run the installer, complete the installation.
6. Create a file called `dev.map` containing:
- ```
+
(hd1) netbsd.img
- ```
+
7. Now in the future, to run OpenBSD from the image, run the following commands:
- ```
+
MEM=512M
VM=obsd57
bhyvectl --destroy --vm=$VM
- grub-bhyve -r hd1 -M $MEM -m dev.map $VM <
8. Profit!