aerokube / windows-images

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

Selenoid overwrites sessions with Windows images #40

Open k-n-a opened 3 years ago

k-n-a commented 3 years ago

I'm trying to launch two parallel sessions with Windows (docker, qemu and VM snapshots) and I'm observing that second request gets the same session id as the first one - the second session overwrites the first one. Unfortunately, when I start several similar sessions, I get the same result. The created sessions are overwritten by newer ones and I get only two sessions as a result (with above session ids). I've observed that I always get the following two session ids : e3905888eeb73c21ad29e095e8062527 or d4b07eb090ca9ca6b4786dab3c252875 - why they are always the same for my Windows snapshot?

vania-pooh commented 3 years ago

@k-n-a this is because Windows is using time-based seed for random uuid generation and because of memory snapshot time remains always the same. Makes sure you time is synchronized at image startup.

ArunGanesh88 commented 3 years ago

Hi even I am facing the same issue... In the image I am using -rtc base=localtime but the guest time is not getting updated

vania-pooh commented 3 years ago

@ArunGanesh88 need to do w32time /update during startup.

ArunGanesh88 commented 3 years ago

@vania-pooh thanks, but I am quite new to qemu and KVM.. is there any document or support on how this can be achieved during startup