Windows 8 and Ubuntu 12.10 on a Sony Vaio T13 laptop

I wanted to dual boot my new Sony Vaio T13 laptop with Windows 8 and Ubuntu 12.10, as it turned out I found it challenging to setup a true dual boot but I have a satisfactory solution.

This process is not straightforward because the T13 uses the Insyde H2O UEFI instead of a old-style BIOS furthermore since  Windows 8 was pre-installed SecureBoot is switched on, these factors mean that only the most recent, 64-bit version of Ubuntu (12.10) has any chance of installing. Also the T13 has no optical drive so I would need to boot from a USB memory stick.

I’ve installed various Linux distributions over the years but they tend not to be my primary OS, I considered three methods for this operation.

Method 1 – install using Wubi

The Wubi installer is a way of installing a Linux distribution effectively as an application in Windows but apparently this doesn’t work because of incompatibilities in with UEFI. I’ve used Wubi in the past – I like it because it reduces the chances of me rendering my Windows install inoperative via a partitioning mistake.

Method 2 – conventional dual boot installation

As of the 64-bit 12.10 version of Ubuntu it should be possible to do a fairly conventional dual boot installation of Ubuntu onto a machine preloaded with Windows 8. The instructions for this are here, essentially they are:

1. Download the appropriate ISO

2. Transfer the ISO to a USB stick using Universal USB Installer

3. Boot from the USB stick (Shift-restart in Windows 8 gives you lots of options for the necessary fiddling to achieve this)  and follow the installation instructions (here).

However when I did this I kept getting this error:

(initramfs) unable to find a medium containing a live file system.

This error persisted through various combinations of enabled/disabled SecureBoot and boot orderings. I don’t know why this doesn’t work, I suspect that the Universal USB Installer is not creating an appropriate boot device perhaps if I flagged the USB drive as legacy rather than UEFI it might work. I was feeling slightly nervous about this because there were some indications (here) that if I had succeeded in producing a new disk partition for Ubuntu then I may have lost my Windows partition! Doing clean installs of both Windows 8 and Ubuntu onto a machine looks like it might be a bit simper (here).

Maybe I should have followed the instructions here, the trick seems to be to create your Ubuntu partition using Windows 8 rather than trying to do it with the Ubuntu installer.

In some ways the problem here is finding an excess of instructions!

Method 3 – install on a virtual machine

Following a suggest on twitter my third method was to try installing Ubuntu onto a virtual machine inside Windows 8, if I’d have splashed out on Windows 8 Pro then I could have used Hyper-V as my virtual machine. However, I’m using VirtualBox. The instructions for installing Ubuntu inside VirtualBox  are here, I switched on hardware virtualization support which was disabled by default.

This worked pretty smoothly, you don’t even need to produce a USB stick from which to boot, simply mount the ISO you downloaded as a virtual optical drive in VirtualBox. After initial installation Ubuntu was rather slow and unresponsive, I think this might have been due to downloading updates but I’m not sure. The only problem was that Ubuntu inside the VirtualBox couldn’t display at full screen resolution. This problem should be fixed by installing “Guest Additions” – this is software that lives on the guest operating system (the one inside the VirtualBox) and helps it interface with the host operating system. You can install the Guest Additions from an ISO image supplied with VirtualBox, the instructions for this are here. I failed to do this by not reading the instructions, in particular I didn’t install Dynamic Kernel Module Support (DKMS) properly. This was a recoverable mistake though, I learnt here that I needed to do this commandline first:

sudo apt-get install build-essential linux-headers-$(uname -r)

and then I re-installed using this commandline:

sudo apt-get install virtualbox-guest-utils

And it worked nicely on rebooting the virtual machine. So now I have Ubuntu 12.10 running in a VirtualBox inside Windows 8 aside from a hint of the VirtualBox menu bar at the bottom of the screen I could just as well be dual booting. Theoretically I might experience reduced performance by not running Ubuntu natively but I have 8GB of RAM in my laptop and an i7 processor so I suspect this won’t be an issue.

Now my eyes have been opened to the magic of virtual machines I want to install more! Sadly Apple’s OS X is not supported for such ventures.

I don’t claim to be an expert in this sort of thing so any comments on my understanding and technique are welcome!

Update

The Ubuntu in the virtual machine doesn’t find my monitor resolution (1920×1080), so I apply this fix (link)

Also I use this technique, adding vboxvideo to modules, to improve performance (link).

Possibly I need to do this thing in the host machine (link):

VBoxManage setextradata global GUI/MaxGuestResolution any

10 comments

Skip to comment form

    • Suki Parwana on February 6, 2013 at 11:28 am

    Hi

    Nice post, ref your installing OSX in VritualBox – download and install the VritualBox Extension Pack, you should then be to allow EFI booting OS’es.

    Good Luck :)

    • on February 6, 2013 at 7:04 pm

    Thanks!

    It all seems such a hassle though, I’d also need to download an OS X ISO from dubious location…

    • Matthew on April 3, 2013 at 5:17 am

    Have EXACTLY this problem. Seriously annoyed at buying a $1000+ laptop then finding out a few weeks later that it can’t handle a simple native linux installation (have tried Fedora, Ubuntu, Arch etc).

    Almost considering craigslisting the laptop….

      • on April 3, 2013 at 7:32 pm

      If you’re keen on a native Linux install I’d try partitioning the drive first using Windows then the 64bit Ubuntu 12.10 installer should work. I didn’t do this because I use Windows most and was happy with Ubuntu in Virtual Box. I think you’d have the same problem with any system with Windows 8 pre-installed.

      I find I’m frequently in the position with technology that I wished I googled before purchase!

    • Tj on April 8, 2013 at 5:19 pm

    Be careful when partitioning windows 8 drives on the sony at least. I can’t access Windows 8 because partitioning C:\ caused some error and it wont boot anymore.

    • Alex on April 11, 2013 at 10:46 pm

    Hi,
    Im considering to buy Sony Vaio T 13 ultrabook and thinking of two options:
    1. installing Ubuntu (or other linux) with Win 8 dual boot, as in the instructions,
    2. getting rid of Windows and installing Linux only – will this work well on this computer? Would you recommend installing then in Legacy Mode or UEFI?
    I dont really use Windows, so I prefer the second option.
    Thanks!

      • on April 12, 2013 at 10:20 am

      Alex – I wouldn’t turn to me for advice on Option 2 since it isn’t what I did and you starting point is different to mine! If you really want a laptop with Linux as the primary OS, I’d go seek advice of people who have done this – it may be that other brands are better for this and I’m fairly sure your life would be easier if you bought a laptop with Windows 7 pre-installed rather than Windows 8.

      I like my Sony Vaio but if your OS doesn’t support touch then you’re paying an extra ~£100 for something you’ll never use.

        • Alex on April 12, 2013 at 12:04 pm

        Thank you Ian!
        The point is there is really hard to find good laptop with Win 7 this days, the one that has new generation proc. etc. Even harder one with Linux pre-installed. (Zareason dont ship to Europe and Dell XPS with Ubuntu are much more expensive…)
        Anyway, thank you for good instructions, probably I will go for Ubuntu 12.10 along with Win8.

    • Juanjo on August 5, 2013 at 3:14 pm

    Hi guys,

    i have bought a T13 laptop (Sony Vaio SVT1313M) but im unable to install it, same problem as yours… I have tried fedora, ubuntu, mint… without any luck……..

    :(((((((((((((((((((

    1. VirtualBox works OK for occasional use. I think the route to successfully dual booting is to repartition your drive before trying to install Ubuntu, I didn’t proceed down this route because there was some risk of losing my Windows 8 install and running Ubuntu natively wasn’t that important.

Comments have been disabled.