nixpkgs/nixos/modules/virtualisation
Maximilian Bosch 60e731d1ce
nixos/qemu-vm: fix running VM with QEMU_NET_OPTS
I realized quite recently that running a test VM - as documented in the
manual - like

    QEMU_NET_OPTS='hostfwd=tcp::8080-:80'  ./result/bin/nixos-run-vms

doesn't work anymore on `master`. After bisecting I realized that the
introduction of a forward-port option[1] is the problem since it adds a
trailing comma even if no forwarding options are specified via
`virtualisation.forwardPorts`. In that case, the networking options
would look like `-netdev user,id=user.0,,hostfwd=tcp::8080-:80' which
confused QEMU and thus the VM refused to start.

Now, the trailing comma is only added if additional port forwards are
specified declaratively.

[1] b8bfc81d5b
2021-10-06 22:40:30 +02:00
..
amazon-image.nix NixOS/amazonImageZfs: init 2021-08-25 10:42:35 -04:00
amazon-init.nix nixos/amazon-init: add user-data shell script support 2021-04-18 10:19:06 +01:00
amazon-options.nix NixOS/amazonImageZfs: init 2021-08-25 10:42:35 -04:00
anbox.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
azure-agent-entropy.patch
azure-agent.nix
azure-bootstrap-blobs.nix
azure-common.nix
azure-config-user.nix
azure-config.nix
azure-image.nix treewide: use auto diskSize for make-disk-image 2021-04-24 14:49:07 -04:00
azure-images.nix
brightbox-config.nix
brightbox-image.nix iproute: deprecate alias 2021-04-04 01:43:46 +02:00
cloudstack-config.nix
container-config.nix
containerd.nix nixos/containerd: use v2 settings by default 2021-09-23 00:18:58 +02:00
containers.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
cri-o.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
digital-ocean-config.nix
digital-ocean-image.nix treewide: use auto diskSize for make-disk-image 2021-04-24 14:49:07 -04:00
digital-ocean-init.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
docker-image.nix
docker.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
ec2-amis.nix ec2-amis: add release 21.05 2021-06-06 17:09:14 -07:00
ec2-data.nix iproute: deprecate alias 2021-04-04 01:43:46 +02:00
ec2-metadata-fetcher.nix metadata fetchers: use umask instead of fetch-and-chmod 2021-05-02 08:28:59 +10:00
ecs-agent.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
fetch-instance-ssh-keys.bash
gce-images.nix add new Google Cloud image for the current release 2021-03-21 14:04:09 -04:00
google-compute-config.nix iproute: deprecate alias 2021-04-04 01:43:46 +02:00
google-compute-image.nix google-compute-image: Make GZIP compression level configurable 2021-07-13 16:53:09 +02:00
grow-partition.nix
hyperv-guest.nix nixos/hyperv: bail gracefully if device is missing 2021-04-29 09:37:17 +08:00
hyperv-image.nix treewide: use auto diskSize for make-disk-image 2021-04-24 14:49:07 -04:00
kvmgt.nix treewide: remove gnidorah 2021-04-30 01:48:19 +02:00
libvirtd.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
lxc-container.nix
lxc.nix Revert "Revert "apparmor: fix and improve the service"" 2021-04-23 07:17:55 +02:00
lxcfs.nix
lxd.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
nixos-containers.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
oci-containers.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
openstack-config.nix
openstack-metadata-fetcher.nix metadata fetchers: use umask instead of fetch-and-chmod 2021-05-02 08:28:59 +10:00
openvswitch.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
parallels-guest.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
podman-dnsname.nix nixos/podman-dnsname: init 2021-05-31 14:31:09 +02:00
podman-network-socket-ghostunnel.nix nixos/podman-network-socket-ghostunnel: move condition to include socket 2021-05-31 23:38:31 +10:00
podman-network-socket.nix nixos/podman: Add generic networkSocket interface 2021-05-30 11:21:05 +02:00
podman.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
qemu-guest-agent.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
qemu-vm.nix nixos/qemu-vm: fix running VM with QEMU_NET_OPTS 2021-10-06 22:40:30 +02:00
railcar.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
spice-usb-redirection.nix nixos: explicitely set security.wrappers ownership 2021-09-13 13:48:13 +02:00
vagrant-guest.nix
vagrant-virtualbox-image.nix
virtualbox-guest.nix
virtualbox-host.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
virtualbox-image.nix nixos/virtualbox-image: cast baseImageFreeSpace into str 2021-08-01 18:59:08 +00:00
vmware-guest.nix nixos/vmware-guest: fix setuid wrapper 2021-09-20 23:49:46 +02:00
vmware-image.nix treewide: use auto diskSize for make-disk-image 2021-04-24 14:49:07 -04:00
xe-guest-utilities.nix iproute: deprecate alias 2021-04-04 01:43:46 +02:00
xen-dom0.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
xen-domU.nix