Wednesday, March 27, 2013

Windows 8 and Native VHD Booting

In my last blog post I mentioned how I was really happy that my desktop processor supported SLAT and how it meant I could activate Hyper-V in Windows 8 Professional. This is because I wanted to play around with running virtual machines on the desktop.


My primary machine has a 30GB SSD as the boot drive and two 500GB HDDs.  Initially I was keen to try the virtualisation approach so I could play around with images but then I remembered one of the presentations I attended at TechEd 2012 that talked about booting into virtual images.  This would be an excellent way of having three machines.

The first base install would boot to Win 8 Pro using the SSD, the second virtual machine would boot to Windows 8 with Office installed, and the third virtual machine would boot to another Windows 8 with Steam and Battle.net installed.  It would allow me to negate the restrictive 30GB limit on my boot drive and provide me the speed of booting to 'bare metal' rather than running an image on Hyper-V and using remote desktop to access it.

I did a little bit of investigating and used the following steps:

1. Create Virtual Machine
2. Start Virtual Machine
3. Update Virtual Machine
4. Shutdown Virtual Machine
The first bit of work took place within Hyper-V as I created the two Virtual Machines, started them up and remoted into them, then ran Windows Update and used the Action Center to apply any changes or updates to the images.  Now I have a virtual machine and an associate virtual hard drive ready to play with.

5. Start Disk Management
6. Select Action | Attach VHD
7. Select VHD created with Virtual Machine
8. Remove the Drive Letter from the System Reserved volume
9. Set the Drive Letter for the Primary Volume
The second set of steps involved using Disk Management to attach the virtual hard drive, remove the drive letter from the boot partition for the virtual hard drive, and set the drive letter for the primary volume in the virtual hard drive.  Now my virtual hard drive is visible to the system within disk management.

10. Start a CMD Prompt
11. Navigate to [Drive Letter]
12. Navigate to \windows\system32
13. Use bcdboot to add configuration data to the drive:
bcdboot f:\windows
I then accessed the new drive using the drive letter and ran bcdboot which creates a set of Boot Configuration Data on the virtual hard drive.  Now this virtual hard drive should be seen as a bootable partition.

14. Reboot
15. Select the one you want
Use the "Choose an operating system" prompt to boot into whichever partition you want to, but we're not quite done here.

16. Open elevated command prompt
17. Use bcdedit command to retrieve GUIDs for each boot partition:
bcdedit
18. Use bcdedit command to set descriptions:
bcdedit /set {big guid 1} description "Windows 8"
bcdedit /set {big guid 2} description "Windows 8 Games"
bcdedit /set {big guid 3} description "Windows 8 Office"

19. Use bcdedit command to automatically launch Hyper-V
bcdedit /set hypervisorlaunchtype auto
The bcdedit command allows you to manage the configuration data associated with any bootable drive.  Now we have given our boot drives appropriate and easy to determine names.

20. Run MSCONFIG
21. Select Boot
22. Check the boot options for each drive and set the default
Finally we just need to check the boot option and set a default - Windows 8 will boot into the default after a set number of seconds if the system receives no inputs.


This is so very convenient for me.  If I want to quickly get online, I boot into the SSD partition, which is the default - and will go from the selection screen to the lock screen in under 4 seconds.  If I want to use Office or access photo editing software I boot into the office image, and if I feel like playing games I use that image.

All my image are held on my E: drive, which is 500GB.  Each image is dynamic but set to 130GB to start with.  Each machine is part of my Windows Home Server network and automatically backs up if it is on.  I generally boot each machine up once a week to apply any updates.

That's not all, though - I also use the library management tools of Windows 8 to make sure that the locations for all the libraries - and a few additional ones I've added - are on the D: drive.  This means that every one of these images share the same base data, from downloads to documents and everything in between.  More on that soon.

In conclusion, my desktop is now three desktops.

Tuesday, March 26, 2013

On Windows 8 and why it's not so hard

I downloaded the developer preview of Windows 8.  I didn't like it, mainly because the laptop I loaded it on didn't have the suitable drivers.  I used it a fair bit but said to myself I'd wait and see.  I downloaded the consumer preview too.  It was much better, had more drivers, and felt snappier. It made me start to look forward to the full release.

When the full version of Windows 8 was released I installed it on my laptop and desktop.  I was really very pleased to discover that my desktop had a SLAT capable processor, so I was able to activate Hyper-V as well.  More on that soon.

It didn't take me long to get used to Windows 8 at all.  When I first played with the previews I was initially wondering how it would work for businesses.  How would they deal with the new Start screen?  How would people get past that first hurdle?  If someone was trying to get to the desktop to work, would it get in the way?

Then it hit me.  We still have a start menu.  It has a bunch of 'favourite items' pinned to it. It has shortcuts to the settings menus.  Here's what I mean.

Using Shortcuts


In Windows 7 when you open the Start Menu area you'll see a set of pinned programs at the bottom.  You can pin whatever you want there to speed up your productivity.  In addition you have a set of most used programs that will build up the more you use them.  You can also pin programs to this menu as well.


In Windows 8 you can do the same thing with Apps or Programs - you can pin them to a sideways-scrolling list, and arrange them how you want.  You can also pin programs to the desktop as well.

Using All Programs



 At the bottom of the Start Menu in Windows 7 is "All programs" which will show you a list of everything you have installed (that has created a start menu item).  It gives you the chance to find your program grouped alphabetically.

The same can be done in Windows 8 very easily.

If you right click or swipe down on the start menu you'll see "All apps", and if you select this you will see another sideways-scrolling menu.

The first part of the menu lists all the Apps you have installed, including any you haven't pinned to the start screen.

The second part, on the right ide, lists all the programs you have installed.  This list isn't very big on the above screenshot because it was taken from my Surface RT tablet.  Using these lists you can pin whatever you want to your shortcut screen.
 

Accessing Settings 

From the Windows 7 start menu you can access a set of settings and options.  The same is possible from the start menu in Windows 8,


Just swipe in from the side or hit Windows + C to access the Charms menu, and select Settings.

From there you can change a number of options (some context sensitive based on what screen is being displayed) and power off the system, but you can also access even more options.

Conclusion

Once I worked out how the old and new systems interacted, a fundamental truth popped into my head:

The Start Screen IS the Start Menu

It is one and the same thing.  Press the Windows key and it appears.  Move your mouse to the bottom left of the screen and it appears  Have it selected and start typing and it will search.  Need to go to the desktop when logging in?  Make "Desktop" the first App, and when you log in hold down Enter and it'll go straight there.  Want to switch straight to the Desktop from anywhere?  Just use Windows+ D.

In summary I realise that many users will still find it hard to adjust, some people hate change, and others will continue to have it in for Windows generally, but for my working practices and general productivity I am finding Windows 8 to be a breeze,