Skip to content

Instantly share code, notes, and snippets.

@earnubs
Last active August 13, 2018 21:09
Show Gist options
  • Save earnubs/6fafd8e9b49b5f022c12 to your computer and use it in GitHub Desktop.
Save earnubs/6fafd8e9b49b5f022c12 to your computer and use it in GitHub Desktop.
How to setup Ubuntu Core 16 for developers on OS X with VMWare Fusion

Creating an Ubuntu Core Series 16 image

On VMWare fusion, running an Ubuntu Xenial VM, which has a copy of your OS X public SSH key -- the script to build the image will add it to the generated image -- grab the script at https://github.com/zyga/devtools/blob/master/ubuntu-image to create a new image:

./ubuntu-image.sh --developer-mode pc

Convert .img to .vmdk

qemu-img convert pc-devel.img -O vmdk snappy.vmdk

Creating the Ubuntu Core VM from .vmdk

  • Copy snappy.vmdk to your OS X host
  • In the VMware Fusion menu > New... > More Options > Create a custom virtual machine
  • Select Ubuntu 64-bit as OS
  • Use an existing virtual disk > Select 'snappy.vmdk' as disk > Continue > Customize Settings > Save
  • In the VM setting panel, select the Hard Disk:
    • Advanced options
    • Set 'Bus type': IDE
    • Apply settings changes
  • Start VM

You should now have an Ubuntu Core VM with you SSH key already added, login with user/pass 'ubuntu/ubuntu' in the VMWare console and get the IP address, then you can SSH to that address as user ubuntu and test sideloaded snaps.

@earnubs
Copy link
Author

earnubs commented May 16, 2016

findfs: unable to resolve 'LABEL=writable'

Don't let vmware set the HDD bus to SCSI, set it to IDE.
In older versions of Fusion (<8) this keeps resetting, have no fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment