windows-images icon indicating copy to clipboard operation
windows-images copied to clipboard

Selenoid overwrites sessions with Windows images

Open k-n-a opened this issue 3 years ago • 4 comments

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?

k-n-a avatar Jun 14 '21 14:06 k-n-a

@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.

vania-pooh avatar Jun 14 '21 15:06 vania-pooh

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

ArunGanesh88 avatar Jun 20 '21 11:06 ArunGanesh88

@ArunGanesh88 need to do w32time /update during startup.

vania-pooh avatar Jun 20 '21 15:06 vania-pooh

@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

ArunGanesh88 avatar Jun 20 '21 19:06 ArunGanesh88