Bug #1441
Persistency problems in ESX >= 5.x Filesystem - Configuration lost on restart
Status: | Closed | Start date: | 09/06/2012 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Tino Vázquez | % Done: | 0% | |
Category: | Documentation | |||
Target version: | Release 3.8 | |||
Resolution: | fixed | Pull request: | ||
Affected Versions: | OpenNebula 3.6 |
Description
From mpatton@inforelay.com
--
per http://opennebula.org/documentation:rel3.6:evmwareg there are 2 recommendations to make these binaries setuid/setgid root. Now I can readily guess that the former is so that the command can run unimpeded on all mounted filesystems which are naturally owned root:root. And the latter is because 'vim-cmd' will need root to change the host environment be it mounts, devices, adn interfaces.
One problem. The changes don't survive a reboot you know... (esxi)
I meant to include this for further reading.
http://www.virtuallyghetto.com/2011/08/how-to-persist-configuration-changes-in.html
---
Associated revisions
feature #1441: Add extra line at the end of tm_vmwarerc
feature #1441: Add stub for VMFS datastore
feature #1441: Add stat and vmfs datastore to install.sh
History
#1 Updated by Ricardo Duarte almost 9 years ago
Should be enough to add the following to /etc/rc.local, on the ESXi host:
- - opennebula -
mkdir -p /var/tmp/one
chown -R oneadmin:oneadmin /var/tmp/one
mkdir -p /var/lib/one/datastores
chown -R oneadmin:oneadmin /var/lib/one/
ln -s /vmfs/volumes/0 /var/lib/one/datastores/0
ln -s /vmfs/volumes/1 /var/lib/one/datastores/1 - <link the rest of your datastores here as well>
mkdir /etc/ssh/keys-oneadmin
chmod 755 /etc/ssh/keys-oneadmin
echo "<id_pub.rsa content>" > /etc/ssh/keys-oneadmin/authorized_keys
chown oneadmin:oneadmin /etc/ssh/keys-oneadmin/authorized_keys
chmod +s /sbin/vmkfstools
#2 Updated by Tino Vázquez almost 9 years ago
- Assignee set to Tino Vázquez
#3 Updated by Tino Vázquez almost 9 years ago
- Category set to Documentation
- Status changed from New to Closed
- Resolution set to fixed
Created page in the documentation, thanks for the feedback.