windows 8.1 on virtualbox – a more permanent solution

In January, I installed the Windows 8.1 trial on VirtualBox.  The trial is good for 3 months.  I need a more permanent solution so I bought Windows 8.  I chose to buy a physical DVD so I have it in case I need to re-install it.  This turned out to be an “adventure” as Staples lost it the first time and there was some trouble picking it up.

This post assumes a tiny bit of experience with Windows 8.  If you don’t have any, see the trial post first.

Creating the VM from DVD – failed 64 bit attempt

The Windows 32 DVD didn’t stay in drive. 64 bit did though so I tried installing that.  In VirtualBox, you click the CD/DVD icon  and set storage to “host drive.”   After the Windows splash screen, I got “your PC needs to restart.”  So far so good.  Then I got

Error Code: 0x000000C4

Control command delete didn’t allow me to kill the virtual machine. I didn’t even have a cursor/pointer on my main Mac.  I had to press the power button on my Mac to get out of the virtual machine and close it.

I saw there were CPU requirements for 64 bit Windows and decided to try 32 bit again.  I’m doing anything powerful in Windows so I don’t need much memory.  The 32 bit DVD worked fine the second time.  A later found out there is an instruction you can give VirtualBox to load 64 bit Windows.

Creating the VM from DVD – successful 32 bit attempt

This went smoothly.  The gist of what went on:

  • Install now
  • Enter key from product key card
  • Choose custom: install windows only (advanced) – because not upgrading
  • Install Windows: “drive 0 unallocated space”
  • Started installing – showed % then blue windows splash for a few minutes then rebooted
  • Personalize screen – customize
  • Turn off shared info settings – don’t send data to MS
  • Prompted to sign into MS account.  I entered the wrong info (on purpose to see what would happen.)  I got prompted to create a local account.  Perfect.  Went with that.
  • Saw getting critical updates screen for a while since the DVD is older – the screen changes color as it downloads
  • Reboot again
  • Saw installing your apps – again the screen changes color as it goes

What I setup

  • view > switch to scale mode so don’t have to scroll up, down, left and right in Windows
  • Boot to desktop instead of Windows 8 screen.  This also allows shutting down by right clicking the windows icon at the bottom left.
  • I used solution 3 in this post to get rid of the black help box
  • in “tiles” went to command and pinned it to start menu and task bar so the DOS prompt is always handy.  I use it a lot in Windows to avoid having to use Windows while still being able to test Windows behavior in Java
  • Launched the control panel (which took a long time to load first time) so I could edit the PATH environment variable to add the path of javac

What I installed

  • JDK
  • The git app (because it is faster than setting up git manually) and login as me.  This gets the git shell quickly

Accessing the DVD drive

I wanted to run a DVD to see what it looked like and if there was anything beyond the PDF and Shockwave files.  (There wasn’t.)  To get VirtualBox to show me the d drive, I went to devices > host drive and chose my DVD drive.  Then the d drive turns into the real DVD drive instead of VirtualBox extensions.

As I was shutting down Virtual Box, I tried to eject the DVD from the Mac.  My Mac didn’t recognize the DVD.  I wound up having to wait until the Windows VM shut down (which took a while because Windows was busy patching.)  Then the Mac saw the DVD as if I had just stuck it in.

A nice aside

I learned you can drag a swf (Shockwave) file to the browser URL bar to open it.

Communicating with the VM

I’m still using my github system to communicate so repeating that from my trial post.

You can copy/paste from VirtualBox.  I decided to use github instead though as I already have the code I want to try on Windows in a private github repository.  Github has a Windows client.  I’ve never used it so decided to download to see what it is like.  It is only 41.2MB, but downloaded really slowly.   The app provided a UI to clone a repository in github which it automatically checks out into Documents/github/repo-name.  The UI is nice, but I wound up using the git bash shell provided with the application.  Which meant it really only saved me some setup.

Other options would have been Dropbox or just use the copy/paste functionality from VirtualBox.  (I really didn’t want to do that for whole files.)

launching windows 8 on a vm

My “Windows computer” is a Windows XP machine that is over 7 years old and barely works. I still have it because every once in a while I’ve used it to test something in Internet Explorer. It doesn’t have the latest patches, virus scan, software etc. And it is really slow. My work computer has Windows, but that is meant for work. I’m about to start on something where at home it would be convenient to have easy access to Windows. I already have a href=”/tag/virtualbox/”>VirtualBox on my Mac for Ubuntu and Chrome OS.

I decided to go with Windows 8 because it is the future.  No time like the present to start getting used to that OS.  My theory is that it will less aggravating using it for little things rather than waiting for it to become my primary computer one day.

Plus you can test out Windows 8.1 Enterprise for free for up to 90 days.  PCWorld has a great article about it.  The install was between 30 and 60 minutes.

Once the VM was installed, it was fairly simple to get started:

  1. Download JDK from Oracle and install
  2. Click down arrow in bottom right corner to get list of apps
  3. Type “Command” to get the DOS prompt.
  4. Right click “Command Prompt” to pin to start menu so can get to it right away next time.
  5. Update path from control panel

Overall, my first impressions are that Windows 8 is very colorful.  And that if I didn’t know what to search for, I wouldn’t have found what I needed.

Second impressions

They moved everything.  I’m able to do what I need, but it feels like someone moved around all my furniture, hid some things and said “well, you just have to ask for them.”  I am so glad that I don’t have to do work on this thing at the moment.  And it feels like it takes a lot of clicks to do anything.

Communicating with the VM

You can copy/paste from VirtualBox.  I decided to use github instead though as I already have the code I want to try on Windows in a private github repository.  Github has a Windows client.  I’ve never used it so decided to download to see what it is like.  It is only 41.2MB, but downloaded really slowly.   The app provided a UI to clone a repository in github which it automatically checks out into Documents/github/repo-name.  The UI is nice, but I wound up using the git bash shell provided with the application.  Which meant it really only saved me some setup.

Other options would have been Dropbox or just use the copy/paste functionality from VirtualBox.  (I really didn’t want to do that for whole files.)

virtualbox between mac lion and ubuntu

I installed VirtualBox a few weeks ago.   A few wrinkles when actually using it.

Copy/paste

By default, you can’t copy/paste between your Mac and VirtualBox VM machine.  It’s easy to enable though:

  1. Devices > Install Guest Addons
  2. Wait a few minutes for a terminal window to open and install
  3. When prompted, press return to close terminal window
  4. Restart the VM
  5. Now copy and paste works naturally.
Keyboard shortcuts
On the Mac, you use command c to copy and on Ubuntu you use ctrl c.  It was a bit annoying to switch between the two frequently.  I don’t really have a good way of dealing with this other than press command c and wonder why nothing happens.  Ideas?
Command tab
I’m big on command tab.  The problem is that Virtualbox eats/disables it.  Which means every time I switched from my browser or Open Office to the VirtualBox install, it was awkward to get back.  I would up solving this by creating three desktops on Lion (spaces.)  One was VirtualBox Ubuntu Linux.  The second was the Open Office document with the book I was technical proofreading (Well Grounded Java Developer.)  The third was my browser/finder windows/etc.  This was helpful.  It let me three finger swipe as I was reading and command tab for the “little swaps” within my main desktop.  This fit my mental model well.  The only thing I didn’t like was that I had to put Open Office back in desktop #2 each time I opened a new chapter.