VMware Cloud Community
vmvmvm626
Contributor
Contributor

How to adjust VM's speed ? Like "transmission gear"

I want to adjust VM's speed , not to speed up VM.

For example , Slow down the VM , when 1 minute has passed in the real world , only 30 seconds have passed in VM.

So , how can I make that ?

Reply
0 Kudos
16 Replies
admin
Immortal
Immortal

Please confirm which OS are you using ......

Regards,

Randhir

Reply
0 Kudos
vmvmvm626
Contributor
Contributor

ubuntu , centos ,suse……

Reply
0 Kudos
vmvmvm626
Contributor
Contributor

Anyone can help?

Reply
0 Kudos
daphnissov
Immortal
Immortal

Can you better explain what you're trying to achieve? I don't understand really what you wish to accomplish.

Reply
0 Kudos
vmvmvm626
Contributor
Contributor

Indeed , I want to slow down the time speed of VM , in order to make the VM's time goes slower then the real time.

For example , it‘s’ 10:00:00 o'clock ,both your clock and VM's clock . Wait a minute . Now your clock shows 10:01:00 ,and VM's clock shows 10:00:30. I need this effect.

.

Reply
0 Kudos
daphnissov
Immortal
Immortal

There is no way of which I'm aware to produce such an effect. What is your use case for such an odd request, if I may ask?

Reply
0 Kudos
vmvmvm626
Contributor
Contributor

I want to observe and measure network behavior of OS. But it sends packet too fast . So I have to slow down the OS .

As we know , it is almost impossible for Physical host . Maybe VM can ?

Reply
0 Kudos
daphnissov
Immortal
Immortal

That's what packet capture tools are for. You'll have to capture the behavior you wish to analyze and then step through it manually.

Reply
0 Kudos
vmvmvm626
Contributor
Contributor

Packet capture tools can do this, but I want to tamper the packet with my app . Now I need to debug my app to find some error .

You know ,if I debug my app with single step, the tcp link which is sending packets will be disconnected because of overtime.

So this won't happen ,if the VM does not 'feel' the debug time. For example , I have single step debug my app for 5seconds ,if VM feels only 5 millisecond passed ,the link won't be disconnected.

Reply
0 Kudos
daphnissov
Immortal
Immortal

In that case, you either need to use an injector or a packet capture and replay tool. One I know of is tcpreplay (Tcpreplay). As long as you capture in libpcap format you should be able to alter the data and replay it.

Reply
0 Kudos
vmvmvm626
Contributor
Contributor

Replay tool may not help. My app can influence the behavior of tcp .Replay tool can't Interact with my app ,because it won't change the behavior of tcp ,it only acts as what it has recorded before.

Reply
0 Kudos
vmvmvm626
Contributor
Contributor

Anyone can help?Please

Reply
0 Kudos
Dave_the_Wave
Hot Shot
Hot Shot

Time Dilation and Lag are often addressed issues in video game servers, and if anyone knows how to simulate that, it will be among the developers those realms.

Reply
0 Kudos
vmvmvm626
Contributor
Contributor

Very agree . I thought everything of VM ,include its timer, could be developped . 

VM gets the cycle rate of the processor clock from vsphere . So vsphere can give VM a Arbitrary value of the cycle rate in theory  to make VM‘s timer go  faster or slower.

Reply
0 Kudos
vmvmvm626
Contributor
Contributor

Anyone can help? help

Reply
0 Kudos
vmvmvm626
Contributor
Contributor

Any expert ?help!

Reply
0 Kudos