Closed ghe0 closed 2 hours ago
Add macvtap device and get info:
$ ip link add link eno8303 name macvtap2 type macvtap
$ ip link set macvtap2 up
$ cat /sys/class/net/macvtap2/ifindex
6
$ cat /sys/class/net/macvtap2/address
de:07:36:a7:54:ba
and add it to the VM settings:
-netdev tap,id=hostnet1,fd=3 3<>/dev/tap6 \
-device e1000,netdev=hostnet1,mac=de:07:36:a7:54:ba,romfile= \
Thank me later.
Using
-net
interfaces together with-object sev-snp-guest
will cause the following error:Software versions:
Full command:
The problem is combining the two macvtap lines with SNP.
-net
will however work with-object sev-guest
.