|
|
Xen ManualFrom $1Table of contents
Summary This article describes how to disable clock synchronization on the Xen Virtual Machines (XenVMs). By default, the clocks are synchronized with their XenServer Host and changing the date and time on them is not possible. Procedure 1. On the Text Console for the XenVM, type the command: 2. Use the date command, which takes the form date <MMDDhhmm>, to set the date. For example, the following command would set the date to 21:21:00 3 May 2007: 3. If you want this setting to persist through a reboot of the virtual machine, change the sysctl configuration file sysctl.conf by adding the following lines:
#! /bin/bash INPUT_FILE=/dev/virtuals/virtual.example.com-disk OUTPUT_FILE=./virtual.example.com-disk.`date +%Y%m%d`.img VIRTUAL_NAME=example VIRTUAL_ROOT=/dev/virtuals xm shutdown $VIRTUAL_NAME -w lvcreate -L 1G -n snap $INPUT_FILE xm create /etc/xen/$VIRTUAL_NAME dd if=$VIRTUAL_ROOT/snap | bzip2 > $OUTPUT_FILE.bz2 cksum $VIRTUAL_ROOT/snap > $OUTPUT_FILE.cksum lvremove $VIRTUAL_ROOT/snap
Tags:
|