|
FROM ubuntu:22.04 |
|
|
|
|
|
RUN apt-get update && \ |
|
DEBIAN_FRONTEND=noninteractive apt-get install -y qemu-system-x86 qemu-utils aria2 novnc websockify && \ |
|
apt-get clean |
|
|
|
|
|
EXPOSE 5900 7860 |
|
RUN aria2c -s16 -x16 https://computernewb.com/isos/windows/Windows%20Server%202008%20R2%20x64.iso |
|
RUN mkdir /vm |
|
RUN chmod +777 /vm/ |
|
RUN mv "Windows Server 2008 R2 x64.iso" /vm/main.iso |
|
RUN chmod +777 /vm/main.iso |
|
RUN qemu-img create /vm/main.img 45G |
|
RUN chmod +777 /vm/main.img |
|
|
|
CMD ["sh", "-c", "qemu-system-x86_64 -usbdevice tablet -cpu Nehalem -m 8G -vnc :0 -hda /vm/main.img -cdrom /vm/main.iso & websockify --web=/usr/share/novnc 7860 localhost:5900"] |