Wednesday, February 26, 2014

Fifo: vm reported as "provisioning", but it is false

Fifo: https://project-fifo.net

Why a VM status is reported as "Provisioning (Running)" even if it is already provisioned, and it is (only) running?




<killfill> that's because fifo knows if a vm is provisioning if the file 'provisioning' exists.
<killfill> Probably when creating the VM, the tools didn't wipe that file
<killfill> or maybe because you created it manually.. :P
<killfill> it's in /zones/:uuid/root/svc/ something like that.
<killfill> /zones/<uuid>/root/var/svc/provisioning


So, rm /zones/<uuid>/root/var/svc/provisioning
Et voilĂ .

Friday, February 21, 2014

SmartOS: add (modify) the gateway to a zone

I often forget to add the gateway to a new created zone.

So, get the nic MAC address.

vmadm get zone-uuid | json -a nics.0.mac

52:d9:d7:ab:c7:56

Create a file, like /var/tmp/updategw.json

{
   "update_nics": [
      {
         "mac": "52:d9:d7:ab:c7:56",
         "gateway": "192.168.0.1"
      }
   ]
}


Stop the zone, then issue an update.

vmadm update zone-uuid < /var/tmp/updategw.json

Verify.

vmadm get <zone-uuid> | json -a nics.0

Start the zone.


Monday, February 3, 2014

cisco vpn client and windows 8

So, the Cisco VPN client is not compatible with Windows 8. At least you must change various registry keys (I don't know).

A valid alternative is Shrew Soft VPNCLIENT

https://www.shrew.net/download/vpn

The Standard installation is free to use even for commercial use.

Map sd names to Solaris disk names

Map sd names to Solaris (SmartOS, Openindiana) disk names

paste -d= <(iostat -x | awk 'NR>2{print $1}') <(iostat -nx | awk 'NR>2{print "/dev/dsk/"$11}')

https://stackoverflow.com/questions/555427/map-sd-sdd-names-to-solaris-disk-names

watchman under SmartOS

"A file watching service.
Purpose
Watchman exists to watch files and record when they actually change. It can also trigger actions (such as rebuilding assets) when matching files change."
https://github.com/facebook/watchman

You can find pkgsrc definitions, useful to build the package under SmartOS (pkgsrc on SmartOS - zone creation and basic builds) and a binary package to be installed using pkg_add

pkg_add watchman-2.9.1nb2.tgz

This is the link: https://github.com/alcir/watchman-pkgsrc