aqemu icon indicating copy to clipboard operation
aqemu copied to clipboard

vlan=0 causes VM to not run

Open johnydeep100 opened this issue 5 years ago • 8 comments

aqemu 0.9.2 has some issues with qemu 3.0.0, with Network GUI type set to Basic. aqemu seems to add vlan=0. when I ran the vm it did not launch. then I tried the command from VM -> Show QEMU Arguments:

/usr/bin/qemu-system-x86_64 \
    -monitor stdio \
    -soundhw ac97 \
    -machine accel=kvm \
    -m 1304 \
    -cdrom /.../example.iso \
    -boot once=d,menu=off \
    -net nic,vlan=0 \
    -net user,vlan=0 \
    -rtc base=localtime \
    -name "Test1"

Qemu says...

qemu-system-x86_64: Invalid parameter 'vlan'

I found out this commit, which removes the vlan parameter: https://github.com/qemu/qemu/commit/af1a5c3eb41521b4f090ad6125cd981b72b99ab9

the commit message says...

...should have been enough time for everybody to either just drop unnecessary "vlan=0" parameters, to switch to the modern -device + -netdev syntax for connecting guest NICs with host network backends, or to switch to the "hubport" netdev in case hubs are really wanted instead.

johnydeep100 avatar Sep 07 '18 15:09 johnydeep100

I have the same issue

Tacolizard avatar Sep 08 '18 22:09 Tacolizard

Same issue.

Lathanderjk avatar Sep 19 '18 10:09 Lathanderjk

I encounter the same issue

felintusun avatar Sep 19 '18 21:09 felintusun

Same here. QEMU 3.0 dropped the vlan parameter. Aqemu detects QEMU 3.0 as 2.0 and does not seem to have support for 3.0 at all.

mdunc avatar Oct 02 '18 02:10 mdunc

you can use my fork, i've basically just deleted putting "vlan" parameters in the qemu argument string. It isn't reflected in the gui (the change was just a ~5min workaround) though on the plus side, it shouldn't break anything, since it is just ignoring the vlan parameter.

arthemis95 avatar Mar 05 '19 10:03 arthemis95

I just installed QEMU / AQEMU and the same problem occurred: QEMU-System-x86 _64: Invalid parameter ' VLAN '

mnwstl avatar Apr 26 '19 14:04 mnwstl

So....

ForeverZer0 avatar Jun 07 '19 07:06 ForeverZer0

i get

qemu-system-x86_64: -net nic,vlan=0: 'vlan' is deprecated. Please use 'netdev' instead. with QEMU emulator version 2.11.1

... so a) rtfm and fix your/the command line arguments https://wiki.qemu.org/Documentation/Networking

ftr :

  • i briefly tried mangling some options ,.. in the wee hours , sadly "$?" rarely/never did equal zero # [ $? -eq 0 ] && echo 'y' || echo $? ;-|

  • its possible to export a script containing the arguments used to call qemu via the aqemu menu --> vm -> create shell script. option eg

#!/bin/sh
# This script created by AQEMU
/usr/bin/qemu-system-x86_64  -soundhw ac97 -machine accel=kvm -m 1147 -drive file=/mnt/vm/CorePlus.iso -hda "/mnt/vm/Linux_HDA.img" -boot once=d,menu=off -netdev nic,vlan,id=0 -netdev user,vlan,id=0,hostname=win311 -rtc base=localtime -name "Linux" $*

... or
chk alternatives https://wiki.qemu.org/Links#GUIs_and_management_tools.2Fsystems i guess issues like this are why aqemu is not currently mentioned in the wiki


https://github.com/tobimensch/aqemu/issues/44

https://github.com/tobimensch/aqemu/issues/45

:skull:

dubiouscript avatar Jan 02 '20 10:01 dubiouscript