about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorxeji <36407913+xeji@users.noreply.github.com>2018-08-26 01:28:12 +0200
committerGitHub <noreply@github.com>2018-08-26 01:28:12 +0200
commitb2dc75cd03dc6254a4df6d7fb8e3b41989f05a65 (patch)
tree5a167f9cad44fc5f071f93911143ae08d87f9946 /nixos/tests
parentc429c9a8bb92ce5cb3a81a518e4c1505725c12d8 (diff)
parent341250fa10e07f50a2700fe18465bb91900c851d (diff)
downloadnixlib-b2dc75cd03dc6254a4df6d7fb8e3b41989f05a65.tar
nixlib-b2dc75cd03dc6254a4df6d7fb8e3b41989f05a65.tar.gz
nixlib-b2dc75cd03dc6254a4df6d7fb8e3b41989f05a65.tar.bz2
nixlib-b2dc75cd03dc6254a4df6d7fb8e3b41989f05a65.tar.lz
nixlib-b2dc75cd03dc6254a4df6d7fb8e3b41989f05a65.tar.xz
nixlib-b2dc75cd03dc6254a4df6d7fb8e3b41989f05a65.tar.zst
nixlib-b2dc75cd03dc6254a4df6d7fb8e3b41989f05a65.zip
Merge pull request #43736 from volth/patch-208
qemu: 2.12.1 -> 3.0.0
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/ec2.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/tests/ec2.nix b/nixos/tests/ec2.nix
index f585fa2ec237..8271747ccc63 100644
--- a/nixos/tests/ec2.nix
+++ b/nixos/tests/ec2.nix
@@ -68,7 +68,9 @@ let
           # again when it deletes link-local addresses.) Ideally we'd
           # turn off the DHCP server, but qemu does not have an option
           # to do that.
-          my $startCommand = "qemu-kvm -m 768 -net nic,vlan=0,model=virtio -net 'user,vlan=0,net=169.0.0.0/8,guestfwd=tcp:169.254.169.254:80-cmd:${pkgs.micro-httpd}/bin/micro_httpd ${metaData}'";
+          my $startCommand = "qemu-kvm -m 768";
+          $startCommand .= " -device virtio-net-pci,netdev=vlan0";
+          $startCommand .= " -netdev 'user,id=vlan0,net=169.0.0.0/8,guestfwd=tcp:169.254.169.254:80-cmd:${pkgs.micro-httpd}/bin/micro_httpd ${metaData}'";
           $startCommand .= " -drive file=$diskImage,if=virtio,werror=report";
           $startCommand .= " \$QEMU_OPTS";