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)
(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)
Comments
Post a Comment