reduce minimum RAM requirements
This commit is contained in:
parent
e855c9b4b9
commit
340303d82b
2 changed files with 4 additions and 4 deletions
|
@ -14,7 +14,7 @@ Kexec is a mechanism in Linux to load a new kernel from a running Linux to
|
||||||
replace the current kernel. This is useful for booting the Nixos installer from
|
replace the current kernel. This is useful for booting the Nixos installer from
|
||||||
existing Linux distributions, such as server provider that do not offer a NixOS
|
existing Linux distributions, such as server provider that do not offer a NixOS
|
||||||
option. After running kexec, the NixOS installer exists only in memory. At the
|
option. After running kexec, the NixOS installer exists only in memory. At the
|
||||||
time of writing, this requires at least 2.5GB of physical RAM (swap does not
|
time of writing, this requires at least 1.5GB of physical RAM (swap does not
|
||||||
count) in the system. If not enough RAM is available, the initrd cannot be
|
count) in the system. If not enough RAM is available, the initrd cannot be
|
||||||
loaded. Because the NixOS runs only in RAM, users can reformat all the system's
|
loaded. Because the NixOS runs only in RAM, users can reformat all the system's
|
||||||
discs to prepare for a new NixOS installation.
|
discs to prepare for a new NixOS installation.
|
||||||
|
@ -22,7 +22,7 @@ discs to prepare for a new NixOS installation.
|
||||||
It can be booted as follows by running these commands as root:
|
It can be booted as follows by running these commands as root:
|
||||||
|
|
||||||
```
|
```
|
||||||
curl -L https://github.com/nix-community/nixos-images/releases/download/nixos-unstable/nixos-kexec-installer-x86_64-linux.tar.gz | tar -xzf- -C /root
|
curl -L https://github.com/nix-community/nixos-images/releases/download/nixos-unstable/nixos-kexec-installer-noninteractive-x86_64-linux.tar.gz | tar -xzf- -C /root
|
||||||
/root/kexec/run
|
/root/kexec/run
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -37,5 +37,5 @@ The kexec installer comes with the following features:
|
||||||
|
|
||||||
The actual kexec happens with a slight delay (6s). This allows for easier
|
The actual kexec happens with a slight delay (6s). This allows for easier
|
||||||
integration into automated nixos installation scripts, since you can cleanly
|
integration into automated nixos installation scripts, since you can cleanly
|
||||||
disconnect from the running machine before the kexec takes place. The tarball
|
disconnect from the running machine before the kexec takes place. The tarball
|
||||||
is also designed to be run from NixOS, which can be useful for new installations
|
is also designed to be run from NixOS, which can be useful for new installations
|
||||||
|
|
|
@ -21,7 +21,7 @@ in makeTest' {
|
||||||
(modulesPath + "/profiles/minimal.nix")
|
(modulesPath + "/profiles/minimal.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
virtualisation.memorySize = 2048;
|
virtualisation.memorySize = 1024 + 512;
|
||||||
virtualisation.diskSize = 4 * 1024;
|
virtualisation.diskSize = 4 * 1024;
|
||||||
virtualisation.useBootLoader = true;
|
virtualisation.useBootLoader = true;
|
||||||
virtualisation.useEFIBoot = true;
|
virtualisation.useEFIBoot = true;
|
||||||
|
|
Loading…
Reference in a new issue