Citrix Systems 6.2.0 manual Time Handling in Windows VMs, Time Handling in Linux VMs

Page 41

9.6. Time Handling in Windows VMs

For Windows guests, time is initially driven from the control domain clock, and is updated during VM lifecycle operations such as suspend, reboot and so on. Citrix highly recommends running a reliable NTP service in the control domain and all Windows VMs.

So if you manually set a VM to be 2 hours ahead of the control domain (for example, using a time-zone offset within the VM), then it will persist. If you subsequently change the control domain time (either manually or if it is automatically corrected by NTP), the VM will shift accordingly but maintain the 2 hour offset. Note that changing the control domain time-zone does not affect VM time-zones or offset. It is only the hardware clock setting which is used by XenServer to synchronize the guests.

When performing suspend/resume operations or live relocation using XenMotion, it is important to have up-to- date XenServer Tools installed, as they notify the Windows kernel that a time synchronization is required after resuming (potentially on a different physical host).

9.7. Time Handling in Linux VMs

There are two wallclock settings for Linux distributions – dependent and independent.

Dependent wallclock: Clocks in Linux VMs are synchronized to the clock running on the control domain, and cannot be independently altered. This is a convenient mode, as only the control domain needs to be running the Network Time Protocol (NTP) service to keep accurate time across all VMs.

Independent wallclock: Clocks in Linux VMs are not synchronized to the clock running on the control domain and can be altered. The control domain time is used to set the initial time when the VM boots.

34

Image 41
Contents Citrix XenServer 6.2.0 Virtual Machine Users Guide Trademarks Contents VM Migration with XenMotion and Storage XenMotion Importing the Demo Linux Virtual Appliance Windows VM Release Notes Setting Up a Red Hat Installation Server XenServer Documentation About this DocumentOverview Other Methods of VM Creation Virtual MachinesCreating VMs Importing an Exported VM XenServer ToolsPage Operating System Minimum Maximum Minimum Disk Space Supported Guests and Allocating ResourcesSupported Guests, Virtual Memory, and Disk Size Limits 4GB 8GB Operating System Experimental GuestsVirtual device Linux VMs Windows VMs Deprecated GuestsXenServer Product Family Virtual Device Support VM Block Devices Creating Windows VMs Basic Procedure for Creating a Windows VMAvailable Windows Templates Template Name DescriptionTo create a Windows 7 32-bit VM Using XenCenter to Create a VMAttaching an ISO Image Library Page Installing a Windows VM from an ISO Repository Using the CLI Using the CLI to Create a Windows VMCreating Linux VMs Distribution Vendor Install From Network From CD RepositoryCreating a Linux VM by Installing from a Physical CD/DVD Network Installation Notes Creating a Linux VM by Installing From an ISO ImageTo install Rhel Using a Kickstart File Advanced Operating System Boot ParametersTo install Debian using a preseed file To install the guest agent Installing the Linux Guest AgentLinux Distribution Installation Notes Additional Installation Notes for Linux DistributionsAdditional Debian Notes Preparing to Clone a Linux VMMachine Name IP addressPage XenMotion and Storage XenMotion VM Migration with XenMotion and Storage XenMotionXenMotion Storage XenMotionLimitations and Caveats Migrating a VM using XenCenterLive VDI Migration To Move Virtual Disks Updating VMs To uninstall the XenServer ToolsUpdating Windows Operating Systems Updating XenServer Tools for Windows VMsPage VApps Creating a vApp using XenCenterManaging vApps in XenCenter Creating vAppsDeleting vApps using XenCenter Start and shutdown vApps using XenCenterDeleting vApps To start a vAppTo import a vApp Importing and Exporting vAppsTo export a vApp Persist XenDesktop Private Desktop Mode VM Boot BehaviorReset XenDesktop Shared Desktop Mode Advanced Notes for Virtual MachinesInstalldir/xensetup.exe /S /norestart Connecting to a Windows VM Using Remote Desktop Windows Volume Shadow Copy Service VSS providerTo enable the Windows XenServer VSS provider To Enable Remote Desktop on a Windows VMTime Handling in Linux VMs Time Handling in Windows VMsGuest OS Dependent wallclock Independent wallclock Installing a VM from Reseller Option Kit BIOS-locked MediaTo set individual Linux VMs to maintain independent times Using the CLI Preparing for Cloning a Windows VM Using VSSUsing XenCenter Cloning Windows VMs Assigning a GPU to a Windows VM for Use with XenDesktopTo assign a GPU to a Windows VM using xe CLI To assign a GPU to a Windows VM using XenCenterTo detach a Windows VM from a GPU using XenCenter To detach a Windows VM from a GPU using the xe CLIDetach the GPU from the VM by entering the following Useful Tests To Import the Demo Linux Virtual Appliance Using XenCenterImporting the Demo Linux Virtual Appliance Page Format Description Importing and Exporting VMsSupported Formats Attribute Description Open Virtualization Format OVF and OVAXVA Format Disk Image Formats VHD and VmdkXVA Version 1 Format Operating System FixupTo use the RawVDI transfer protocol Transfer VMImporting VMs Importing VMs from OVF/OVA To Import VMs from OVF/OVA using XenCenterPage Importing Disk Images To Import VMs from a Disk Image using XenCenterImporting VMs from XVA To Import VMs from XVA Files VM using XenCenterExporting VMs as OVF/OVA To Import a VM from XVA using the xe CLIExporting VMs To Export VMs as OVF/OVA using XenCenter Exporting VMs as XVA To Export VMs as XVA Files using XenCenterTo Export VMs as XVA Files using the xe CLI Release Notes Appendix A. Windows VM Release NotesRed Hat Enterprise Linux 4.5 to Appendix B. Linux VM Release NotesPreparing a Rhel 4.5 to 4.8 guest for cloning Red Hat Enterprise LinuxOracle Enterprise Linux CentOSSuse Enterprise Linux 10 SP1 Suse Enterprise Linux 10 SP3Ubuntu On a Windows computer Appendix C. Creating ISO ImagesCreating an ISO on a Linux computer Enabling a Graphical Console on Debian Squeeze VMs Appendix D. Enabling VNC for Linux VMsConfiguring GDM to use VNC Determining the Location of your VNC Configuration FileVNC Screen Resolution Firewall SettingsCreate the xinetd.d file, /etc/xinetd.d/vnc-server-stream Enabling VNC for RHEL, CentOS, or OEL 6.x VMsEnabling Remote Administration Setting up SLES-based VMs for VNCModifying the xinetd Configuration Checking for a VNC ServerTo Open the VNC Port on Sles 10.x VMs Firewall To Open the VNC Port on Sles 11.x VMs Firewall Checking RunlevelsCopying Installation Media Appendix E. Setting Up a Red Hat Installation ServerEnable Remote Access NFSHttp FTPTo enable saving of Linux VM crash dumps Appendix F. Troubleshooting VM ProblemsVM Crashes Controlling Linux VM Crashdump BehaviourTroubleshooting Boot Problems on Linux VMs