diff options
author | Marius Bakke <mbakke@fastmail.com> | 2019-12-06 20:53:08 +0100 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2019-12-18 22:36:37 +0100 |
commit | 8e53fe2b91d2776bc1529e7b34967c8f1d9edc32 (patch) | |
tree | 67a567c116a05ea20de5e51848a8b1e6de66ba77 /gnu/system | |
parent | 7ebf4c40f178449b8ace9a42791baa5e8647124a (diff) | |
download | guix-8e53fe2b91d2776bc1529e7b34967c8f1d9edc32.tar guix-8e53fe2b91d2776bc1529e7b34967c8f1d9edc32.tar.gz |
gnu: Remove uses of deprecated Qemu network configuration.
* gnu/build/vm.scm (load-in-linux-vm): Move Qemu network configuration from
ARCH-SPECIFIC-FLAGS to the Qemu command line. Use the "-nic" option of Qemu
instead of "-device" and "-net".
* gnu/system/vm.scm (common-qemu-options): Do not add a '-net' command.
(virtual-machine-compiler): Use "-nic user,..." instead of "-net".
* doc/guix.texi (Installing Guix in a VM, Invoking guix system, Running Guix
in a VM): Do the same for examples.
Diffstat (limited to 'gnu/system')
-rw-r--r-- | gnu/system/vm.scm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm index 8609bd2ace..81b2e06ba2 100644 --- a/gnu/system/vm.scm +++ b/gnu/system/vm.scm @@ -927,7 +927,6 @@ with '-virtfs' options for the host file systems listed in SHARED-FS." '()) "-no-reboot" - "-net nic,model=virtio" "-object" "rng-random,filename=/dev/urandom,id=guixsd-vm-rng" "-device" "virtio-rng-pci,rng=guixsd-vm-rng" @@ -1046,8 +1045,8 @@ FORWARDINGS is a list of host-port/guest-port pairs." (($ <virtual-machine> os qemu graphic? memory-size disk-image-size forwardings) (let ((options - `("-net" ,(string-append - "user," + `("-nic" ,(string-append + "user,model=virtio-net-pci," (port-forwardings->qemu-options forwardings))))) (system-qemu-image/shared-store-script os #:qemu qemu |