mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
VM builds: Use qemu instead of the obsolete qemu-kvm
This commit is contained in:
parent
72359433d0
commit
ed37a6b465
@ -16,7 +16,9 @@ rec {
|
||||
# in parallel). So apply a patch to increase the timeout to 120s.
|
||||
kernel = assert pkgs.linux.features.cifsTimeout; linuxKernel;
|
||||
|
||||
kvm = pkgs.qemu_kvm;
|
||||
kvm = pkgs.qemu;
|
||||
|
||||
qemuProg = "${kvm}/bin/qemu-system-" + (if stdenv.system == "x86_64-linux" then "x86_64" else "i386");
|
||||
|
||||
|
||||
modulesClosure = makeModulesClosure {
|
||||
@ -195,7 +197,8 @@ rec {
|
||||
|
||||
|
||||
qemuCommandLinux = ''
|
||||
${kvm}/bin/qemu-kvm \
|
||||
${qemuProg} \
|
||||
-enable-kvm \
|
||||
${lib.optionalString (pkgs.stdenv.system == "x86_64-linux") "-cpu kvm64"} \
|
||||
-nographic -no-reboot \
|
||||
-net nic,model=virtio \
|
||||
@ -393,7 +396,8 @@ rec {
|
||||
|
||||
qemuCommandGeneric = ''
|
||||
PATH="${samba}/sbin:$PATH" \
|
||||
${kvm}/bin/qemu-kvm \
|
||||
${qemuProg} \
|
||||
-enable-kvm \
|
||||
-nographic -no-reboot \
|
||||
-smb $(pwd) -hda $diskImage \
|
||||
$QEMU_OPTS
|
||||
|
Loading…
Reference in New Issue
Block a user