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.
|
# in parallel). So apply a patch to increase the timeout to 120s.
|
||||||
kernel = assert pkgs.linux.features.cifsTimeout; linuxKernel;
|
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 {
|
modulesClosure = makeModulesClosure {
|
||||||
@ -195,7 +197,8 @@ rec {
|
|||||||
|
|
||||||
|
|
||||||
qemuCommandLinux = ''
|
qemuCommandLinux = ''
|
||||||
${kvm}/bin/qemu-kvm \
|
${qemuProg} \
|
||||||
|
-enable-kvm \
|
||||||
${lib.optionalString (pkgs.stdenv.system == "x86_64-linux") "-cpu kvm64"} \
|
${lib.optionalString (pkgs.stdenv.system == "x86_64-linux") "-cpu kvm64"} \
|
||||||
-nographic -no-reboot \
|
-nographic -no-reboot \
|
||||||
-net nic,model=virtio \
|
-net nic,model=virtio \
|
||||||
@ -393,7 +396,8 @@ rec {
|
|||||||
|
|
||||||
qemuCommandGeneric = ''
|
qemuCommandGeneric = ''
|
||||||
PATH="${samba}/sbin:$PATH" \
|
PATH="${samba}/sbin:$PATH" \
|
||||||
${kvm}/bin/qemu-kvm \
|
${qemuProg} \
|
||||||
|
-enable-kvm \
|
||||||
-nographic -no-reboot \
|
-nographic -no-reboot \
|
||||||
-smb $(pwd) -hda $diskImage \
|
-smb $(pwd) -hda $diskImage \
|
||||||
$QEMU_OPTS
|
$QEMU_OPTS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user