Home > Uncategorized > How to set the BIOS time in Virtualbox

How to set the BIOS time in Virtualbox

Here is how to set the BIOS time of a Virtualbox machine at each start up:

#! /bin/sh
#2 minutes before next new year
newyear=$(date -d "2013-12-31 23:58:00" +%s)
now=$(date +%s)
offset=$((($newyear-$now)*1000))
VBoxManage modifyvm "My VM" --biossystemtimeoffset $offset
VBoxManage startvm "My VM"
Advertisements
Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: