nixos/nixpkgs: virtualbox docs update (#54247)
This commit is contained in:
parent
f1d7cc678b
commit
586bbd20e8
@ -77,18 +77,22 @@
|
|||||||
Shared folders can be given a name and a path in the host system in the
|
Shared folders can be given a name and a path in the host system in the
|
||||||
VirtualBox settings (Machine / Settings / Shared Folders, then click on the
|
VirtualBox settings (Machine / Settings / Shared Folders, then click on the
|
||||||
"Add" icon). Add the following to the
|
"Add" icon). Add the following to the
|
||||||
<literal>/etc/nixos/configuration.nix</literal> to auto-mount them:
|
<literal>/etc/nixos/configuration.nix</literal> to auto-mount them. If you
|
||||||
|
do not add <literal>"nofail"</literal>, the system will no boot properly.
|
||||||
|
The same goes for disabling <literal>rngd</literal> which is normally used
|
||||||
|
to get randomness but this does not work in virtual machines.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
{ config, pkgs, ...} :
|
{ config, pkgs, ...} :
|
||||||
{
|
{
|
||||||
|
security.rngd.enable = false; // otherwise vm will not boot
|
||||||
...
|
...
|
||||||
|
|
||||||
fileSystems."/virtualboxshare" = {
|
fileSystems."/virtualboxshare" = {
|
||||||
fsType = "vboxsf";
|
fsType = "vboxsf";
|
||||||
device = "nameofthesharedfolder";
|
device = "nameofthesharedfolder";
|
||||||
options = [ "rw" ];
|
options = [ "rw" "nofail" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
Loading…
Reference in New Issue
Block a user