Virtual PC 또는 Virtual Server를 운영해 보시면, 해당 Guest OS의 시간 변경이 안 된다는 것을 알 수 있습니다. 변경 시도는 되지만, 잠깐 동안 변경된 듯 보이다가 원래의 시간(Host OS의 시간)으로 돌아가 버립니다.
가끔은, 시간에 따른 application 테스트를 할 일도 있기 때문에 그러한 동작이 달갑지 않은 때가 있는데요. 현재로서는 해당 VPC의 "Configuration"에서 그러한 설정에 대한 제어는 지원하지 않고, 대신에 다음과 같은 2가지 방법으로 변경할 수 있습니다.
1. VMC 파일 편집
해당 파일이 XML 파일이므로 메모장 등에서 열어서 다음과 같은 부분을 편집하면 됩니다.
아래에서 /host_time_sync/enabled의 값을 기존값 true에서 false로 바꿔주면 되지요.
그 외에, VMC 파일의 여러 가지 설정값들을 한 번쯤 눈여겨 보는 것도 좋을 듯 싶습니다.
<integration>
<microsoft>
<folder_sharing>
<enabled type="boolean">false</enabled>
<load_allowed type="boolean">false</load_allowed>
</folder_sharing>
<heartbeat>
<failure_attempts type="integer">12</failure_attempts>
<failure_interval type="integer">10</failure_interval>
<rate type="integer">10</rate>
<time type="integer">60</time>
</heartbeat>
<host_time_sync>
<enabled type="boolean">false</enabled>
<frequency type="integer">15</frequency>
<threshold type="integer">10</threshold>
</host_time_sync>
<mouse>
<allow type="boolean">true</allow>
</mouse>
<version>
<guest_os>
<build_number type="string">5.02.3790</build_number>
<long_name type="string">Windows Server™ 2003, Enterprise Edition</long_name>
<short_name type="string">Windows Server™ 2003, Enterprise Edition</short_name>
</guest_os>
<additions_number type="string">013206</additions_number>
</version>
</microsoft>
</integration>
2. Virtual Server의 경우, 제공되는 COM Interface를 이용해서 변경할 수 있습니다. IVMGuestOS 인터페이스를 얻은 후에, IVMGuestOS::put_IsHostTimeSyncEnabled 메서드에 VARIANT_FALSE 값을 전달해 주는 것이지요. 인터페이스를 통한 프로그램적으로 접근하는 것의 장점이라면, 향후 VMC 파일의 내부 구조가 변경된다 해도 해당 기능이 정상적으로 적용된다는 것을 보증할 수 있는 정도일 것입니다.
Title |
11902 | 정성태 | 5/21/2019 | 21178 | 오류 유형: 539. mstest 실행 시 "The directory name is invalid." 오류 발생 | |
11901 | 정성태 | 5/21/2019 | 24658 | 오류 유형: 538. msbuild 오류 - Could not find a part of the path '%LOCALAPPDATA%\Temp\2\.NETFramework,Version=v4.0.AssemblyAttributes.cs' | |
11900 | 정성태 | 5/18/2019 | 23388 | 오류 유형: 537. "sfc /scannow" 실행 중 시스템이 부팅되는 현상 | |
11899 | 정성태 | 5/17/2019 | 23477 | Linux: 9. Linux에서 윈도우의 OutputDebugString 대신 사용할 수 있는 syslog [1] | |
11898 | 정성태 | 5/16/2019 | 24882 | VC++: 130. C++ string의 c_str과 data 함수의 차이점 [3] | |
11897 | 정성태 | 5/16/2019 | 30920 | 오류 유형: 536. Visual Studio - "Developer Pack"을 설치했는데도 "대상 프레임워크" 목록에 나오지 않는 경우 [2] | |
11896 | 정성태 | 5/15/2019 | 28052 | 개발 환경 구성: 440. C#, C++ - double의 Infinity, NaN 표현 방식 | 1 |
11895 | 정성태 | 5/12/2019 | 24884 | .NET Framework: 832. ML.NET Model Builder - 회귀(Regression), 다중 분류(Multi-class classification) 예제 | 1 |
11894 | 정성태 | 5/10/2019 | 27253 | VS.NET IDE: 135. Visual Studio - ML.NET Model Builder 소개 [5] | |
11893 | 정성태 | 5/10/2019 | 22406 | 오류 유형: 535. C# 6.0 이상의 문법을 컴파일 시 오류가 발생한다면? | |
11892 | 정성태 | 5/10/2019 | 21996 | 웹: 38. HTTP Cookie의 expires 시간 형식(RFC7231) | |
11891 | 정성태 | 5/9/2019 | 25630 | .NET Framework: 831. (번역글) .NET Internals Cookbook Part 12 - Memory structure, attributes, handles | |
11890 | 정성태 | 5/8/2019 | 22126 | 개발 환경 구성: 439. "Visual Studio Enterprise is required to execute the test." 메시지와 관련된 코드 기록 | |
11889 | 정성태 | 5/8/2019 | 21099 | 개발 환경 구성: 438. mstest, QTAgent의 로그 파일 설정 방법 | |
11888 | 정성태 | 5/8/2019 | 39898 | .NET Framework: 830. C# - 비동기 호출을 취소하는 CancellationToken의 간단한 예제 코드 [1] | 1 |
11887 | 정성태 | 5/8/2019 | 26046 | .NET Framework: 829. C# - yield 문을 사용할 수 있는 메서드의 조건 | |
11886 | 정성태 | 5/7/2019 | 22418 | 오류 유형: 534. mstest.exe 실행 시 "Visual Studio Enterprise is required to execute the test." 오류 [2] | |
11885 | 정성태 | 5/7/2019 | 20431 | 오류 유형: 533. mstest.exe 실행 시 "File extension specified '.loadtest' is not a valid test extension." 오류 발생 | |
11884 | 정성태 | 5/5/2019 | 25323 | .NET Framework: 828. C# DLL에서 Win32 C/C++처럼 dllexport 함수를 제공하는 방법 - 두 번째 이야기 | |
11883 | 정성태 | 5/3/2019 | 30341 | .NET Framework: 827. C# - 인터넷 시간 서버로부터 받은 시간을 윈도우에 적용하는 방법 | 1 |
11882 | 정성태 | 5/2/2019 | 27244 | .NET Framework: 826. (번역글) .NET Internals Cookbook Part 11 - Various C# riddles | 1 |
11881 | 정성태 | 4/28/2019 | 27229 | 오류 유형: 532. .NET Core 프로젝트로 마이그레이션 시 "CS0579 Duplicate 'System.Reflection.AssemblyCompanyAttribute' attribute" 오류 발생 | |
11880 | 정성태 | 4/25/2019 | 23133 | 오류 유형: 531. 이벤트 로그 오류 - Task Scheduling Error: m->NextScheduledSPRetry 1547, m->NextScheduledEvent 1547 | |
11879 | 정성태 | 4/24/2019 | 32979 | .NET Framework: 825. (번역글) .NET Internals Cookbook Part 10 - Threads, Tasks, asynchronous code and others | 2 |
11878 | 정성태 | 4/22/2019 | 26957 | .NET Framework: 824. (번역글) .NET Internals Cookbook Part 9 - Finalizers, queues, card tables and other GC stuff | 1 |
11877 | 정성태 | 4/22/2019 | 27449 | .NET Framework: 823. (번역글) .NET Internals Cookbook Part 8 - C# gotchas | 1 |