aerokube / windows-images

Step by step instructions for building Docker images with Windows
Apache License 2.0
221 stars 44 forks source link

windows starts after 20/30 seconds after container has been started #25

Open toni-moreno opened 4 years ago

toni-moreno commented 4 years ago

Hi @everybody I'm running windows image as described in this repo ( rigth now outside selenoid running command with a CI/CD tool) and recording with selenoid/video-recorder, I've noted that qemu starts too late as you can see in this video.

VIDEO

When the CI/CD tool execute docker with windows image this output is shown.

Waiting xvfb...

 --- x11vnc loop: 1 ---

 --- x11vnc loop: waiting for: 30

PORT=5900
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
qemu-system-x86_64: warning: TSC frequency mismatch between VM (1992000 kHz) and host (2194710 kHz), and TSC scaling unavailable
qemu-system-x86_64: warning: TSC frequency mismatch between VM (1992000 kHz) and host (2194710 kHz), and TSC scaling unavailable
qemu-system-x86_64: warning: guest updated active QH
aandryashin commented 4 years ago

As I can see everything is working correctly. Performance depends on hardware and resources available for the container. Please note that qemu starts virtual machine with windows it takes some time, 20 sec is good result...

вс, 24 нояб. 2019 г., 12:53 Toni Moreno notifications@github.com:

Hi @everybody https://github.com/everybody I'm running windows image as described in this repo ( rigth now outside selenoid running command with a CI/CD tool) and recording with selenoid/video-recorder, I've noted that qemu starts too late as you can see in this video.

VIDEO https://drive.google.com/file/d/11sPQYxd2xXJC8TaQi1BYeMwJqmZE_GA5/view?usp=sharing

When the CI/CD tool execute docker with windows image this output is shown.

Waiting xvfb...

--- x11vnc loop: 1 ---

--- x11vnc loop: waiting for: 30

PORT=5900 qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2] qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2] qemu-system-x86_64: warning: TSC frequency mismatch between VM (1992000 kHz) and host (2194710 kHz), and TSC scaling unavailable qemu-system-x86_64: warning: TSC frequency mismatch between VM (1992000 kHz) and host (2194710 kHz), and TSC scaling unavailable qemu-system-x86_64: warning: guest updated active QH

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/aerokube/windows-images/issues/25?email_source=notifications&email_token=AAKY23NAAUVJ7EDAMUDEH43QVJFHZA5CNFSM4JQ6JMYKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H3TVNOQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKY23IP3NUS2HBDD2AKTIDQVJFHZANCNFSM4JQ6JMYA .

toni-moreno commented 4 years ago

Hi @aandryashin , thank you for the fast response.

I've been comparing with my laptop where vm start takes 1 or 2 seconds... is because of that I believed that is not as good result as you say. Anyway I was wondering about "TSC frequency " errors , and if this could impact on the vm start time and if there is any way to accelerate with the docker run command or qemu parameters.

aandryashin commented 4 years ago

I never seen that vm starts in one second, especially on laptop... Those warnings are about cpu capabilities, you can play with qemu options to enable/disable some of them...

вс, 24 нояб. 2019 г., 20:15 Toni Moreno notifications@github.com:

Hi @aandryashin https://github.com/aandryashin , thank you for the fast response.

I've been comparing with my laptop where vm start takes 1 or 2 seconds... is because of that I believed that is not as good result as you say. Anyway I was wondering about "TSC frequency " errors , and if this could impact on the vm start time and if there is any way to accelerate with the docker run command or qemu parameters.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aerokube/windows-images/issues/25?email_source=notifications&email_token=AAKY23MJZLZ7FGDGTCJBOATQVKZBVA5CNFSM4JQ6JMYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFAQE3A#issuecomment-557908588, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKY23LB6PMY7WZKO7IXRB3QVKZBVANCNFSM4JQ6JMYA .