guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/9] system: vm: Remove -net user flag.


From: David Craven
Subject: Re: [PATCH 1/9] system: vm: Remove -net user flag.
Date: Sat, 3 Sep 2016 15:44:58 +0200

> I sympathize with this; what problems are you referring to?
>
> The reason for “-net user” is that it allows me to run “dhclient -v
> eth0” in the VM and get access to the network, which is often what I
> want.

I usually have the need to add my own flags most of the time anyway.

This is the script I usually use - the line marked > doesn't take
effect when a -net user flag was already provided:

$($HOME/guix/pre-inst-env guix system vm server-configuration.scm) \
>    -net user,hostfwd=tcp::10022-:22 \
    -vga virtio \
    -device virtio-rng-pci,bus=pci.0,addr=0x10 \
    -spice port=5930,disable-ticketing \
    -device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0,addr=0x5
\
    -chardev spicevmc,name=vdagent,id=vdagent \
    -device 
virtserialport,nr=1,bus=virtio-serial0.0,chardev=vdagent,name=com.redhat.spice.0>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]