Git Product home page Git Product logo

api's Introduction

KubeVirt

Build Status Go Report Card Licensed under Apache License version 2.0 Coverage Status CII Best Practices Visit our Slack channel FOSSA Status Quality Gate Status

KubeVirt is a virtual machine management add-on for Kubernetes. The aim is to provide a common ground for virtualization solutions on top of Kubernetes.

Introduction

Virtualization extension for Kubernetes

At its core, KubeVirt extends Kubernetes by adding additional virtualization resource types (especially the VM type) through Kubernetes's Custom Resource Definitions API. By using this mechanism, the Kubernetes API can be used to manage these VM resources alongside all other resources Kubernetes provides.

The resources themselves are not enough to launch virtual machines. For this to happen the functionality and business logic needs to be added to the cluster. The functionality is not added to Kubernetes itself, but rather added to a Kubernetes cluster by running additional controllers and agents on an existing cluster.

The necessary controllers and agents are provided by KubeVirt.

As of today KubeVirt can be used to declaratively

  • Create a predefined VM
  • Schedule a VM on a Kubernetes cluster
  • Launch a VM
  • Stop a VM
  • Delete a VM

To start using KubeVirt

Try our quickstart at kubevirt.io.

See our user documentation at kubevirt.io/docs.

Once you have the basics, you can learn more about how to run KubeVirt and its newest features by taking a look at:

To start developing KubeVirt

To set up a development environment please read our Getting Started Guide. To learn how to contribute, please read our contribution guide.

You can learn more about how KubeVirt is designed (and why it is that way), and learn more about the major components by taking a look at our developer documentation:

Useful links

The KubeVirt SIG-release repo is responsible for information regarding upcoming and previous releases.

Community

If you got enough of code and want to speak to people, then you got a couple of options:

Related resources

Submitting patches

When sending patches to the project, the submitter is required to certify that they have the legal right to submit the code. This is achieved by adding a line

Signed-off-by: Real Name <[email protected]>

to the bottom of every commit message. Existence of such a line certifies that the submitter has complied with the Developer's Certificate of Origin 1.1, (as defined in the file docs/developer-certificate-of-origin).

This line can be automatically added to a commit in the correct format, by using the '-s' option to 'git commit'.

License

KubeVirt is distributed under the Apache License, Version 2.0.

Copyright 2016

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

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

FOSSA Status

FOSSA Status

api's People

Contributors

kubevirt-bot avatar rmohr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

api's Issues

undefined: ocpconfigv1.TLSSecurityProfile

I followed the instruction How to use it and could not make the demo work.

# kubevirt.io/containerized-data-importer-api/pkg/apis/core/v1beta1
../../go/pkg/mod/kubevirt.io/[email protected]/pkg/apis/core/v1beta1/types.go:920:34: undefined: ocpconfigv1.TLSSecurityProfile
../../go/pkg/mod/kubevirt.io/[email protected]/pkg/apis/core/v1beta1/zz_generated.deepcopy.go:196:23: undefined: configv1.TLSSecurityProfile
package main

import (
	"context"
	"kv/client/versioned"

	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/client-go/tools/clientcmd"
)

func main() {
	cfg, err := clientcmd.BuildConfigFromFlags("", "")
	if err != nil {
		panic(err)
	}
	client := versioned.NewForConfigOrDie(cfg)
	client.KubevirtV1().VirtualMachineInstances(v1.NamespaceAll).List(context.Background(), v1.ListOptions{})
}

kubevirt v1.1.0 code compile package conflict error

kubevirt v1.1.0
docker 24

[root@localhost kubevirt]# make bazel-build-images
hack/dockerized "export BUILD_ARCH= && DOCKER_PREFIX=10.64.8.99:5000 DOCKER_TAG=v1.1.0 DOCKER_TAG_ALT= IMAGE_PREFIX= IMAGE_PREFIX_ALT= ./hack/multi-arch.sh build-images"
go version go1.22.2 linux/arm64

e3f504a6dbcc23560a57b1287e78db944fcbed19d535bd81dfa5b9502cc6f219
go version go1.22.2 linux/arm64
Sandbox is up to date
Another command holds the client lock:
pid=14
owner=client
cwd=/root/go/src/kubevirt.io/kubevirt

Waiting for it to complete...
Another command (pid=14) is running. Waiting for it to complete on the server (server_pid=18)...
INFO: Analyzed 9 targets (1478 packages loaded, 21138 targets configured).
INFO: Found 9 targets...
ERROR: /root/go/src/kubevirt.io/kubevirt/cmd/virt-operator/BUILD.bazel:18:10: GoLink cmd/virt-operator/virt-operator_/virt-operator failed: (Exit 1): builder failed: error executing command bazel-out/aarch64-opt-exec-2B5CBBC6/bin/external/go_sdk/builder '-param=bazel-out/aarch64-fastbuild/bin/cmd/virt-operator/virt-operator_/virt-operator-0.params' -- -extld /usr/bin/gcc -linkmode ... (remaining 4 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
link: package conflict error: kubevirt.io/api/core: multiple copies of package passed to linker:
//staging/src/kubevirt.io/api/core:go_default_library
//vendor/kubevirt.io/api/core:go_default_library
Set "importmap" to different paths or use 'bazel cquery' to ensure only one
package with this path is linked.
INFO: Elapsed time: 22.197s, Critical Path: 1.58s
INFO: 6 processes: 6 internal.
FAILED: Build did NOT complete successfully
make: *** [Makefile:33:bazel-build-images] 错误 1

How to solve this problem

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.