I using KVM on CentOS 7 with Virsh, but I cannot edit guest XML setting from interface network to interface user.
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
...
<interface type='user'>
...
</interface>
<qemu:commandline>
<qemu:arg value='-redir'/>
<qemu:arg value='udp:1194::1194'/>
</qemu:commandline>
</domain>
The error catch in <interface type='user'>
:
Error:XML document failed to validate against schema: Unable to validate doc against /usr/share/libvirt/schemas/domain.rng Extra element devices in interleave Element domain failed to validate content
What is the problem? Is it the version of KVM? How can I open a VPN port from guest to the internet using only KVM without iptables or fwd?