Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to set the hardware time clock for each VM #3124

Closed
phirestalker opened this issue Sep 20, 2021 · 6 comments
Closed

Ability to set the hardware time clock for each VM #3124

phirestalker opened this issue Sep 20, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@phirestalker
Copy link

I run some Linux VMs which expect the hardware clock to be in UTC, but my host is MacOS so it is not. This makes certain security software (such as tor) not function properly.

I would like to be able to choose whether the VM should use UTC or the local timezone for the hardware clock. I know there are options in Qemu for this, so I guess this is mostly an interface upgrade.

Thanks for the great software! I thought I would never get to run virtual machines on my M1 mac, but your software makes it easy.

@phirestalker phirestalker added the enhancement New feature or request label Sep 20, 2021
@ViViDboarder
Copy link

I've got the same issue. My VM is showing the correct time zone, but it appears that it's assumed the hardware clock is UTC as well so I'm skewed by my timezone offset.

@ViViDboarder
Copy link

I managed to get the time working by adding additional QEMU flags. I went to machine preferences, QEMU, and then added -rtc base=utc,clock=host at the bottom.

@adespoton
Copy link

I'm not getting that to work; I attempted to add -rtc time="2001-10-01",clock=vm and I got an error that I needed to use the format "2006-06-17" -- which is the format I'm using. It seems to be getting confused between this flag and the already existing -rtc flag just prior.

Maybe the custom page should also let us remove or mask existing flags set from elsewhere in the UI? This would also let me fix things like a USB bus being presented to CUDA systems (which don't have a USB bus, or any way to address one).

@adespoton
Copy link

There were multiple things going on here. The error with setting the parameters was due to a faulty regex for handling " and spaces in parameter lines. This is now fixed, which reveals there's a secondary issue here: even when the original -rtc line is properly overridden, manual setting of the time still doesn't work in 3.1b.

@phirestalker
Copy link
Author

This is implemented now, so closing.

@Windowsfan1
Copy link

can someone say what the bios date command is and where I put it(qemu machine properties or Arguments) I am new

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants