A while back, Canonical released an experimental Ubuntu Touch emulator running Unity 8 and Mir. Back then, there were a few bugs, including a nasty one on 64bit that could break the system and since they were fixed, I though I’d write an article on how to properly install and use the Ubuntu Touch Emulator in Ubuntu 14.04, 13.10 and 12.04.
(ARM instance; direct video link)
(x86 instance; direct video link)
sudo add-apt-repository ppa:phablet-team/tools sudo apt-get update sudo apt-get install ubuntu-emulator
If you’ve installed an older version of Ubuntu Emulator, also run an upgrade:
sudo apt-get upgrade
Creating and running instances
1. The first thing you need to do is create a new instance – we’ll call it “UbuntuTouch” in the commands below:
Create an ARM instance:
sudo ubuntu-emulator create UbuntuTouch --channel=ubuntu-touch/utopic-proposed
To create an Ubuntu Touch Emulator x86 instance, use the following command:
sudo ubuntu-emulator create UbuntuTouch –arch=i386 –channel=ubuntu-touch/utopic-proposed
The current “stable” image doesn’t seem to work, that’s why I’ve added the Utopic proposed channel for the image in the commands above.
On Ubuntu 12.04, you may get the following error:
Error while converting ~/.local/share/ubuntu-emulator/UbuntuTouch/system.img: Unknown option 'compat' qemu-img: Invalid options for file format 'qcow2'.
2. Then, run the new instance by using the following command:
ubuntu-emulator run UbuntuTouch
The first time you run the emulator, the boot process will take quite a while. When it finishes booting, a shell with Ubuntu Touch will start, asking you to enter the username and password:
3. Optional: change the Ubuntu Touch Emulator size:
|Ubuntu Touch Emulator with a 0.7 scale on my 1920×1080 monitor.|
ubuntu-emulator run --scale 0.5 UbuntuTouch
- the downloaded images are stored under ~/.cache/ubuntuimages
- the images are stored under ~/.local/share/ubuntu-emulator
To delete an Ubuntu Touch Emulator instance, use the following command:
sudo ubuntu-emulator destroy UbuntuTouch
Creating / restoring snapshots
ubuntu-emulator snapshot --create=SNAPSHOT1 UbuntuTouch
Then, when you wish to restore this snapshot, use:
ubuntu-emulator snapshot --revert=SNAPSHOT1 UbuntuTouch
You can also use “–revert-pristine” to revert to the originally created snapshot.