Skip to end of metadata
Go to start of metadata

Why would you do that?

In all honestly, if you have the choice, don't! VMware Fusion / Workstation / ESXi is a far better platform to run a SmartOS VM on.

In my case, I am away from home a lot and I do not have access to my normal workstation. I do have a NAS running OmniOS which is on all the time. I tried it before but always abandoned the idea. But I recently got it to work with a few caveats.

Caveats

caveat more information
no ipv6 due to a bug in upstream illumos vnic loop back broadcast traffic, this included ipv6 neighbor discovery
no complex cpu topology passing ''-smp 4'' works, passing ''-smp 4,sockets=1,cores=2,threads=2'' makes illumos kernel barf
no vioif we're stuck with e1000 nic emulation which is not the fastest

Setup

Prerequisites

prereq notes
OmniOS r151012 other versions should work too, but untested by me
kvmadm available in obd repository (mostly to make things easier to manage)

Adding the additional repository

Installing required packages

Creating the VM with kvmadm

substitude your own pool and paths below (my VM is called muon)
muon.json

Getting networking to work in your zones

This is the real critical part, if you simple boot the VM as is, you will have networking in SmartOS's Global Zone.
Networking in zones will not work!

This is because a vnic only allows traffic form it's MAC to make it up the stack.

Retrieve the mac from your recently created zone

If you have more than one NIC in a zone, make sure to get all the MACs.
SmartOS Global Zone

Updating secondary-macs link property for your SmartOS VM

Make sure to include all MACs here.
OmniOS Global Zone

Your zones should now have network connectivity.

Managing the VM

Starting the VM

Stopping the VM

Connecting to the VGA console

Connecting to the Serial console

Connecting to the monitor console

Normal there is no need to view this, but it can be handy for debugging
Labels:
unsupported unsupported Delete
omnios omnios Delete
kvm kvm Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.