diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-05-22 22:32:53 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-05-22 23:24:13 +0200 |
commit | f19c6e5fe79c8bbd3c9ea25cd0380681bd99ce13 (patch) | |
tree | 39fd8a06221d3e86a8105bac61f71b2cdaaac9cf /guix/build/vm.scm | |
parent | c4a74364b9ddb5c34bce788d453f93aa307731dd (diff) | |
download | guix-patches-f19c6e5fe79c8bbd3c9ea25cd0380681bd99ce13.tar guix-patches-f19c6e5fe79c8bbd3c9ea25cd0380681bd99ce13.tar.gz |
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.
Diffstat (limited to 'guix/build/vm.scm')
-rw-r--r-- | guix/build/vm.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/build/vm.scm b/guix/build/vm.scm index 4de536abb4..e559542f0a 100644 --- a/guix/build/vm.scm +++ b/guix/build/vm.scm @@ -96,7 +96,8 @@ the #:references-graphs parameter of 'derivation'." "-append" (string-append "console=ttyS0 --load=" builder) (if make-disk-image? - `("-hda" ,image-file) + `("-drive" ,(string-append "file=" image-file + ",if=virtio")) '()))) (error "qemu failed" qemu)) |