Add macvtap support
See original GitHub issueHey everbody,
as @NerdsvilleCEO mentioned in #81, there is no support for using host devices (e.g through macvtap) in the nets
section. This would be a really nice feature.
@karmab - I saw your talk at FOSDEM 2019. kcli is awesome, love it!
Cheers
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
17.12. Attaching a Virtual NIC Directly to a Physical Interface
Open the virtual hardware details window ⇒ select NIC in the menu ⇒ for Network source, select host device name: macvtap ⇒ select...
Read more >Using the MacVTap driver
“Macvtap is a new device driver meant to simplify virtualized bridged networking. ... by kvm/qemu and other hypervisors that support the tun/tap interface....
Read more >MacVTap
A macvtap interface is created an configured using the ip link command from iproute2, in the same way as we configure macvlan or...
Read more >Add MacVTap as new virtual interface type for libvirt ...
Adding support for a general macvtap vif_type that is represented by the following domain.xml: <interface type='direct'> <source ...
Read more >What is macvtap and where is it supported?
A macvtap endpoint is a character device that largely follows the tun/tap ioctl interface and can be used directly by kvm/qemu and other ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
to give it a try, i’ve added some preliminary support for macvtap in https://github.com/karmab/kcli/commit/3c9c7b1f510c4ff9acc45ecdb87c9201eb7c3d3b
my understanding is that you only need to create a macvtap network in libvirt on top of a specified nic, and then use it as a regular network. so latest commit adds the ability to create a macvtap network with the following invocation
you can then use this network when creating a vm, for instance, with a oneliner like
i havent fully tested it (but i will) and will think how to improve end user experience for this case.
technically, the way i give vms a “public” ip is simply by
kcli list network
)In this configuration, qemu-guest-agent will actually take care of reporting the ip used by the vm, so you can still
kcli ssh
to it