tobimensch / aqemu

Official AQEMU repository - a GUI for virtual machines using QEMU as the backend
https://sourceforge.net/projects/aqemu/
GNU General Public License v2.0
502 stars 88 forks source link

vlan=0 causes VM to not run #58

Open johnydeep100 opened 5 years ago

johnydeep100 commented 5 years ago

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.

Tacolizard commented 5 years ago

I have the same issue

Lathanderjk commented 5 years ago

Same issue.

felintusun commented 5 years ago

I encounter the same issue

mdunc commented 5 years ago

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.

arthemis95 commented 5 years ago

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.

mnwstl commented 5 years ago

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

ForeverZer0 commented 5 years ago

So....

dubiouscript commented 4 years ago

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 :


... 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: