From 801000330380c971fea4474a62ff840d9b75773f Mon Sep 17 00:00:00 2001 From: Lev Dubinets <3114081+ldub@users.noreply.github.com> Date: Fri, 12 Jul 2019 14:22:57 -0700 Subject: [PATCH] bump vbox disk size to 350gb --- contrib/vbox-resize-disk1.sh | 6 +++--- docs/install.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/contrib/vbox-resize-disk1.sh b/contrib/vbox-resize-disk1.sh index 81d1a0d..b537764 100755 --- a/contrib/vbox-resize-disk1.sh +++ b/contrib/vbox-resize-disk1.sh @@ -24,7 +24,7 @@ while getopts ":d:m:s:f:yh" opt; do echo "Options:" echo " -d NixOps deployment name. Default: bitcoin-node." echo " -m NixOps machine name. Default: bitcoin-node." - echo " -s New disk size in megabytes. Default: 307200 (300gb)." + echo " -s New disk size in megabytes. Default: 358400 (350gb)." echo " -f Path to vbox disk file/VDI. Default: read from nixops export." echo " -y Don't ask for confirmation." exit 0 @@ -42,7 +42,7 @@ done DEPLOYMENT=${DEPLOYMENT:-"bitcoin-node"} MACHINE=${MACHINE:-"bitcoin-node"} -NEW_SIZE=${NEW_SIZE:-307200} +NEW_SIZE=${NEW_SIZE:-358400} DISK_FILE=${DISK_FILE:-$(nixops export -d $DEPLOYMENT | jq -r '..|."virtualbox.disks"?|select(.!=null)' | jq -r .disk1.path)} echo "Resizing virtualbox disk for use with nixops and nix-bitcoin." @@ -67,7 +67,7 @@ nixops start -d $DEPLOYMENT # ( # echo d # [d]elete 50gb partition -# echo n # [n]ew partitoin +# echo n # [n]ew partition # echo p # [p]rimary partition # echo # partition number (Accept default: 1) # echo # first sector (Accept default: 1) diff --git a/docs/install.md b/docs/install.md index ef496a2..39fdd89 100644 --- a/docs/install.md +++ b/docs/install.md @@ -124,7 +124,7 @@ You can also build Nix from source by following the instructions at https://nixo ./contrib/vbox-resize-disk1.sh ``` - NixOps provides a virtualbox disk thats 50gb in size, but we need more than that to house the Bitcoin blockchain. By default, this script will resize the disk to 300gb. Run it with `-h` to see options. Make sure to run this from within your nix-shell. + NixOps provides a virtualbox disk thats 50gb in size, but we need more than that to house the Bitcoin blockchain. By default, this script will resize the disk to 350gb. Run it with `-h` to see options. Make sure to run this from within your nix-shell. 7. Nixops automatically creates an ssh key for use with `nixops ssh`. Access `bitcoin-node` through ssh in nix-shell with @@ -171,7 +171,7 @@ In order to build binaries for your linux (NixOS) virtual machine on a macOS hos 2. Confirm that nix-linuxkit works ``` - nix-build /Users/lev/.cache/nix-linuxkit-builder/example.nix + nix-build ~/.cache/nix-linuxkit-builder/example.nix ``` As the installer says, run a `nix-build` to make sure that you are able to build linux binaries. The `example.nix` is specifically configured to force a x86_64-linux build. Remove the generated `result` folder afterwards. @@ -191,7 +191,7 @@ Tutorial: install and configure NixOS for nix-bitcoin on your own hardware 2. Optional: Disable Simultaneous Multi-Threading (SMT) in the BIOS - Researchers recommend disabling (SMT), also known as Hyper-Threading Technology in the IntelĀ® world to significantly reduce the impact of speculative exacution-based attacks (https://mdsattacks.com/). + Researchers recommend disabling (SMT), also known as Hyper-Threading Technology in the IntelĀ® world to significantly reduce the impact of speculative execution-based attacks (https://mdsattacks.com/). ## 1. NixOS installation