unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: W Knight <whk@umbisag.org>
To: 41224@debbugs.gnu.org
Subject: bug#41224: Documentation: Inconsistent disk device between create vm (sda) and run vm (vda) causes "guix system reconfigure" failure
Date: Tue, 12 May 2020 22:42:06 +0000 (GMT+00:00)	[thread overview]
Message-ID: <11799206.307480.1589323326873.JavaMail.root@umbisag.org> (raw)
In-Reply-To: <3434966.307449.1589322093612.JavaMail.root@umbisag.org>

[-- Attachment #1: Type: text/plain, Size: 1692 bytes --]


Summary: 
The instructions to build a virtual machine uses /dev/sda* devices for harddrive which are then referenced in /etc/config.scm. 
The instructions to run the vm uses /dev/vda* devices for harddrive 
This causes "sudo guix system reconfigure /etc/config.scm" to fail with... 
guix system: error: '/gnu/store/q6q99b1r6wxzdxh3a19z2ng88sfpdryn-grub-2.04/sbin/grub-install --no-floppy --target=i386-pc --boot-directory //boot /dev/sda' exited with status 1; output follows: 
Installing for i386-pc platform. 
/gnu/store/q6q99b1r6wxzdxh3a19z2ng88sfpdryn-grub-2.04/sbin/grub-install: error: cannot find a GRUB drive for /dev/sda. Check your device.map. 



Specifics: 


For at least quemu-system-x86_64 version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.23) 




<https://guix.gnu.org/manual/en/guix.html#Installing-Guix-in-a-VM> creates a disk layout with /dev/sda 

$ qemu-system-x86_64 -m 1024 -smp 1 -enable-kvm \
    -nic user,model=virtio-net-pci -boot menu=on,order=d \
    -drive file=guix-system.img \
    -drive media=cdrom,file=guix-system-install-1.1.0. system .iso 

while <https://guix.gnu.org/manual/en/guix.html#Running-Guix-in-a-VM> reflects the disk layout as /dev/vda 
$ qemu-system-x86_64 \
     -nic user,model=virtio-net-pci \
     -enable-kvm -m 1024 \
     -device virtio-blk,drive=myhd \
     -drive if=none,file=/tmp/qemu-image,id=myhd 

Recommendation.  Change the install directions to use virtio-blk... 
$ qemu-system-x86_64 -m 1024 -smp 1 -enable-kvm \
    -nic user,model=virtio-net-pci -boot menu=on,order=d \ 
-device virtio-blk,drive=myhd \ 
-drive if=none,file=guix-system.img,id=myhd \
    -drive media=cdrom,file=guix-system-install-1.1.0. system .iso 








[-- Attachment #2: Type: text/html, Size: 2294 bytes --]

           reply	other threads:[~2020-05-12 23:35 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <3434966.307449.1589322093612.JavaMail.root@umbisag.org>]

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=11799206.307480.1589323326873.JavaMail.root@umbisag.org \
    --to=whk@umbisag.org \
    --cc=41224@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 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).