From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#24943: Error when starting a vm-image in qemu Date: Tue, 15 Nov 2016 11:08:40 +0100 Message-ID: <871sydgimv.fsf@gnu.org> References: <20161115050131.GA14613@khaalida> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c6afp-0002Yw-9E for bug-guix@gnu.org; Tue, 15 Nov 2016 05:09:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c6afm-0002yk-2g for bug-guix@gnu.org; Tue, 15 Nov 2016 05:09:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:42331) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c6afl-0002yf-V7 for bug-guix@gnu.org; Tue, 15 Nov 2016 05:09:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c6afl-0007MD-NH for bug-guix@gnu.org; Tue, 15 Nov 2016 05:09:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20161115050131.GA14613@khaalida> (dian cecht's message of "Mon, 14 Nov 2016 21:01:31 -0800") 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" To: dian_cecht@zoho.com Cc: 24943@debbugs.gnu.org dian_cecht@zoho.com skribis: > I've recently created a VM using guix system vm-image using > > $ guix system vm-image --image-size=3D16G ~/doc/vimwiki/liveusb-guix-sys-= conf.wiki > > (I will attach the conf file later on). After copying the image to $HOME = and > changing perms to 0600, I tried running it using: > > history | grep qemu-system > 501 qemu-system-x86_64 --enable-kvm -cpu host -net nic -net user -usb = -usbdevice tablet guix-img.qcow=20 > 502 qemu-system-x86_64 --enable-kvm -cpu host -net help -net user -usb= -usbdevice tablet guix-img.qcow=20 > 505 qemu-system-x86_64 --enable-kvm -cpu host -usb -usbdevice tablet g= uix-img.qcow=20 > > and in each instance, the system failed to boot (screenshots should be at= tached > in .png format). The error was related to the network interface. Especial= ly with > command 505, I'd have expected that to resolve the issue since there was = no > network interface, but it didn't fix things. Image error.png is the outpu= t, and > error2.png is the backtrace (,bt from the prompt). =E2=80=98guix system vm-image=E2=80=99 produces an image that expects QEMU= =E2=80=99s networking interface available as eth0 inside the host, hence the error you were getting. To enable that, I think you need to do: qemu-system-x86_64 -net user -net nic,model=3Dvirtio =E2=80=A6 See: https://www.gnu.org/software/guix/manual/html_node/Running-GuixSD-in-a-VM= .html Could you try and report back? Thanks, Ludo=E2=80=99.