+++ This bug was initially created as a clone of Bug #612307 +++
Description of problem:
In qemu 0.12.x, the -net / vlan=... option is deprecated and upstream
have even threatened to remove this option. We should change
libguestfs to detect this and use -netdev instead.
Version-Release number of selected component (if applicable):
This will be fixed if we rebase (bug 613593).
Fixed in the rebase.
Just a note: New code is using:
-netdev user,id=usernet -device virtio-net-pci,netdev=usernet
This is only used if the user enables networking
eg. using guestfs_set_network (g, 1) or using an
option like --network to virt-rescue:
In the vast majority of cases networking is not
used at all.
This is VERIFIED by:
[00149ms] /usr/libexec/qemu-kvm \
-drive file=test.qcow2,cache=off,if=virtio \
-m 500 \
-device virtio-serial \
-serial stdio \
-chardev socket,path=/tmp/libguestfswfSlM5/sock,id=channel0 \
-device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
-netdev user,id=usernet,net=169.254.0.0/16 \
-device virtio-net-pci,netdev=usernet \
-kernel /tmp/.guestfs-0/kernel.16293 \
-initrd /tmp/.guestfs-0/initrd.16293 \
-append 'panic=1 console=ttyS0 udevtimeout=300 noapic acpi=off printk.time=1 cgroup_disable=memory selinux=0 guestfs_verbose=1 TERM=xterm ' \
no -net args for the qemu. -netdev and -device was used instead.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
The "-net" and "vlan=..." options in the qemu package have been deprecated for some time. To avoid relying on these deprecated options, libguestfs now uses the "-netdev" option instead.
This is fine, thanks.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.