mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
virt-viewer
Signed-off-by: Jess Frazelle <jess@mesosphere.com>
This commit is contained in:
parent
a562d05487
commit
c91afc01d0
|
@ -8,10 +8,10 @@ chown root:kvm /dev/kvm
|
||||||
|
|
||||||
# create the bridge for networking
|
# create the bridge for networking
|
||||||
ip link add name virt0 type bridge
|
ip link add name virt0 type bridge
|
||||||
ip link set virt0 up
|
ip link set dev virt0 up
|
||||||
bridge link
|
bridge link
|
||||||
ip addr add dev virt0 192.168.66.66/24
|
ip addr add dev virt0 172.20.0.1/16
|
||||||
iptables -t nat -A POSTROUTING -s 192.168.66.66/24 -j MASQUERADE
|
iptables -t nat -A POSTROUTING -s 172.20.0.1/16 -j MASQUERADE
|
||||||
|
|
||||||
# start the virtlogd daemon
|
# start the virtlogd daemon
|
||||||
exec virtlogd --daemon &
|
exec virtlogd --daemon &
|
||||||
|
|
|
@ -5,4 +5,4 @@ RUN apk update && apk add \
|
||||||
libvirt-client \
|
libvirt-client \
|
||||||
&& rm -rf /var/cache/apk/*
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
CMD [ "virsh" ]
|
ENTRYPOINT [ "virsh", "-c", "qemu:///system" ]
|
||||||
|
|
11
virt-viewer/Dockerfile
Normal file
11
virt-viewer/Dockerfile
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
FROM debian:sid
|
||||||
|
MAINTAINER Jessie Frazelle <jess@linux.com>
|
||||||
|
|
||||||
|
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"]
|
Loading…
Reference in New Issue
Block a user