mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-30 23:37:45 +00:00
ExecuteBlockdevAdd() and ExecuteBlockdevAddWithCache() both appear to be intended to create block devices in the guest which backend onto a block device in the host. That seems to be the way that Kata always uses it. However blockdevAddBaseArgs(), used by both those functions always uses the "file" driver, which is only intended for use with regular file backends. Use of the "file" driver for host block devices was deprecated in qemu-3.0, and has been removed entirely in qemu-6.0 (commit 8d17adf34f5). We should be using the "host_device" driver instead. fixes #191 Signed-off-by: David Gibson <david@gibson.dropbear.id.au> |
||
---|---|---|
.github/workflows | ||
qemu | ||
.gitignore | ||
.golangci.yml | ||
.travis.yml | ||
CONTRIBUTING.md | ||
COPYING | ||
go.mod | ||
README.md |
Virtual Machine Manager for Go
Virtual Machine Manager for Go (govmm) is a suite of packages that provide Go APIs for creating and managing virtual machines. There's currently support for only one hypervisor, qemu/kvm, support for which is provided by the github.com/kata-containers/govmm/qemu package.
The qemu package provides APIs for launching qemu instances and for managing those instances via QMP, once launched. VM instances can be stopped, have devices attached to them and monitored for events via the qemu APIs.
The qemu package has no external dependencies apart from the Go standard library and so is nice and easy to vendor inside other projects.