From: Leo Famulari <leo@famulari.name>
To: Jookia <166291@gmail.com>
Cc: 22633@debbugs.gnu.org
Subject: bug#22633: Provide a kvm-less qemu / guix system vm
Date: Thu, 11 Feb 2016 19:49:19 -0500 [thread overview]
Message-ID: <20160212004919.GB30668@jasmine> (raw)
In-Reply-To: <20160211225009.GA4943@novena-choice-citizen.lan>
[-- Attachment #1: Type: text/plain, Size: 819 bytes --]
On Fri, Feb 12, 2016 at 09:50:09AM +1100, Jookia wrote:
> On Thu, Feb 11, 2016 at 09:26:12AM -0800, Christopher Allan Webber wrote:
> > So on my Libreboot-enabled machine, KVM does not work. In fact, even
> > starting qemu with KVM enabled on it appears to crash my whole system.
> > Not only does "guix system vm" not work, even "guix system vm-image" can
> > take the whole machine down!
>
> Currently the 'solution' I've found is to edit Guix to remove the two instances
> of '--enable-kvm' which works somewhat, though it's slower as there's absolutely
> no acceleration.
>
> > It would be nice to have a --no-kvm switch, because I'd really like to
> > make use of Guix's nice VM features!
It's not a proper fix, but this patch achieves that on my non-Libreboot
machine. Can you see if it works for you?
[...]
[-- Attachment #2: disable-kvm.patch --]
[-- Type: text/x-diff, Size: 940 bytes --]
diff --git a/gnu/build/vm.scm b/gnu/build/vm.scm
index a095f9d..e4abcb2 100644
--- a/gnu/build/vm.scm
+++ b/gnu/build/vm.scm
@@ -97,7 +97,7 @@ the #:references-graphs parameter of 'derivation'."
(_ #f))
(unless (zero?
- (apply system* qemu "-enable-kvm" "-nographic" "-no-reboot"
+ (apply system* qemu "-nographic" "-no-reboot"
"-m" (number->string memory-size)
"-net" "nic,model=virtio"
"-virtfs"
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index a7c03bd..aa9c421 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -457,7 +457,7 @@ with '-virtfs' options for the host file systems listed in SHARED-FS."
"\" "))
#~(string-append
- " -enable-kvm -no-reboot -net nic,model=virtio \
+ " -no-reboot -net nic,model=virtio \
" #$@(map virtfs-option shared-fs) " \
-net user \
-serial stdio -vga std \
next prev parent reply other threads:[~2016-02-12 0:50 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-11 17:26 bug#22633: Provide a kvm-less qemu / guix system vm Christopher Allan Webber
2016-02-11 22:50 ` Jookia
2016-02-12 0:49 ` Leo Famulari [this message]
2016-02-12 18:04 ` Christopher Allan Webber
2016-02-13 0:47 ` Leo Famulari
2016-02-12 9:02 ` Ludovic Courtès
2016-02-12 17:47 ` Christopher Allan Webber
2016-02-13 19:10 ` Alex Kost
2016-02-21 12:09 ` Ludovic Courtès
2016-02-23 8:08 ` Alex Kost
2016-02-21 12:06 ` Ludovic Courtès
2016-02-22 18:56 ` Christopher Allan Webber
2016-02-22 19:35 ` Christopher Allan Webber
2016-02-22 19:43 ` Jookia
2016-02-22 21:27 ` Christopher Allan Webber
2016-02-22 21:09 ` Ludovic Courtès
2016-02-22 21:30 ` Christopher Allan Webber
2016-02-23 16:13 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160212004919.GB30668@jasmine \
--to=leo@famulari.name \
--cc=166291@gmail.com \
--cc=22633@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.