mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
gnu: vm: Run QEMU with '-enable-kvm'.
* gnu/system/vm.scm (expression->derivation-in-linux-vm): Pass QEMU '-enable-kvm'.
This commit is contained in:
parent
668c06acfc
commit
a7d46f12ac
1 changed files with 2 additions and 1 deletions
|
@ -154,7 +154,7 @@ (define builder
|
|||
(#f '())))
|
||||
|
||||
(and (zero?
|
||||
(system* qemu "-nographic" "-no-reboot"
|
||||
(system* qemu "-enable-kvm" "-nographic" "-no-reboot"
|
||||
"-net" "nic,model=e1000"
|
||||
"-net" (string-append "user,smb=" (getcwd))
|
||||
"-kernel" linux
|
||||
|
@ -188,6 +188,7 @@ (define builder
|
|||
("builder" ,user-builder)
|
||||
,@inputs))))
|
||||
(derivation-expression name builder
|
||||
;; TODO: Require the "kvm" feature.
|
||||
#:system system
|
||||
#:inputs inputs
|
||||
#:env-vars env-vars
|
||||
|
|
Loading…
Reference in a new issue