When I wanted to make the jump from the demo VM to a real Hyper-V VM, I found that the instructions were a bit all over the place and sometimes outdated. I want to write up a nice one, but until then I'm putting a more basic walkthrough here. Hope it helps someone. While I put the exact versions and environment, some of this is probably applicable to slightly different ones.
Installing a Centos 6.3/Zenoss Core 4.2.0 sp 1 VM from scratch on Windows Server 2008 R2 (System Center 2012)
A) Prepare the VM
- Get CentOS-6.3-x86_64-LiveCD.iso from one of the mirrors at http://isoredirect.centos.org/centos/6/isos/x86_64/
- Get Linux IC v3.4.iso from http://www.microsoft.com/en-us/download/details.aspx?id=34603
- Create hyper-v VM (I set it to Other Linux (64 bit) but that may not be necessary)
- Use non-legacy network card.
- This guide will assume you are making your VM visible on your internet network (bridged).
- Change to Connected to and choose the appropriate settings for your host network config
- Attach CentOS-6.3-x86_64-LiveCD.iso to the virtual CD/DVD drive
B) Install CentOS and Hyper-V Integration
- Power on, connect and login as root
- Ctrl-Alt-D to get to desktop
- run Install LiveCD to Hard Drive
- Alt-F1, tab over to System -> Shutdown (not reboot)
- Attach Linux IC v3.4.iso to the virtual CD/DVD drive
- Power on and connect
- Finish setup (and reboot if it makes you)
- Alt-F1, System Tools -> Terminal
- cd /media/CDROM/RHEL63
- rpm -Uvh --nodeps kmod-microsoft-hyper-v-rhel63.3.4-1.20120727.x86_64.rpm
- rpm -Uvh –-nodeps microsoft-hyper-v-rhel63.3.4-1.20120727.x86_64.rpm
- shutdown -h 0
- Remove the ISO from the VM
- Power on, connect and login as root
- Mouse should work now
- Go to System -> Preferences -> Network Connections
- You should see Auto eth0. You can now change it to a static ip if necessary.
- Open a terminal window and type ifconfig to see your network card.
- You may need to issue "service network restart" to apply your changes.
- You should now be able to ping and be pinged.
CentOS 6.3 should be installed properly. Now might be a good time to shut down and make a checkpoint/backup!
C) Install Zenoss 4.2.0
- Login as root
- Open a Terminal window
- yum -y remove mysql-libs
- wget --no-check-certificate https://raw.github.com/zenoss/core-autodeploy/master/core-autodeploy-4.2.sh
- chmod +x core-autodeploy-4.2.sh
- ./core-autodeploy-4.2.sh
- iptables -I INPUT 1 -p tcp --dport 8080 -j ACCEPT
- iptables -I INPUT 1 -p tcp --dport memcache -j ACCEPT
- iptables -I INPUT 1 -p udp --dport memcache -j ACCEPT
- iptables -I INPUT 1 -p tcp --dport syslog -j ACCEPT
- iptables -I INPUT 1 -p tcp --dport snmptrap -j ACCEPT
- And if you want ssh (you can do this earlier in the process as well):
- iptables -I INPUT 1 -p tcp --dport ssh -j ACCEPT
- Go to System -> Administration -> Services and enable and then start sshd
- It's a lot easier to ssh (PuTTY is a good, free ssh client) than to use the GUI for some of the following.
- Finish with:
- service iptables save
Zenoss 4.2.0 should be installed properly. Now might be another good time to shut down and make a checkpoint/backup!
D) Update to 4.2.0 sp 1
- Login as root
- Issue the following commands via terminal or ssh (answer "y" to all prompts):
- yum --enablerepo=epel install git
- yum install patch
- yum install unzip
- su zenoss
- cd /var/tmp
- git clone git://github.com/zenoss/CoreServicePacks.git
- cd CoreServicePacks/4.2.0-SP1
- ./apply.sh
- zenoss start
E) Miscellaneous
- Login as root
- Open up snmp so you can monitor the zenoss server's performance:
- Edit /etc/snmp/snmpd.conf
- Comment out the following lines by putting a # in front of them:
- view systemview included .1.3.6.1.2.1.1
- view systemview included .1.3.6.1.2.1.25.1.1
- Add this line at the end of the file:
- view systemview included .1
Zenoss 4.2.0 sp 1 should be installed properly. You know what it's a good time for by this point.