NixOS:nixos-rebuild build-vm: Difference between revisions
m →VM: fix style |
→qemu: clarify this example refers to the vm configuration, not the host configuration |
||
| Line 72: | Line 72: | ||
== qemu == | == qemu == | ||
To enable connecting from your host to your virtual machine, you'll need to forcefully override the default networking settings to apply those from https://wiki.qemu.org/Documentation/Networking#How_to_get_SSH_access_to_a_guest instead. For example, to expose the VM's port 80 on the (unprivileged) port 8009 of the 'localhost' of the host: | To enable connecting from your host to your virtual machine, you'll need to forcefully override the default networking settings to apply those from https://wiki.qemu.org/Documentation/Networking#How_to_get_SSH_access_to_a_guest instead. For example, to expose the VM's port 80 on the (unprivileged) port 8009 of the 'localhost' of the host, add the following to the VM (not the host) configuration: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||