From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: bug#22633: Provide a kvm-less qemu / guix system vm Date: Mon, 22 Feb 2016 13:27:11 -0800 Message-ID: <87mvqs8mhc.fsf@dustycloud.org> References: <87oabnqhv3.fsf@dustycloud.org> <20160211225009.GA4943@novena-choice-citizen.lan> <87oabm2tfa.fsf@gnu.org> <87ziv595xb.fsf@dustycloud.org> <87twl2xo6c.fsf@gnu.org> <87si0k8th9.fsf@dustycloud.org> <87r3g48rnh.fsf@dustycloud.org> <20160222194302.GA7176@novena-choice-citizen.lan> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXy1Y-0005BU-Ql for bug-guix@gnu.org; Mon, 22 Feb 2016 16:28:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXy1S-00018r-NO for bug-guix@gnu.org; Mon, 22 Feb 2016 16:28:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:41443) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXy1S-00018n-Jj for bug-guix@gnu.org; Mon, 22 Feb 2016 16:28:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aXy1S-0007FQ-DV for bug-guix@gnu.org; Mon, 22 Feb 2016 16:28:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <20160222194302.GA7176@novena-choice-citizen.lan> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Jookia <166291@gmail.com> Cc: 22633@debbugs.gnu.org Jookia writes: > On Mon, Feb 22, 2016 at 11:35:30AM -0800, Christopher Allan Webber wrote: >> #~(string-append >> - " -enable-kvm -no-reboot -net nic,model=virtio \ >> + ;; Only enable kvm if we see /dev/kvm exists. >> + ;; This allows uers without hardware virtualization to still use these >> + ;; commands. >> + #$(if (file-exists? "/dev/kvm") >> + " -enable-kvm " >> + "") >> + " -no-reboot -net nic,model=virtio \ >> " #$@(map virtfs-option shared-fs) " \ >> -net user \ >> -serial stdio -vga std \ >> -- >> 2.6.3 > > What if I enable KVM then run the script? > > Jookia. Then it should use KVM.