Difference between revisions of "MacVTap"
Jump to navigation
Jump to search
Line 22: | Line 22: | ||
# Learn about MacVtap isolation and limitations https://www.ibm.com/support/knowledgecenter/en/linuxonibm/liaag/wkvm/wkvm_c_net_macvtap.htm#fntarg_1 | # Learn about MacVtap isolation and limitations https://www.ibm.com/support/knowledgecenter/en/linuxonibm/liaag/wkvm/wkvm_c_net_macvtap.htm#fntarg_1 | ||
# Learn about [[KVM]] Host Networking Configuration Choices https://www.ibm.com/support/knowledgecenter/en/linuxonibm/liaag/wkvm/wkvm_c_net.htm | # Learn about [[KVM]] Host Networking Configuration Choices https://www.ibm.com/support/knowledgecenter/en/linuxonibm/liaag/wkvm/wkvm_c_net.htm | ||
+ | # Read Introduction to Linux interfaces for virtual networking https://developers.redhat.com/blog/2018/10/22/introduction-to-linux-interfaces-for-virtual-networking/ | ||
== See also == | == See also == |
Revision as of 13:54, 11 February 2020
MacVTap is a device driver meant to simplify virtualized bridged networking.[1] Typically, this is used in virtualized environments (KVM) to make both the guest and the host show up directly on the switch that the host is connected to and to improve throughput and latencies to external systems. [2]
Example configuration file:
<interface type=”direct”> <mac address=12:34:56:78:9a:bc/> <source dev=private1 mode=bridge/> <model type=virtio/> <driver name=vhost/> </interface>
The MAC address field is optional, if omitted, the libvirt daemon (libvirtd) will generate a unique MAC address.
Example Virtual Machine using MacVTap driver in mode bridge:
virt-install --autostart --check all=on --name YOUR_VM_MACHINE --memory VM_MEMORY --vcpus VM_CPUs --os-variant ubuntu18.04 --cdrom VM_INSTALLATION_MEDIA --disk /path/libvirt/VM_STORAGE_POOL_NAME/YOUR_VM_MACHINE.qcow2 --noautoconsole --wait TIME_TO_WAIT --network type=direct,source=eno111,source_mode=bridge,model=virtio
Activities
- Learn about different MacVTap modes: https://www.ibm.com/support/knowledgecenter/en/linuxonibm/liaag/wkvm/wkvm_c_net_macvtap.htm#fntarg_1
- Learn about MacVtap isolation and limitations https://www.ibm.com/support/knowledgecenter/en/linuxonibm/liaag/wkvm/wkvm_c_net_macvtap.htm#fntarg_1
- Learn about KVM Host Networking Configuration Choices https://www.ibm.com/support/knowledgecenter/en/linuxonibm/liaag/wkvm/wkvm_c_net.htm
- Read Introduction to Linux interfaces for virtual networking https://developers.redhat.com/blog/2018/10/22/introduction-to-linux-interfaces-for-virtual-networking/
See also
- KVM, Installation, QEMU,
virsh
,virtinst
,libguestfs-tools
, libvirt, qemu, Red Hat Virtualization (RHV), MacVTap, Virtio, oVirt, KVM services, KVM networking, KVM graphics, CPU, KVM on ARM virsh
: Storage information, Connecting, Operations, Memory, Snapshots, Networking, CPU, release notes,virsh nodedev-list
virtinst
python installer scripts
Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.
Source: wikiversity
Advertising: