An open API service indexing awesome lists of open source software.

https://github.com/maximsmol/libguestfs-docker

`libguestfs` and its tools in a minimal Alpine-based Docker image. Usable in Mac OS.
https://github.com/maximsmol/libguestfs-docker

containers developer-tools docker libguestfs qemu

Last synced: 6 months ago
JSON representation

`libguestfs` and its tools in a minimal Alpine-based Docker image. Usable in Mac OS.

Awesome Lists containing this project

README

          

# `libguestfs` in Docker

`libguestfs` and its tools in a minimal Alpine-based Docker image. Usable in Mac OS.

[Available on Docker Hub.](https://hub.docker.com/r/maximsmol/libguestfs)

# Usage

The target VM image needs to be mounted into the container.

[Example wrapper scripts are provided.](./scripts)

## Interactive `guestfish` Session

```bash
docker run \
--interactive \
--tty \
--privileged `# for QEMU KVM` \
--mount "type=bind,source=${dir},target=/mnt" \
maximsmol/libguestfs:latest \
guestfish \
--rw \
--add "/mnt/${base}" \
--inspector
```

## Running a Command

```bash
docker run \
--privileged `# for QEMU KVM` \
--mount "type=bind,source=${dir},target=/mnt" \
--mount "type=bind,source=${src},target=/src/${src_base}" \
maximsmol/libguestfs:latest \
guestfish \
--rw \
--add "/mnt/${base}" \
--inspector \
<