From c91afc01d0c16fed67d82c18d56fdb8f1b6aab97 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Sat, 26 Mar 2016 14:41:58 -0700 Subject: [PATCH] virt-viewer Signed-off-by: Jess Frazelle --- kvm/start.sh | 6 +++--- libvirt-client/Dockerfile | 2 +- virt-viewer/Dockerfile | 11 +++++++++++ 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 virt-viewer/Dockerfile diff --git a/kvm/start.sh b/kvm/start.sh index 20caa69..8967ee0 100755 --- a/kvm/start.sh +++ b/kvm/start.sh @@ -8,10 +8,10 @@ chown root:kvm /dev/kvm # create the bridge for networking ip link add name virt0 type bridge -ip link set virt0 up +ip link set dev virt0 up bridge link -ip addr add dev virt0 192.168.66.66/24 -iptables -t nat -A POSTROUTING -s 192.168.66.66/24 -j MASQUERADE +ip addr add dev virt0 172.20.0.1/16 +iptables -t nat -A POSTROUTING -s 172.20.0.1/16 -j MASQUERADE # start the virtlogd daemon exec virtlogd --daemon & diff --git a/libvirt-client/Dockerfile b/libvirt-client/Dockerfile index 16c9f2a..c6d3300 100644 --- a/libvirt-client/Dockerfile +++ b/libvirt-client/Dockerfile @@ -5,4 +5,4 @@ RUN apk update && apk add \ libvirt-client \ && rm -rf /var/cache/apk/* -CMD [ "virsh" ] +ENTRYPOINT [ "virsh", "-c", "qemu:///system" ] diff --git a/virt-viewer/Dockerfile b/virt-viewer/Dockerfile new file mode 100644 index 0000000..46230af --- /dev/null +++ b/virt-viewer/Dockerfile @@ -0,0 +1,11 @@ +FROM debian:sid +MAINTAINER Jessie Frazelle + +RUN apt-get update && apt-get install -y \ + libgl1-mesa-dri \ + libgl1-mesa-glx \ + virt-viewer \ + --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* + +ENTRYPOINT ["virt-viewer", "-c", "qemu:///system"]