2016-03-26 21:49:41 +01:00
|
|
|
# Run libvirt deamon in a container
|
|
|
|
#
|
|
|
|
# docker run -d \
|
|
|
|
# --privileged \
|
|
|
|
# -v /var/run/libvirt:/var/run/libvirt \
|
|
|
|
# --name kvm \
|
|
|
|
# jess/kvm
|
|
|
|
#
|
2018-09-14 16:10:41 +02:00
|
|
|
FROM debian:sid-slim
|
2017-03-09 19:14:37 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2016-03-26 21:49:41 +01:00
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
2019-11-26 05:02:02 +01:00
|
|
|
dnsmasq \
|
2019-12-03 19:21:09 +01:00
|
|
|
gir1.2-spiceclientgtk-3.0 \
|
2019-11-26 04:40:43 +01:00
|
|
|
iproute2 \
|
2016-03-26 21:49:41 +01:00
|
|
|
iptables \
|
|
|
|
libgl1-mesa-dri \
|
|
|
|
libgl1-mesa-glx \
|
|
|
|
libvirt-daemon-system \
|
2019-12-03 19:21:09 +01:00
|
|
|
procps \
|
2016-03-26 21:49:41 +01:00
|
|
|
python-gi \
|
|
|
|
python-ipaddr \
|
|
|
|
qemu-kvm \
|
|
|
|
virtinst \
|
2019-11-26 05:10:40 +01:00
|
|
|
virt-manager \
|
2016-03-26 21:49:41 +01:00
|
|
|
virt-viewer \
|
|
|
|
--no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
COPY ./start.sh /start.sh
|
|
|
|
|
|
|
|
ENTRYPOINT ["/start.sh"]
|
2019-12-03 19:21:09 +01:00
|
|
|
CMD ["virt-manager", "--no-fork"]
|