This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"net" | |
"os" | |
"syscall" | |
"github.com/golang/glog" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create the VMI | |
kubectl apply -f examples/vmi-masquerade.yaml | |
virtualmachineinstance.kubevirt.io/vmi-masquerade created | |
# install guest agent in VMI | |
./_out/cmd/virtctl/virtctl console vmi-masquerade | |
Successfully connected to vmi-masquerade console. The escape sequence is ^] | |
vmi-masquerade login: fedora | |
Password: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello all | |
Miguel (in CC) and I have been working on adding macvtap support to Kubevirt. This allows setting up a macvtap interface for a VM that is directly attached to one of the node interfaces. | |
Why? | |
Macvtap interfaces are commonly used to simplify bridged virtualized networking. In the case of Kubevirt, the benefit is two-fold; it not only simplifies the networking at host level, but also at pod level, avoiding the extra bridge setup required there in a standard setup. | |
How? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: "k8s.cni.cncf.io/v1" | |
kind: NetworkAttachmentDefinition | |
metadata: | |
name: macvtap0 | |
spec: | |
config: '{ | |
"cniVersion": "0.3.1", | |
"type": "macvtap", | |
"master": "eth0", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: "k8s.cni.cncf.io/v1" | |
kind: NetworkAttachmentDefinition | |
metadata: | |
name: macvtap0 | |
spec: | |
config: '{ | |
"cniVersion": "0.3.1", | |
"type": "macvtap", | |
"master": "eth0", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Copyright (c) 2019 Red Hat, Inc. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |