Score:0

Linux guest on Hyper-V host, realtime clock, UTC or local - sync with AD DC

ธง it

I'm installing a Debian 11 Linux guest on a Hyper-V cluster. Hosts' realtime clocks are set to local time, as is the norm for Windows Servers; unlike the preference of Unix-like OSes. Should I execute timedatectl set-local-rtc 1 on the Linux guest, to be in line with its hosts?

Setting real time clock to local time on Linux systemd servers reports this:

Warning: The system is configured to read the RTC time in the local time zone.
     This mode can not be fully supported. It will create various problems
     with time zone changes and daylight saving time adjustments. The RTC
     time is never updated, it relies on external facilities to maintain it.

If time is synced with an NTP source or from the hypervisor, will there be any potential problems? That's the first part of my question.

Second part,

  • Can systemd timesyncd or ntpd sync time with a Windows AD time server (the DC holding the PDC emulator role)? My initial attempt failed for both services. Of course sync time with host was unchecked on VM's settings.
  • As an alternative, is syncing time from HyperV host (which in turn is in sync with AD DC) trustworthy?
cn flag
ใน Windows AD เป็นแหล่งซิงค์เวลาที่ต้องการเสมอ สิ่งอื่นใดคือทางเลือกสุดท้าย
Score:0
ธง cn
timedatectl set-local-rtc 0

ตั้งค่า RTC เป็น UTCตามคำเตือนนั้น การรบกวน RTC ในพื้นที่นั้นไม่คุ้มค่าหากสามารถจัดการนาฬิกาด้วยวิธีอื่นได้

พูล ad.example.net
# ตัวเลือก PTP config สำหรับ chrony
#refclock PHC /dev/ptp0 โพล 3 dpoll -2 ออฟเซ็ต 0

AD DS เรียกใช้บริการ NTP บน DC ทั้งหมดตามค่าเริ่มต้น ตั้ง ntp.conf หรือ chrony.conf เป็นชื่อโดเมน Hyper-V ยังให้บริการนาฬิกา "ฮาร์ดแวร์" PTP เพื่อแบ่งปันเวลาโฮสต์ด้วยเวลาแฝงที่ต่ำมาก

ยืนยันว่าโฮสต์ Hyper-V มีเวลาที่ถูกต้อง อาจเป็นไปได้ว่าพวกเขาควรเป็นสมาชิกโดเมนและติดตามโดเมนในเรื่องนี้

ทำให้มั่นใจ การรวมแขกของ Hyper-V มีการติดตั้ง อาจจะแล้ว ฉันไม่มั่นใจว่าเมล็ด Debian กำลังทำอะไรอยู่ ไดรเวอร์ hv_vmbus เพียงพอสำหรับการซิงโครไนซ์เวลา

คุณสามารถใช้ NTP, Hyper-V time sync หรือทั้งสองอย่าง

Krackout avatar
it flag
แต่ถ้าฉันตั้งค่า VM เป็น UTC และซิงก์กับโฮสต์ ฉันจะได้รับเวลาที่เหมาะสมไหม เนื่องจากโฮสต์ตั้งค่าเป็นเวลาท้องถิ่น ฉันจะตรวจสอบ. ฉันจะลองชื่อโดเมนใน ntp.conf ด้วย ในการทดสอบที่ล้มเหลวครั้งแรกของฉัน ฉันใช้ชื่อ DC ที่มีบทบาทจำลอง PDC (การแก้ไข dns ทำงานได้อย่างถูกต้อง)
John Mahowald avatar
cn flag
ฉันไม่พบการอ้างอิงว่า Hyper-V จัดการ RTC แยกจากบริการซิงค์เวลาได้อย่างไร หากคุณเรียกใช้ NTP ที่ชี้ไปที่โดเมน ผู้เยี่ยมชมจะเห็นด้วยกับเครื่องที่เข้าร่วมโดเมนที่เหลือ ดูขั้นตอนสำคัญโดย NTP ในบันทึก ซึ่งอาจไม่ใช่ปัญหาใหญ่ ขึ้นอยู่กับว่าโฮสต์นี้ต้องการอะไร

โพสต์คำตอบ

คนส่วนใหญ่ไม่เข้าใจว่าการถามคำถามมากมายจะปลดล็อกการเรียนรู้และปรับปรุงความสัมพันธ์ระหว่างบุคคล ตัวอย่างเช่น ในการศึกษาของ Alison แม้ว่าผู้คนจะจำได้อย่างแม่นยำว่ามีคำถามกี่ข้อที่ถูกถามในการสนทนา แต่พวกเขาไม่เข้าใจความเชื่อมโยงระหว่างคำถามและความชอบ จากการศึกษาทั้ง 4 เรื่องที่ผู้เข้าร่วมมีส่วนร่วมในการสนทนาด้วยตนเองหรืออ่านบันทึกการสนทนาของผู้อื่น ผู้คนมักไม่ตระหนักว่าการถามคำถามจะมีอิทธิพลหรือมีอิทธิพลต่อระดับมิตรภาพระหว่างผู้สนทนา