SmartOS under ESXi thoughts

Discussion in 'Solaris, Nexenta, OpenIndiana, and napp-it' started by moxford, Oct 18, 2017.

  1. moxford

    moxford Member

    Joined:
    Apr 24, 2017
    Messages:
    34
    Likes Received:
    7
    Hi all.

    Does anyone see an issue with running SmartOS under ESXi, with the ZFS iSCSI ported back to ESXi to store the other VMs? I want to stay with Solarish for a mature ZFS option, which limits my options to SmartOS/OI at this point in time. I've heard of other distros doing this via iSCSI, but SmartOS installations seem a bit more difficult to find.

    Also, SmartOS makes a statement in which they say you can run Zones (not KVM though) even if SmartOS is virtualized, but the context was not in terms of ESXi proper but instead under Fusion 5+. Has anyone ever played around with this config and, if so, what did you run into?
    Ref: SmartOS as a VMware Guest - SmartOS Documentation - SmartOS Wiki

    Thanks!

    -mox
     
    #1
  2. whitey

    whitey Moderator

    Joined:
    Jun 30, 2014
    Messages:
    2,764
    Likes Received:
    858
    I ran a virtualizaed on top of vSphere 6.0 SmartOS setup for a bit, LX-branded containers worked well, KVM and all running a 64-bit windows VM (long as you pass through vt-X bit to the Vm through the vSphere web client). Only thing that bothered me a bit was the non-persistence aspect but I understand their design principals/goals and targeted use case and there are ways to deal w/ the 'nuances' :-D
     
    #2
    moxford likes this.
  3. chilipepperz

    chilipepperz Active Member

    Joined:
    Mar 17, 2016
    Messages:
    204
    Likes Received:
    61
    Wouldn't you want SmartOS to be the hypervisor?
     
    #3
    animaliaparadoxa and cperalt1 like this.
  4. whitey

    whitey Moderator

    Joined:
    Jun 30, 2014
    Messages:
    2,764
    Likes Received:
    858
    Ideally sure but I was just testing...amazing what you can do w/ nested virtualization
     
    #4
  5. chilipepperz

    chilipepperz Active Member

    Joined:
    Mar 17, 2016
    Messages:
    204
    Likes Received:
    61
    Testing ah!
     
    #5
  6. cperalt1

    cperalt1 Active Member

    Joined:
    Feb 23, 2015
    Messages:
    177
    Likes Received:
    49
    Persistence can be had by storing scripts inside of /opt and creating SMF scripts that kick off on boot.

    hosting iscsi on smartos

    Code:
    #!/bin/bash -x
    
    #basesseed on: http://superuser.com/questions/386506/hosting-iscsi-on-smartos
    
    GROUPNAME=YOURGROUP
    TARGETNAME=WhateverTargetName(Look to site for example)
    
    LOCAL_ADDRESS=YourIP
    
    svcadm enable stmf
    svcadm enable -r svc:/network/iscsi/target:default
    sbdadm create-lu /dev/zvol/rdsk/zones/iscsi
    GUID=$(sbdadm list-lu | tail -n 1 | cut -f1 -d' ')
    stmfadm add-view $GUID
    itadm create-tpg "$GROUPNAME" $LOCAL_ADDRESS
    itadm create-target -t "$GROUPNAME" -n $TARGETNAME
     
    #6
    moxford likes this.
  7. moxford

    moxford Member

    Joined:
    Apr 24, 2017
    Messages:
    34
    Likes Received:
    7
    Excellent information, thank you!!
     
    #7
  8. turnkeyfx

    turnkeyfx New Member

    Joined:
    Oct 22, 2017
    Messages:
    3
    Likes Received:
    0
    Can anyone tell me what is hypervisor
     
    #8
  9. gea

    gea Well-Known Member

    Joined:
    Dec 31, 2010
    Messages:
    2,261
    Likes Received:
    750
Similar Threads: SmartOS under
Forum Title Date
Solaris, Nexenta, OpenIndiana, and napp-it SMB3 development on Illumos (NexentaStor, OmniOS, OpenIndiana and SmartOS) Aug 10, 2019
Solaris, Nexenta, OpenIndiana, and napp-it SmartOS and Intel DC P4800X Jul 5, 2018
Solaris, Nexenta, OpenIndiana, and napp-it Triton (SmartOS) / Plex / Low Power Media Server Build Dec 28, 2016
Solaris, Nexenta, OpenIndiana, and napp-it Joyent Triton/SDC/SmartOS discussion Nov 8, 2016
Solaris, Nexenta, OpenIndiana, and napp-it OmniOS now includes LX support (from Joyent/SmartOS) Oct 7, 2016

Share This Page