vm: Use a para-virtualized disk when creating an image.
* guix/build/vm.scm (load-in-linux-vm): When MAKE-DISK-IMAGE?, use '-drive ...,if=virtio' for better performance. * gnu/system/vm.scm (qemu-image): Use /dev/vda instead of /dev/sda.
This commit is contained in:
parent
c4a74364b9
commit
f19c6e5fe7
|
@ -236,7 +236,7 @@ the image."
|
||||||
(let ((graphs '#$(match inputs
|
(let ((graphs '#$(match inputs
|
||||||
(((names . _) ...)
|
(((names . _) ...)
|
||||||
names))))
|
names))))
|
||||||
(initialize-hard-disk "/dev/sda"
|
(initialize-hard-disk "/dev/vda"
|
||||||
#:grub.cfg #$grub-configuration
|
#:grub.cfg #$grub-configuration
|
||||||
#:closures graphs
|
#:closures graphs
|
||||||
#:copy-closures? #$copy-inputs?
|
#:copy-closures? #$copy-inputs?
|
||||||
|
|
|
@ -96,7 +96,8 @@ the #:references-graphs parameter of 'derivation'."
|
||||||
"-append" (string-append "console=ttyS0 --load="
|
"-append" (string-append "console=ttyS0 --load="
|
||||||
builder)
|
builder)
|
||||||
(if make-disk-image?
|
(if make-disk-image?
|
||||||
`("-hda" ,image-file)
|
`("-drive" ,(string-append "file=" image-file
|
||||||
|
",if=virtio"))
|
||||||
'())))
|
'())))
|
||||||
(error "qemu failed" qemu))
|
(error "qemu failed" qemu))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue