mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 07:05:28 +00:00
14781dcde6
VMs with hardcoded platform network devices are forced to use old style '-net nic' command line config. Current we use qemu's vlan option to hook this with the '-netdev' host side of things. However since qemu 1.2 there is '-net nic,netdev=X' option for explicitly referencing a netdev ID, which is more inline with typical VM commandlines, so let's switch to that Signed-off-by: Cole Robinson <crobinso@redhat.com>
34 lines
891 B
Plaintext
34 lines
891 B
Plaintext
LC_ALL=C \
|
|
PATH=/bin \
|
|
HOME=/home/test \
|
|
USER=test \
|
|
LOGNAME=test \
|
|
QEMU_AUDIO_DRV=none \
|
|
/usr/bin/qemu-system-arm \
|
|
-name armtest \
|
|
-S \
|
|
-machine vexpress-a9,accel=tcg,usb=off,dump-guest-core=off \
|
|
-m 1024 \
|
|
-smp 1,sockets=1,cores=1,threads=1 \
|
|
-uuid 496d7ea8-9739-544b-4ebd-ef08be936e6a \
|
|
-display none \
|
|
-no-user-config \
|
|
-nodefaults \
|
|
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-armtest/monitor.sock,\
|
|
server,nowait \
|
|
-mon chardev=charmonitor,id=monitor,mode=control \
|
|
-rtc base=utc \
|
|
-no-shutdown \
|
|
-boot c \
|
|
-kernel /arm.kernel \
|
|
-initrd /arm.initrd \
|
|
-append 'console=ttyAMA0,\
|
|
115200n8 rw root=/dev/mmcblk0p3 rootwait physmap.enabled=0' \
|
|
-dtb /arm.dtb \
|
|
-usb \
|
|
-drive file=/arm.raw,format=raw,if=sd,index=0 \
|
|
-netdev user,id=hostnet0 \
|
|
-net nic,macaddr=52:54:00:09:a4:37,netdev=hostnet0,model=lan9118,name=net0 \
|
|
-chardev pty,id=charserial0 \
|
|
-serial chardev:charserial0
|