[elbe-devel] [PATCH v3] Enable initvm creation with newer qemu versions

Torben Hohn torben.hohn at linutronix.de
Tue Apr 9 16:49:08 CEST 2019


On Mon, Apr 08, 2019 at 10:18:11AM +0200, bage at linutronix.de wrote:
> From: Bastian Germann <bage at linutronix.de>
> 
> QEMU >= 2.9 does not have the vlan option for the ancient -net flag.
> Use the -netdev flag with a virtio device like the other qemu invocations.
> Leave out explicit hubport config.
> 
> This enables `elbe initvm create` on Debian buster which has QEMU 3.1.
> 
> Signed-off-by: Bastian Germann <bage at linutronix.de>

Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>

i will merge it into master
> ---
>  elbepack/init/Makefile.mako | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/elbepack/init/Makefile.mako b/elbepack/init/Makefile.mako
> index 0b4960e8..aeec6b51 100644
> --- a/elbepack/init/Makefile.mako
> +++ b/elbepack/init/Makefile.mako
> @@ -27,7 +27,6 @@ else
>  MACHINE?=pc
>  endif
>  
> -NICMODEL?=virtio
>  CONSOLE?=ttyS0,115200n1
>  LOOP_OFFSET?=1048576
>  HD_TYPE?=virtio
> @@ -104,8 +103,8 @@ all: .stamps/stamp-install-initial-image
>  		-append 'root=/dev/$(HD_NAME) debconf_priority=critical console=$(CONSOLE) DEBIAN_FRONTEND=text' \
>  		-no-reboot \
>  		-nographic \
> -		-net nic,vlan=1,model=$(NICMODEL),macaddr="${nicmac}" \
> -		-net user,vlan=1 \
> +		-device virtio-net-pci,netdev=user.0,mac="${nicmac}" \
> +		-netdev user,id=user.0 \
>  		-m $(MEMSIZE) \
>  		-smp $(SMP) \
>  		-usb \
> -- 
> 2.20.1
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20190409/5f9b771a/attachment.sig>


More information about the elbe-devel mailing list