VMWare_compute_resources¶
Compute ressource require foreman 1.0: Compute Resources
Vmware Integration¶
- list VM's
- View VM graphical console
- as of Foreman 1.1 you can now create virtual machines directly within foreman
Requirements¶
- foreman 1.0
- foreman-vmware
- ESX or VCenter
Debian squeeze Instructions (daily package)¶
- 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
- 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
