Bug #1441

Persistency problems in ESX >= 5.x Filesystem - Configuration lost on restart

Added by Tino Vázquez almost 9 years ago. Updated almost 9 years ago.

Status:ClosedStart date:09/06/2012
Priority:NormalDue 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
--

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

Revision 9c4027e6
Added by Tino Vázquez almost 9 years ago

feature #1441: Add extra line at the end of tm_vmwarerc

Revision e63a0893
Added by Tino Vázquez almost 9 years ago

feature #1441: Add stub for VMFS datastore

Revision 3e19fc72
Added by Tino Vázquez almost 9 years ago

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:

  1. - 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
  2. <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.

Also available in: Atom PDF