Author Archive

We email each other a lot nowadays. I spend a significant amount of time behind my Outlook client everyday. Reading and writing emails. I especially like all the “FYI” (For Your Interest) mails. Usually they are very interesting but there is no direct action required. So, you need to save this email for awhile. Your inbox grows rapidly this way and online email providers understand this. They give you a 7 Gb mailbox or more!

But your company IT department is less generous. You’ve got a 100Mb mailbox within your organisation. This means you’ll have to clean your mailbox every week at least and because you want to save a lot of mail you create your first offline archive, a PST file. A PST file will always result in loss of data. During every migration or system failure someone forgets to backup it’s PST files and has lost all his communication of the past years.

Until your IT department wakes up and puts the whole mail service in the cloud, you can use a good alternative. Put your whole email archive within a Gmail mailbox!

Some simple steps:

1. Open a new Gmail account
2. Within Gmail, go to Settings, Forwarding and POP/IMAP and enable IMAP
3. Configure your emailclient to connect with the Gmail mailbox (http://mail.google.com/support/bin/topic.py?topic=12913)
4. Drag and drop all the folders and mail items from your mail archive (PST file) to the Gmail mailbox (this took me a while)
5. Remove the Offline Archive and your done!

 Capture2 Capture1

From now on drag all the emails you want to keep to the Gmail mailbox and it’s always available. You can even search your archive from an internet café, simply by going to gmail.com and logging in with your credentials.

The mail items within Outlook are also offline available and Windows Vista or 7 automatically indexes them!

Comments 15 Comments »

Tags van Technorati: ,,

I received this article from a college: Roel Janssens and I published it here with his permission.

The Virtual Hard Disk file format is getting more and more important for Microsoft (for example think Windows Azure) and with the introduction of Windows 7 Microsoft offers for the first time native VHD support. Working in Windows XP, Windows Vista and Windows Server 2003 you could mount a VHD with vhdmount, but the possibilities now have expanded and a lot more is going to happen in the future.

During TechEd 2008 Mark Russinovich gave a very interesting presentation called “Inside Windows 2008 R2 Virtualization Improvements and Native VHD Support”. The first hour has some nice enhancements in Hyper-V 2.0 and the last quarter Mark live demonstrates what Windows 7 is currently capable of regarding VHD.
http://www.microsoft.com/emea/teched2008/itpro/tv/default.aspx

All steps and findings in the following story are tested and confirmed working under Windows 7 Ultimate build 7000 and Windows Server 2008 R2 build 7000.

Advantages

There is no need to install additional programs when you want to create, attach or detach a VHD, this is all default built in within Disk Management. When you are working on Windows Server 2008 R2 this is an easy way to transfer data between the parent and child partition, you can see it as a “VHD Stick”. A requirement for a child partition is that a SCSI Controller is available, otherwise you can’t live (hot) attach a VHD.

clip_image001

Besides working in Disk Management you now have the option to install Windows 7 inside a VHD and boot from it. After that it is also possible to make differencing VHD’s based on that installation and boot from them. Some advantages and possibilities that this offers are:

- The installation of a new Operating System no longer requires you to redesign how your partitions are arranged. All that is added is one big VHD file and one boot entry. If you want to get rid of the installation those are all you have to delete.

- Differencing VHD’s make it possible to easily and safely test an upgrade to for example a new build of Windows 7. Do you like the upgrade then you can merge the differencing VHD, otherwise throw away the differencing VHD and continue to work where you left of in the original installation.

Disadvantages

Microsoft originally set the target of maximum 10% performance loss when Windows 7 is installed inside a VHD compared to a bare metal installation. They have done good work on this part because tests show that this loss is about 1 or 2 %. There is always some noise inside those tests so you can say that it nearly approaches a bare metal installation. My own experiences during the last weeks are the same; you almost never feel you are working inside a VHD.

The boot loader of Windows Vista isn’t compatible with VHD entries; if you look at those entries from within Vista you will see some ‘unknown’ parameters. If you also have Vista on your system and for some reason it starts up in Vista Repair then all boot entries referencing a VHD will be lost! Therefore it is wise to regularly make a backup of you Boot Configuration Database with bcdedit /export, that way you can always go back.

An option that has disappeared when booted from a VHD is the option to hibernate your machine. With power management you now only have the options of Sleep and Shut Down (this also happens when you enable the Hyper-V role on Windows Server 2008). Time will tell if Microsoft is going to develop or support hibernation when working with VHD’s.

Installation Windows 7 inside a VHD

To install Windows 7 inside a VHD you need at least 20GB free disk space. For now the installation is only supported on internal disks, so no external USB drives yet. In the following procedure we are going to install Windows 7 inside a 20GB VHD which we create in the directory c:\vhd. If you have an existing fixed size VHD (for example one created with Hyper-V Manager) you can use that one and skip step 05.

01 boot from Windows 7 DVD or USB
02 Shift-F10 for a command prompt
03 dir C: (of D: E: etc.) to see where your VHD-directory has gone
04 diskpart
05 create vdisk file=c:\vhd\win7.vhd type=fixed maximum=20000
06 select vdisk file=c:\vhd\win7.vhd
07 attach vdisk
08 exit
09 setup
10 install Windows 7 on the new 20GB Unallocated Space (ignore the warning)

After the installation there will be a new boot entry created where the system default will boot from. Start a command prompt with Administrator credentials and type bcdedit /v to see the newly created entry:

clip_image002

As you can see the two entries ‘device’ and ‘osdevice’ don’t reference a partition (e.g. with Windows Vista), but a physical file somewhere on your computer. The funny thing is when you are booted inside this installation you can look for this file with Windows Explorer; this is somewhat strange to understand when looking at it. Something else that changes is the location of the pagefile; it can’t exist within a VHD so Windows will automatically select another location for it.

Create differencing VHD

A differencing VHD is a disk that only saves the differences compared to his parent. This way you can quickly and easily test something without modifying your current installation. Currently Microsoft only supports placing both the parent and the differencing disk on the same volume, but this might change in the future. Parent disks are only used for read only operations while differencing disks perform more write operations, I can imagine placing them on separate disk subsystems optimized for read or write operations.

You can only create a differencing VHD when the parent you want to create a differencing disk from is not in use at that moment (so you can’t be booted inside your parent VHD). Following procedure again makes use of the boot functionality of the Windows 7 DVD, but you can also use a separate Windows Server 2008 installation and use Hyper-V Manager from there to create a differencing VHD. You don’t have to specify a size; this is specified by the parent.

01 boot from Windows 7 DVD or USB
02 Shift-F10 for a command prompt
03 dir C: (or D: E: etc.) to see where your VHD-directory has gone
04 diskpart
05 create vdisk file=c:\vhd\win7-diff.vhd parent=c:\vhd\win7.vhd
06 exit

99 No need to reboot right now, you can continue the next procedure at step 03

Now a differencing VHD is created with the previous Windows 7 installation as parent. The initial size of the differencing VHD will be very small, but this will grow during usage. When booted from within this differencing VHD and looking at it from within Windows Explorer you will see it’s size is the same as that from the parent. When you look at the VHD from another Operating System you will the normal size again.

Create additional boot entry

To be able to boot from previous differencing VHD you have to add an additional boot entry. You can do this from within a working Window 7 installation or again after booting from the Windows 7 DVD. The following steps can be done immediately after creating the differencing VHD.

01 boot from Windows 7 DVD or USB
02 Shift-F10 for a command prompt
03 bcdedit /v
04 bcdedit /copy {identifier-of-Windows7} /d “Windows 7 diff”
05 bcdedit /v
06 bcdedit /set {identifier-of-Windows7-diff} device vhd=[locate]\VHD\Win7-diff.vhd
07 bcdedit /set {identifier-of-Windows7-diff} osdevice vhd=[locate]\VHD\Win7-diff.vhd
08 bcdedit /v

In step 03 you have to look for the entry of Windows 7, you can Copy and Paste this identifier and use it in step 04. In step 04 the entry “Windows 7” will be copied to a new entry named “Windows 7 diff”. In step 05 you have to look for the new entry “Windows 7 diff” and Copy & Paste the identifier in step 06 and 07. In step 06 and 07 the correct parameters for ‘device’ and ‘osdevice’ will be filled in. Check the newly created “Windows 7 diff” entry with bcdedit /v

clip_image003

Take care of above notation, because there are some inconsistencies with the entry that is used for a normal VHD. With a normal VHD ‘device’ uses the notation device file= and with a differencing VHD we have to use device vhd=. With a normal VHD a drive letter is used, with a differencing VHD the word locate is used. A drive letter should have worked here also, but I did not manage to get that to work.

I don’t know if above inconsistencies are in fact well over thought choices by Microsoft, but I have the feeling that this is because of using beta software. With bcdedit /? /formats you get a little more information but it doesn’t give an explanation about the difference between the formats. I tried many other combinations but above screenshot is the only one found 100% working.

Merge differencing VHD

If you tried something out in a differencing VHD and you are satisfied with the result then you can merge this information in the parent VHD. You might have created a long differencing VHD chain, you can specify the depth to which you want to merge.

01 boot from Windows 7 DVD or USB
02 Shift-F10 for a command prompt
03 dir C: (or D: E: etc.) to see where your VHD-directory has gone
04 diskpart
05 select vdisk file=c:\vhd\win7-diff.vhd depth=2
06 merge vdisk depth=1
07 exit

In step 05 you have to select the differencing VHD with a depth greater than or equal to the depth of step 06. In this example we merge one level back.

Delete above experiments

Are you ready testing and do you want to get rid of the obsolete boot entries? Start a command prompt with Administrator credentials and delete them with bcdedit /delete {identifier-of-entry-to-be-deleted} Delete the physical VHD file(s) from your hard drive and everything is gone without leaving a trace.

Links

Virtual Hard Disk Image Format Specification
http://download.microsoft.com/download/f/f/e/ffef50a5-07dd-4cf8-aaa3-442c0673a029/Virtual%20Hard%20Disk%20Format%20Spec_10_18_06.doc

Inside Windows 2008 R2 Virtualization Improvements and Native VHD Support
http://www.microsoft.com/emea/teched2008/itpro/tv/default.aspx

Comments 10 Comments »

     

Every day the battle in the virtualization market is getting more exciting. 

Thursday (11 December 2008) VMware released update 3 for it’s free hypervisor: ESXi. No big deal right?But apparently they changed something in this update that could really change the way VMware virtual infrastructures will look like in a few months / years. 

In the last 12 months we have seen a change of focus within the virtualization battle. The hypervisor has really become a commodity and is free (ESXi & Hyper-V). It’s all about managing the virtual infrastructure now. Microsoft released their System Center Virtual Machine Manager (VMM) for this. What makes VMM great is that it can manage different virtual infrastructures at only a fraction of the cost of other managing tools. VMM can also manage a VMware VI. The downside of this is the fact that although you can manage a VMware environment you will also need VirtualCenter. VMM needs VirtualCenter to pass the command to the ESX servers. So you would need double the licenses for management software for your VI. Smart move from VMware, because they are actually making their money with the extra features that VirtualCenter brings.

But with update 3 of ESXi, VMware has decided to fully unlock all API’s. This means that any virtual machine managing tool can perform Vmotion activities on a VMware VI. This really diminishes the need for VirtualCenter. VMM would be able to perform the most important management tasks. For medium sized environments this would definitly be enough. You will have a stable hypervisor for free (ESXi) and the management tools for nearly nothing (VMM). 

I’m sure VMware has thought about this as well and is convinced about the business case for VirtualCenter. I hope they or anyone else on this blog will share this soon with me.

Update:

Well this explains everything. 

 ”Turns out that while fixing an API bug the API set got partially unlocked. Yes, you read that right, VMware didn’t mean to unlock the API set – at least not wholly and not yet. So, if you went out and started madly coding some killer VirtualCenter Client replacement then hold off because I’m told the U4 update will lock things back down again”

Read all about it, on this blog: http://www.mikedipetrillo.com/mikedvirtualization/2008/12/update-vmware-rcli-now-writes-to-esxi-free-hosts.html

 

Comments 4 Comments »

A few months ago my beloved colleague Walter gave me the Beta version of System Center Virtual Machine Manager. Unfortunately I haven’t had the time to play with it until now. While most people enjoy their well earned vacation, I’m playing around with SCVMM.

There are definitely things to be excited about:

  • Ability to manage both Hyper-V and VMware farms
  • Migrate virtual machines between Hyper-V hosts (maybe not a live migration, but a migration none the less! )
  • But the main thing to be excited about is the future integration within the System Center family.

And their are also some irritating things:

  • Hyper-V has just RTM’ed and SCVMM is still in beta. This means you got to install update after update to make everything work.
  • When I try to install the integration services on Windows Vista it comes with the message: “Unsupported Guest OS – An error has occurred: The specified program requires a newer version of Windows.” Unfortunately I’m not yet in the possession of Windows 7… 
  • I created a new library share. But when I try to mount an ISO file to my virtual machine it fails and the only thing you can do with your virtual machine from that point is remove it and repair it. Through the repair option you can save him by the way.

I properly can go on and on with these things but I can rather posts these on connect.microsoft.com. It is still a beta and I believe eventually these ‘minor’ issues will be solved.

There is one very interesting feature I found in SCVMM and I’m still not sure if it’s a brilliant or stupid thing. When you create a new virtual machine you got to choose your processor type. Not just the number of virtual processors or the clock rate, no actually the processor type. Like the 1.2 Ghz Athlon, the 3.0 Ghz Pentium 4 (HT Technology) or the 2.8 Ghz Xeon MP.

Choose your CPU type within SCVMM

It states that it uses this info to determine the processor requirements of the virtual machine. That’s being used when calculating host ratings and when setting CPU resource allocations.
You can view the host rating when you create a new virtual machine. The host rating helps you to choose the best host for your virtual machine. Based on free resources.
CPU resource allocation is something we know from VMware ESX. VMware uses shares to do this. A plain number like 1000 or 2000. The virtual machine with 2000 shares gets twice the amount of CPU cycles (when needed) in comparison with the machine that has 1000 shares.

I understand that SCVMM should use his own system that can be plotted on all the different virtualization platforms it’s going to manage (Hyper-V, XEN, ESX). But I don’t understand how a 2.4 Ghz Opteron relates to a 2.4 Ghz Xeon.
So if I just want my production server to have a 50% preference over my test server which should I choose? And what’s worse, if I’m in doubt with this option, how about a self service user that’s got the option to create a new virtual machine? I can imagine it would properly mean that this user got the advise to skip it.

But there is one more thing confusing about this. When you use the Virtual Machine Manager snap in, there is another way to set the processor weight and you can use a simple number!
VMM Processor Resources

So if I change the processor type in SCVMM of a virtual machine, you would suspect something to change within this screen. But it doesn’t… Neither does it the other way around.

I’m going to investigate some more but if you got some tips or hints, please post them!

Comments 12 Comments »

Hi,

I’m at Vmworld 2008 Europe (Cannes) right now. Virtualisation is hot and you can tell by the enormous amount of people that came to Cannes. A lot of interesting new product and enhancements have been release here today but there is one thing I want to mention here.

The Open Virtual Machine Format (OVF). At this point it is still in beta (0.9) but a 1.0 version is coming out very shortly. It’s a new way you on how to offer your virtual appliances and supported by Vmware, Citrix (Xenserver) and Microsoft Hyper-V. You can create your virtual appliance in any of these environments and package it as an OVF package. The virtual appliance can even exist out of multiple virtual machine.

This OVF package can be imported on to any of these hypervisors (that’s the open part of it) and it automatically build the right virtual machine(s) with the correct virtual components (Nic’s, CPU, memory etc). It also builds the correct virtual disk format, VMDK, VHD or even RDM or NTFS.

Read more about this new portable virtual machine format here: http://www.vmware.com/go/ovf

Comments No Comments »