| 1 | go-qemu [](http://godoc.org/github.com/digitalocean/go-qemu)  [](https://goreportcard.com/report/github.com/digitalocean/go-qemu) |
| 2 | ======= |
| 3 | |
| 4 | `go-qemu` is a collection of Go packages for interacting with running QEMU |
| 5 | instances. Apache 2.0 Licensed. |
| 6 | |
| 7 | Feel free to join us in [`#go-qemu` on libera chat](https://web.libera.chat/) |
| 8 | if you'd like to discuss the project. |
| 9 | |
| 10 | Installation |
| 11 | ------------ |
| 12 | |
| 13 | Use `go get` to retrieve all of the packages in `go-qemu`: |
| 14 | |
| 15 | ```shell |
| 16 | $ go get github.com/digitalocean/go-qemu/... |
| 17 | ``` |
| 18 | |
| 19 | Overview |
| 20 | -------- |
| 21 | |
| 22 | Here is a quick overview of each top-level package, and what they can be used for: |
| 23 | |
| 24 | - `hypervisor`: Package hypervisor provides management facilities for one or |
| 25 | more QEMU virtual machines on a hypervisor. |
| 26 | - Provides easier access for managing groups of VMs than the `qemu` package. |
| 27 | - Provides access to individual `qemu.Domain` types. |
| 28 | - `qemu`: Package qemu provides an interface for interacting with running QEMU instances. |
| 29 | - Typically used for managing a single VM. |
| 30 | - Good for quick experiments. |
| 31 | - `qmp`: Package qmp enables interaction with QEMU instances via the QEMU Machine |
| 32 | Protocol (QMP). |
| 33 | - Typically not used by consumers outside of this repository. |
| 34 | - Wraps code-generated types with friendlier APIs. |
| 35 | |
| 36 | Details |
| 37 | ------- |
| 38 | |
| 39 | Package `qemu` is used in production at DigitalOcean, alongside package |
| 40 | [`libvirt`](https://github.com/digitalocean/go-libvirt). This being said, it is |
| 41 | possible that there may still be subtle bugs which could cause the packages to act |
| 42 | in unexpected ways. |
| 43 | |
| 44 | If you encounter any problems, please [look at the open issues](https://github.com/digitalocean/go-qemu/issues) |
| 45 | and if your problem does not match any of the ones listed, file a new issue with as |
| 46 | much detail as you are willing to provide. |
| 47 | |
| 48 | The API is not considered stable at this time. We do not anticipate making major |
| 49 | changes to the API, but it is possible that the API may change over time, if deemed |
| 50 | necessary by the project maintainers. If you would like to include package |
| 51 | `qemu` in a project, we highly recommend vendoring it into your project. |