Skip to content

Instantly share code, notes, and snippets.

@cneira
Created March 7, 2019 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cneira/eb03ec7c457dfc926363b6de30aefe50 to your computer and use it in GitHub Desktop.
Save cneira/eb03ec7c457dfc926363b6de30aefe50 to your computer and use it in GitHub Desktop.
wget http://ftp.freebsd.org/pub/FreeBSD/releases/VM-IMAGES/11.2-RELEASE/amd64/Latest/FreeBSD-11.2-RELEASE-amd64.raw.xz
xz -d 11.2-RELEASE/amd64/Latest/FreeBSD-11.2-RELEASE-amd64.raw.xz
zfs create -V 30G rpool/b0
dd if=FreeBSD-11.2-RELEASE-amd64.raw of=/dev/zvol/dsk/rpool/b0 bs=1M
@cneira
Copy link
Author

cneira commented Mar 7, 2019

This works

2019-03-07 00:30:38 (347 KB/s) - ‘FreeBSD-12.0-RELEASE-amd64-mini-memstick.img.xz’ saved [81653720/81653720]

cneira@Trixie:~/images$ xz -d FreeBSD\-12                                                                             1) FreeBSD-12.0-RELEASE-amd64-mini-memstick.img.xz
cneira@Trixie:~/images$ xz -d FreeBSD\-12.0\-RELEASE\-amd64\-mini\-memstick.img.xz
cneira@Trixie:~/images$ pfexec dd if=FreeBSD\-12.0\-RELEASE\-amd64\-mini\-memstick.img   of=/dev/zvol/rdsk/rpool/vm0 bs=1M
367+1 records in
``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment