forked from China-HPC/docker-kvm
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
37 lines (32 loc) · 850 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM ubuntu:18.04
LABEL MAINTAINER="xhzhang [email protected]"
RUN \
apt-get update && \
apt-get install -y qemu-kvm qemu-utils telnet iptables bridge-utils iproute2 iputils-ping dnsmasq net-tools && \
apt-get autoclean && \
apt-get autoremove && \
rm -rf /var/lib/apt/lists/*
ADD runvm.sh /
ENV OS_ISO=/kvm/cn_windows_10_multiple_editions_x64_dvd_6848463.iso
ENV DRV_ISO=/kvm/drv.iso
ENV RAM=6144
ENV SMP=1
ENV SOCKETS=1
ENV CORES=2
ENV THREADS=1
ENV MAXCPUS=2
ENV VM_NAME=virtual-desktop
ENV VGAID='8086 1916'
ENV VGAHOST='0000:00:02.0'
ENV VGAHOST_SHORT='00:02.0'
ENV QEMU_AUDIO_DRV=alsa
ENV VNC='0.0.0.0:1'
ENV ROM_FILE='/kvm/vbios.bin'
ENV AUDIO_DEVICE='AC97'
ENV BOOT_ORDER='c'
ENV DISK_FILE=/kvm/disk.qcow2
ENV TELNET='127.0.0.1:55555'
ENV DNS_SERVERS=114.114.114.114
ENV EXT_DEVICES=
VOLUME /data
ENTRYPOINT ["/runvm.sh"]