Quantcast
Channel: Zenoss Community : Popular Discussions - Forums
Viewing all articles
Browse latest Browse all 270

Quick start: Hyper-V/Centos 6.3/Zenos Core 4.2.0 sp 1

$
0
0

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

  1. Get CentOS-6.3-x86_64-LiveCD.iso from one of the mirrors at http://isoredirect.centos.org/centos/6/isos/x86_64/
  2. Get Linux IC v3.4.iso from http://www.microsoft.com/en-us/download/details.aspx?id=34603
  3. Create hyper-v VM (I set it to Other Linux (64 bit) but that may not be necessary)
  4. Use non-legacy network card.
  5. This guide will assume you are making your VM visible on your internet network (bridged).
  6. Change to Connected to and choose the appropriate settings for your host network config
  7. Attach CentOS-6.3-x86_64-LiveCD.iso to the virtual CD/DVD drive

 

 

B) Install CentOS and Hyper-V Integration

  1. Power on, connect and login as root
  2. Ctrl-Alt-D to get to desktop
  3. run Install LiveCD to Hard Drive
  4. Alt-F1, tab over to System -> Shutdown (not reboot)
  5. Attach Linux IC v3.4.iso to the virtual CD/DVD drive
  6. Power on and connect
  7. Finish setup (and reboot if it makes you)
  8. Alt-F1, System Tools -> Terminal
  9.   cd /media/CDROM/RHEL63
  10.   rpm -Uvh --nodeps kmod-microsoft-hyper-v-rhel63.3.4-1.20120727.x86_64.rpm
  11.   rpm -Uvh –-nodeps microsoft-hyper-v-rhel63.3.4-1.20120727.x86_64.rpm
  12.   shutdown -h 0
  13. Remove the ISO from the VM
  14. Power on, connect and login as root
  15. Mouse should work now
  16. Go to System -> Preferences -> Network Connections
  17. You should see Auto eth0.  You can now change it to a static ip if necessary.
  18. Open a terminal window and type ifconfig to see your network card.
  19. You may need to issue "service network restart" to apply your changes.
  20. 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

  1. Login as root
  2. Open a Terminal window
  3.   yum -y remove mysql-libs
  4.   wget --no-check-certificate https://raw.github.com/zenoss/core-autodeploy/master/core-autodeploy-4.2.sh
  5.   chmod +x core-autodeploy-4.2.sh
  6.   ./core-autodeploy-4.2.sh
  7.   iptables -I INPUT 1 -p tcp --dport 8080 -j ACCEPT
  8.   iptables -I INPUT 1 -p tcp --dport memcache -j ACCEPT
  9.   iptables -I INPUT 1 -p udp --dport memcache -j ACCEPT
  10.   iptables -I INPUT 1 -p tcp --dport syslog -j ACCEPT
  11.   iptables -I INPUT 1 -p tcp --dport snmptrap -j ACCEPT
  12. And if you want ssh (you can do this earlier in the process as well):
  13.   iptables -I INPUT 1 -p tcp --dport ssh -j ACCEPT
  14.   Go to System -> Administration -> Services and enable and then start sshd
  15.   It's a lot easier to ssh (PuTTY is a good, free ssh client) than to use the GUI for some of the following.
  16. Finish with:
  17.   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

  1. Login as root
  2. Issue the following commands via terminal or ssh (answer "y" to all prompts):
  3.   yum --enablerepo=epel install git
  4.   yum install patch
  5.   yum install unzip
  6.   su zenoss
  7.   cd /var/tmp
  8.   git clone git://github.com/zenoss/CoreServicePacks.git
  9.   cd CoreServicePacks/4.2.0-SP1
  10.   ./apply.sh
  11.   zenoss start

 

E) Miscellaneous

  1. Login as root
  2. Open up snmp so you can monitor the zenoss server's performance:
  3.   Edit /etc/snmp/snmpd.conf
  4.   Comment out the following lines by putting a # in front of them:
  5.     view    systemview    included    .1.3.6.1.2.1.1
  6.     view    systemview    included    .1.3.6.1.2.1.25.1.1
  7.   Add this line at the end of the file:
  8.     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.


Viewing all articles
Browse latest Browse all 270

Trending Articles