"It's not what you can do, it's what you can get done."

Monday, November 14, 2016

SmartOS native zone rename

SmartOS hostname rename:

(from Bob to Alice)

vmadm get 12345678-e0fa-c099-b6f0-ead8e357826d | grep bob
"alias": "bob",
  "hostname": "bob-server",
vmadm update 12345678-e0fa-c099-b6f0-ead8e357826d hostname=alice-server
vmadm update 12345678-e0fa-c099-b6f0-ead8e357826d alias=alice

To actually rename, within the zone, edit:

/etc/nodename
/etc/hosts
/etc/hostname.[interface]  (e.g. /etc/hostname.net0)


No comments:

Post a Comment