Merge #126: Set default size of the virtualbox machine disk
6e26453689
Set default size of the virtualbox machine disk (Erik Arvstedt) Pull request description: This eliminates the manual resize step in vbox deployment ACKs for top commit: jonasnick: ACK6e26453689
Tree-SHA512: 31521de732ad891af94c007bf6a9947131b476c904c84c8cad35786e95b08a26b29eacc58041877f4ef80ebebd1bf1c2e863694022c72e56130c02d7417332b4
This commit is contained in:
commit
6c6716e2b3
|
@ -118,15 +118,7 @@ You can also build Nix from source by following the instructions at https://nixo
|
||||||
|
|
||||||
This will now create a nix-bitcoin node on the target machine.
|
This will now create a nix-bitcoin node on the target machine.
|
||||||
|
|
||||||
6. Resize the virtualbox disk
|
6. Nixops automatically creates an ssh key for use with `nixops ssh`. Access `bitcoin-node` through ssh in nix-shell with
|
||||||
|
|
||||||
```
|
|
||||||
./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 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
|
|
||||||
|
|
||||||
```
|
```
|
||||||
nixops ssh operator@bitcoin-node
|
nixops ssh operator@bitcoin-node
|
||||||
|
@ -134,6 +126,10 @@ You can also build Nix from source by following the instructions at https://nixo
|
||||||
|
|
||||||
See [usage.md](usage.md) for usage instructions, such as how to update.
|
See [usage.md](usage.md) for usage instructions, such as how to update.
|
||||||
|
|
||||||
|
To resize the VM disk image, you can use this helper script from within nix-shell:
|
||||||
|
```
|
||||||
|
./contrib/vbox-resize-disk1.sh --help
|
||||||
|
```
|
||||||
----
|
----
|
||||||
|
|
||||||
Tutorial: install and configure NixOS for nix-bitcoin on VirtualBox (macOS host)
|
Tutorial: install and configure NixOS for nix-bitcoin on VirtualBox (macOS host)
|
||||||
|
|
|
@ -3,8 +3,11 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
deployment.targetEnv = "virtualbox";
|
deployment.targetEnv = "virtualbox";
|
||||||
deployment.virtualbox.memorySize = 4096; # megabytes
|
deployment.virtualbox = {
|
||||||
deployment.virtualbox.vcpu = 4; # number of cpus
|
memorySize = 4096; # megabytes
|
||||||
deployment.virtualbox.headless = true;
|
vcpu = 4; # number of cpus
|
||||||
|
disks.disk1.size = 358400; # 350 GiB
|
||||||
|
headless = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user