unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Allan Webber <cwebber@dustycloud.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 22633@debbugs.gnu.org
Subject: bug#22633: Provide a kvm-less qemu / guix system vm
Date: Fri, 12 Feb 2016 09:47:44 -0800	[thread overview]
Message-ID: <87ziv595xb.fsf@dustycloud.org> (raw)
In-Reply-To: <87oabm2tfa.fsf@gnu.org>

Ludovic Courtès writes:

> Jookia <166291@gmail.com> skribis:
>
>> We should probably also blacklist kvm on Libreboot machines too somehow,
>
> A simple way to achieve this is with:
>
>   (operating-system
>     ;; …
>     (kernel-arguments '("modprobe.blacklist=kvm-intel,kvm")))

I tried this:

  (operating-system
    (kernel linux-libre-4.1)
    (kernel-arguments '("modprobe.blacklist=kvm-intel,kvm"))
    ...)

The generated Grub configuration looks right:

  menuentry "GNU with Linux-Libre 4.1.17 (alpha)" {
    search --label --set guix
    linux /gnu/store/k3l4g22vypwniy0k3f8xha9l8p1s716d-linux-libre-4.1.17/bzImage --root=guix --system=/gnu/store/flq2702dmj6ppqc4iix6xgp0q364yl3l-system --load=/gnu/store/flq2702dmj6ppqc4iix6xgp0q364yl3l-system/boot modprobe.blacklist=kvm-intel,kvm
    initrd /gnu/store/flq2702dmj6ppqc4iix6xgp0q364yl3l-system/initrd
  }

Unfortunately, after rebooting into it:

  cwebber@oolong:~$ lsmod | grep kvm
  kvm_intel             155648  0
  kvm                   491520  1 kvm_intel
  cwebber@oolong:~$ ls /dev/kvm
  /dev/kvm

Not sure why it didn't seem to do anything...

> But I guess ‘guix system vm’ will now fail.
>
> We could change the two occurrences of ‘-enable-kvm’ to use this flag if
> and only if /dev/kvm exists (I think it doesn’t exist when the kvm
> modules are not loaded.)

If we could really get kvm blocked, I could write this patch.

> Thoughts?
>
> Ludo’.

  reply	other threads:[~2016-02-12 17:48 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
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 [this message]
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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ziv595xb.fsf@dustycloud.org \
    --to=cwebber@dustycloud.org \
    --cc=22633@debbugs.gnu.org \
    --cc=ludo@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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).