- Как отключить синхронизацию времени virtualbox mac os
- 2.12.В Fine Tuning Timers and Time Synchronization
- 2.12.1.В Configuring the Guest Time Stamp Counter (TSC) to Reflect Guest Execution
- 2.12.2.В Accelerate or Slow Down the Guest Clock
- 2.12.3.В Tuning the Guest Additions Time Synchronization Parameters
- 2.12.4.В Disabling the Guest Additions Time Synchronization
- Как отключить синхронизацию времени VirtualBox внутри гостевой среды во время выполнения
- ОТВЕТЫ
- Ответ 1
- Ответ 2
- Ответ 3
- Отключение синхронизации времени виртуалки в VMware
Как отключить синхронизацию времени virtualbox mac os
OracleВ® VM VirtualBox
Administrator’s Guide for Release 6.0
2.12.В Fine Tuning Timers and Time Synchronization
2.12.1.В Configuring the Guest Time Stamp Counter (TSC) to Reflect Guest Execution
By default, Oracle VM VirtualBox keeps all sources of time visible to the guest synchronized to a single time source, the monotonic host time. This reflects the assumptions of many guest operating systems, which expect all time sources to reflect «wall clock» time. In special circumstances it may be useful however to make the time stamp counter (TSC) in the guest reflect the time actually spent executing the guest.
This special TSC handling mode can be enabled on a per-VM basis, and for best results must be used only in combination with hardware virtualization. To enable this mode use the following command:
To revert to the default TSC handling mode use:
Note that if you use the special TSC handling mode with a guest operating system which is very strict about the consistency of time sources you may get a warning or error message about the timing inconsistency. It may also cause clocks to become unreliable with some guest operating systems depending on how they use the TSC.
2.12.2.В Accelerate or Slow Down the Guest Clock
For certain purposes it can be useful to accelerate or to slow down the virtual guest clock. This can be achieved as follows:
The above example will double the speed of the guest clock while
will halve the speed of the guest clock. Note that changing the rate of the virtual clock can confuse the guest and can even lead to abnormal guest behavior. For instance, a higher clock rate means shorter timeouts for virtual devices with the result that a slightly increased response time of a virtual device due to an increased host load can cause guest failures. Note further that any time synchronization mechanism will frequently try to resynchronize the guest clock with the reference clock, which is the host clock if the Oracle VM VirtualBox Guest Additions are active. Therefore any time synchronization should be disabled if the rate of the guest clock is changed as described above. See Section 2.12.3, “Tuning the Guest Additions Time Synchronization Parameters”.
2.12.3.В Tuning the Guest Additions Time Synchronization Parameters
The Oracle VM VirtualBox Guest Additions ensure that the guest’s system time is synchronized with the host time. There are several parameters which can be tuned. The parameters can be set for a specific VM using the following command:
property is one of the following:
Specifies the interval at which to synchronize the time with the host. The default is 10000 ms (10 seconds).
The minimum absolute drift value measured in milliseconds to make adjustments for. The default is 1000 ms on OS/2 and 100 ms elsewhere.
The factor to multiply the time query latency with to calculate the dynamic minimum adjust time. The default is 8 times, which means as follows:
Measure the time it takes to determine the host time, the guest has to contact the VM host service which may take some time. Multiply this value by 8 and do an adjustment only if the time difference between host and guest is bigger than this value. Do not do any time adjustment otherwise.
The max host timer query latency to accept. The default is 250 ms.
The absolute drift threshold, given as milliseconds where to start setting the time instead of trying to smoothly adjust it. The default is 20 minutes.
Set the time when starting the time sync service.
Set the time after the VM was restored from a saved state when passing 1 as parameter. This is the default. Disable by passing 0. In the latter case, the time will be adjusted smoothly, which can take a long time.
All these parameters can be specified as command line parameters to VBoxService as well.
2.12.4.В Disabling the Guest Additions Time Synchronization
Once installed and started, the Oracle VM VirtualBox Guest Additions will try to synchronize the guest time with the host time. This can be prevented by forbidding the guest service from reading the host clock:
Copyright В© 2004, 2020 Oracle and/or its affiliates. All rights reserved. Legal Notices
Источник
Как отключить синхронизацию времени VirtualBox внутри гостевой среды во время выполнения
У меня есть виртуальная машина VirtualBox, на которой работает Centos 6.5 с установленными гостевыми дополнениями, и мне нужно иметь возможность отключать и включать синхронизацию времени из гостя по желанию. По умолчанию гость синхронизирует свое время с хостом каждые 10 секунд [1], это функциональность, встроенная в гостевые дополнения.
Есть способы отключить синхронизацию времени, но они не соответствуют моим потребностям:
Отключите синхронизацию времени при запуске виртуальной машины:
VBoxManage setextradata «VM name» «VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled» 1
Отключите гостевые дополнения из виртуальной машины во время выполнения:
sudo service vboxadd-service stop
Причины, по которым они не работают для меня:
- Первый вариант работает только при запуске — я должен быть в состоянии сделать это во время выполнения
- Второй вариант останавливает другие функции, которые мне нужны от гостевых дополнений
Когда я запускаю sudo VBoxControl guestproperty enumerate я не вижу ничего общего с синхронизацией времени.
Итак. способ отключить и включить синхронизацию времени из виртуальной машины VirtualBox без отключения vboxadd-service service, пожалуйста 🙂
ОТВЕТЫ
Ответ 1
Вы должны иметь возможность редактировать vboxadd-service script на клиенте и добавить параметр —disable-timesync . Затем sudo service vboxadd-service restart и синхронизация времени должна быть отключена.
Ответ 2
Но у меня гость окон, и изменение реестра было необходимо для его работы. Я не знаю, что эквивалентно настройкам реестра Windows в вашей гостевой системе CentOS.
Ответ 3
У меня есть виртуальная машина Ubuntu/Trusty64, которую я создал с помощью Vagrant. Мне пришлось отключить синхронизацию времени в гостевом дополнении virtualbox на виртуальной машине. Для этого я добавил VBOX_OPTS в /etc/init.d/virtualbox-guest-utils примерно так:
Отредактируйте /etc/init.d/virtualbox-guest-utils и вставьте эти строки:
изменить эту строку:
Теперь остановись и запусти сервис вот так
Теперь я могу установить дату, которая мне нужна, и она остается такой до перезагрузки машины.
Источник
Отключение синхронизации времени виртуалки в VMware
Список форумов SYSAdmins.RU -> ВИРТУАЛИЗАЦИЯ |
Автор | |||
---|---|---|---|
andruha76 Новичок Зарегистрирован: 05.10.2015
|
| ||
Вернуться к началу |
| ||
Зарегистрируйтесь и реклама исчезнет! | |||
NotAvailable подпись на выбор, в личку sklifу Зарегистрирован: 24.10.2008 |
| ||
Вернуться к началу |
| ||
NotAvailable подпись на выбор, в личку sklifу Зарегистрирован: 24.10.2008 |
| ||
Вернуться к началу |
| ||
andruha76 Новичок Зарегистрирован: 05.10.2015
|
| ||
Вернуться к началу |
| ||
NotAvailable подпись на выбор, в личку sklifу Зарегистрирован: 24.10.2008 |
| ||
Вернуться к началу |
| ||
andruha76 Новичок Зарегистрирован: 05.10.2015
|
| ||
Вернуться к началу |
| ||
xx11xx11xx Новичок Зарегистрирован: 30.11.2015 |
| ||
Вернуться к началу |
| ||
ДругДроши Активный участник Зарегистрирован: 06.09.2015
|
| ||
Вернуться к началу |
| ||
xx11xx11xx Новичок Зарегистрирован: 30.11.2015 |
| ||
Вернуться к началу |
| ||
ДругДроши Активный участник Зарегистрирован: 06.09.2015 Источник |