VMWare_compute_resources

Compute ressource require foreman 1.0: Compute Resources

Vmware Integration

  1. list VM's
  2. View VM graphical console
  3. as of Foreman 1.1 you can now create virtual machines directly within foreman

Requirements

  1. foreman 1.0
  2. foreman-vmware
  3. ESX or VCenter

Debian squeeze Instructions (daily package)

  1. configure foreman debian daily package
    echo "deb http://deb.theforeman.org/ nightly main" > /etc/apt/sources.list.d/foreman.list
    wget -q http://deb.theforeman.org/foreman.asc -O- | apt-key add -
    apt-get update
    
  1. Install (adjust packages as needed)
    Verify you already have follow foreman 1.0 Install: Debian-Ubuntu installation by packages

then:

apt-get install foreman-vmware foreman-libvirt

In ESX server

To allow console view you need to open port on ESX firewall
Range port Is 5910-5930.

ssh root@esx-srv
vi /etc/vmware/firewall/vnc.xml

File /etc/vmware/firewall/vnc.xml:

<ConfigRoot>
<service id='0032'>
 <id>VNC</id>
 <rule id = '0000'>
  <direction>inbound</direction>
  <protocol>tcp</protocol>
  <porttype>dst</porttype>
  <port>
   <begin>5910</begin>
   <end>5930</end>
  </port>
 </rule>
 <enabled>true</enabled>
</service>
</ConfigRoot>

  • Apply firewall rule
    esxcli network firewall refresh
    esxcli network firewall ruleset list |grep VNC
    
  • Make the rule persistant
    cp /etc/vmware/firewall/vnc.xml /vmfs/volumes/datastore1/vnc.xml
    vi /etc/rc.local
    # At end of file:
    cp /vmfs/volumes/datastore1/vnc.xml /etc/vmware/firewall/
    esxcli network firewall refresh
    

Also available in: HTML TXT