mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 07:36:19 +00:00
302720742f
The mode attribute is required for the source element of vhost-user. Thus virDomainNetDefFormat should always generate a xml with it and not only when the mode is server. The commit fixes the issue. And it adds a vhostuser interface in 'client' mode to qemuxml2argv-net-vhostuser.(args|xml) to test this usecase. Signed-off-by: Maxime Leroy <maxime.leroy@6wind.com>
11 lines
641 B
Plaintext
11 lines
641 B
Plaintext
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test QEMU_AUDIO_DRV=none \
|
|
/usr/bin/qemu -S -M \
|
|
pc -m 214 -smp 1 -nographic -nodefaults -monitor unix:/tmp/test-monitor,server,nowait \
|
|
-no-acpi -boot c -usb -hda /dev/HostVG/QEMUGuest1 \
|
|
-chardev socket,id=charnet0,path=/tmp/vhost0.sock,server \
|
|
-netdev type=vhost-user,id=hostnet0,chardev=charnet0 \
|
|
-device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:ee:96:6b,bus=pci.0,addr=0x3 \
|
|
-chardev socket,id=charnet1,path=/tmp/vhost1.sock \
|
|
-netdev type=vhost-user,id=hostnet1,chardev=charnet1 \
|
|
-device virtio-net-pci,netdev=hostnet1,id=net1,mac=52:54:00:ee:96:6c,bus=pci.0,addr=0x4
|