Editing MacVTap
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | [[wikipedia:MacVTap|MacVTap]] is a device driver | + | [[wikipedia:MacVTap|MacVTap]] is a device driver meant to simplify virtualized [[bridged]] networking.<ref>https://virt.kernelnewbies.org/MacVTap</ref> 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. <ref>https://www.ibm.com/support/knowledgecenter/en/linuxonibm/liaag/wkvm/wkvm_c_net_macvtap.htm#fntarg_1</ref> |
− | Example configuration file < | + | Example configuration file: |
− | + | <pre> | |
− | + | <interface type=”direct”> | |
− | + | <mac address=12:34:56:78:9a:bc/> | |
− | + | <source dev=private1 mode=bridge/> | |
− | + | <model type=virtio/> | |
− | + | <driver name=vhost/> | |
− | + | </interface> | |
− | + | </pre> | |
− | The MAC address field is optional, if omitted, the [[libvirt]] daemon ([[libvirtd]]) will generate a unique MAC address. | + | The MAC address field is optional, if omitted, the [[kVM/libvirt|libvirt]] daemon ([[kVM/libvirt|libvirtd]]) will generate a unique MAC address. |
Example Virtual Machine using MacVTap driver in mode bridge: | Example Virtual Machine using MacVTap driver in mode bridge: | ||
− | * <code> | + | * <code>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</code> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Activities == | == Activities == | ||
Line 35: | 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 | ||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
− | * | + | * [[KVM]] |
− | * | + | * virsh command line utility |
− | + | * virtinst python installer scripts | |
[[Category:Linux]] | [[Category:Linux]] |
Advertising: