* bug#41224: Documentation: Inconsistent disk device between create vm (sda) and run vm (vda) causes "guix system reconfigure" failure
[not found] <3434966.307449.1589322093612.JavaMail.root@umbisag.org>
@ 2020-05-12 22:42 ` W Knight
0 siblings, 0 replies; only message in thread
From: W Knight @ 2020-05-12 22:42 UTC (permalink / raw)
To: 41224
[-- 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 --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-12 23:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <3434966.307449.1589322093612.JavaMail.root@umbisag.org>
2020-05-12 22:42 ` bug#41224: Documentation: Inconsistent disk device between create vm (sda) and run vm (vda) causes "guix system reconfigure" failure W Knight
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).