Elasticx on Amazon EC2 with Tears

Discussion in 'General' started by alprin, Sep 3, 2010.

  1. alprin

    Joined:
    Aug 31, 2010
    Messages:
    7
    Likes Received:
    0
    Hello, everybody.

    I'm trying to learn Elastix and also facing some lack of knowledge in centos. Spent several days trying to make a bootable ami on Amazon ec2.

    Here is system log:
    Code:
    Linux version 2.6.16-xenU (builder@xenbat.amazonsa) (gcc version 4.0.1 20050727 (Red Hat 4.0.1-5)) #1 SMP Mon May 28 03:41:49 SAST 2007
    
    BIOS-provided physical RAM map:
    
     Xen: 0000000000000000 - 000000006a400000 (usable)
    
    980MB HIGHMEM available.
    
    727MB LOWMEM available.
    
    NX (Execute Disable) protection: active
    
    IRQ lockup detection disabled
    
    Built 1 zonelists
    
    Kernel command line:  root=/dev/sda1 ro 4
    
    Enabling fast FPU save and restore... done.
    
    Enabling unmasked SIMD FPU exception support... done.
    
    Initializing CPU#0
    
    PID hash table entries: 4096 (order: 12, 65536 bytes)
    
    Xen reported: 2659.994 MHz processor.
    
    Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    
    Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    
    Software IO TLB disabled
    
    vmalloc area: ee000000-f53fe000, maxmem 2d7fe000
    
    Memory: 1718700k/1748992k available (1958k kernel code, 20948k reserved, 620k data, 144k init, 1003528k highmem)
    
    Checking if this processor honours the WP bit even in supervisor mode... Ok.
    
    Calibrating delay using timer specific routine.. 5322.30 BogoMIPS (lpj=26611506)
    
    Mount-cache hash table entries: 512
    
    CPU: L1 I cache: 32K, L1 D cache: 32K
    
    CPU: L2 cache: 6144K
    
    Checking 'hlt' instruction... OK.
    
    Brought up 1 CPUs
    
    migration_cost=0
    
    Grant table initialized
    
    NET: Registered protocol family 16
    
    Brought up 1 CPUs
    
    xen_mem: Initialising balloon driver.
    
    highmem bounce pool size: 64 pages
    
    VFS: Disk quotas dquot_6.5.1
    
    Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    
    Initializing Cryptographic API
    
    io scheduler noop registered
    
    io scheduler anticipatory registered (default)
    
    io scheduler deadline registered
    
    io scheduler cfq registered
    
    i8042.c: No controller found.
    
    RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
    
    Xen virtual console successfully installed as tty1
    
    Event-channel device installed.
    
    netfront: Initialising virtual ethernet driver.
    
    mice: PS/2 mouse device common for all mice
    
    md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
    
    md: bitmap version 4.39
    
    NET: Registered protocol family 2
    
    Registering block device major 8
    
    IP route cache hash table entries: 65536 (order: 6, 262144 bytes)
    
    TCP established hash table entries: 262144 (order: 9, 2097152 bytes)
    
    TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
    
    TCP: Hash tables configured (established 262144 bind 65536)
    
    TCP reno registered
    
    TCP bic registered
    
    NET: Registered protocol family 1
    
    NET: Registered protocol family 17
    
    NET: Registered protocol family 15
    
    Using IPI No-Shortcut mode
    
    md: Autodetecting RAID arrays.
    
    md: autorun ...
    
    md: ... autorun DONE.
    
    kjournald starting.  Commit interval 5 seconds
    
    EXT3-fs: mounted filesystem with ordered data mode.
    
    VFS: Mounted root (ext3 filesystem) readonly.
    
    Freeing unused kernel memory: 144k freed
    
    modprobe: FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    
    
    
    INIT: version 2.86 booting
    
    		Welcome to  CentOS release 5.5 (Final)
    		Press 'I' to enter interactive startup.
    modprobe: FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    
    
    Setting clock  (localtime): Fri Sep  3 22:57:52 MSD 2010 [  OK  ]
    
    Starting udev: [  OK  ]
    
    Loading default keymap (us): /etc/rc.d/rc.sysinit: line 396: /dev/tty0: No such file or directory
    [FAILED]
    
    Setting hostname localhost.localdomain:  [  OK  ]
    
    Checking filesystems
    Checking all file systems.
    [/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/sda1 
    /: clean, 88140/524288 files, 535516/1048576 blocks
    [  OK  ]
    
    Remounting root filesystem in read-write mode:  [  OK  ]
    
    Mounting local filesystems:  [  OK  ]
    
    Enabling local filesystem quotas:  [  OK  ]
    
    Enabling /etc/fstab swaps:  [  OK  ]
    
    INIT: Entering runlevel: 4
    
    Entering non-interactive startup
    Checking for hardware changes [  OK  ]
    
    Starting wanrouter:  
    ERROR: Wanpipe configuration file not found:
                   /etc/wanpipe/wanpipe1.conf
    
    [FAILED]
    
    Bringing up loopback interface:  [  OK  ]
    
    Starting auditd: modprobe: FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    
    
    
    [FAILED]
    
    Starting system logger: [  OK  ]
    
    Starting kernel logger: [  OK  ]
    
    Starting portmap: [  OK  ]
    
    FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    Starting NFS statd: [  OK  ]
    
    Starting RPC idmapd: FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    Error: RPC MTAB does not exist.
    Starting system message bus: [  OK  ]
    
    Mounting other filesystems:  [  OK  ]
    
    Starting dahdi:  Loading DAHDI hardware modules:
    FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
      wct4xxp:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
      opvxd115:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
      wcte12xp:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
      wct1xxp:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
      wcte11xp:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
      wctdm24xxp:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
      wcfxo:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
      wctdm:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
      wcb4xxp:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
      wctc4xxp:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
      xpp_usb:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
      opvxa1200:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
      ystdm8xx:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
      ystdm16xx:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
      ap400:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
      dahdi_dynamic_eth:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
      dahdi_dynamic_ethmf:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
      ax1600p:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
      zaphfc:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
      wcopenpci:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
      rxt1:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
      r1t1:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
      rcbfx:  FATAL: Could not load /lib/modules/2.6.16-xenU/modules.dep: No such file or directory
    [FAILED]
    
    
    Error: missing /dev/dahdi!
    [FAILED]
    
    Starting HAL daemon: [  OK  ]
    
    Starting sshd: [  OK  ]
    
    Starting xinetd: [  OK  ]
    
    Starting ntpd: [  OK  ]
    
    Starting MySQL:  [  OK  ]
    
    Importing cyrus-imapd databases: [  OK  ]
    
    Starting cyrus-imapd: [  OK  ]
    
    Password configuration already present.
    Starting postfix: [  OK  ]
    
    Starting httpd: [  OK  ]
    
    SETTING FILE PERMISSIONS Asterisk
    chown: cannot access `/dev/tty9': No such file or directory
    Permissions Asterisk OK
    Starting asterisk: Cannot find specified TTY (9)
    [FAILED]
    
    Starting crond: [  OK  ]
    
    Starting xfs: [  OK  ]
    
    Starting Elastix Update Helper: [  OK  ]
    
    Starting atd: [  OK  ]
    [  OK  ]
    
    Starting HylaFAX queue manager (faxq): [  OK  ]
    
    Starting HylaFAX server (hfaxd): [  OK  ]
    
    Starting IAXmodem: [  OK  ]
    
    Starting saslauthd: [  OK  ]
    
    
    
    
    STARTING ASTERISK
    Cannot find specified TTY (9)
    safe_asterisk: no process killed
    mpg123: no process killed
    
    -----------------------------------------------------
    Asterisk could not start!
    Use 'tail /var/log/asterisk/full' to find out why.
    -----------------------------------------------------
    
        c
    CentOS release 5.5 (Final)
    Kernel 2.6.16-xenU on an i686
    
    localhost login: 
    INIT: Id "2" respawning too fast: disabled for 5 minutes
    
    
    INIT: Id "3" respawning too fast: disabled for 5 minutes
    
    
    INIT: Id "4" respawning too fast: disabled for 5 minutes
    
    
    INIT: Id "5" respawning too fast: disabled for 5 minutes
    
    
    INIT: Id "6" respawning too fast: disabled for 5 minutes
    
    Can you please advise what to read or with what keywords to google? All that described now is errors with kernel or fstabs, but it is not this case.
     
  2. alprin

    Joined:
    Aug 31, 2010
    Messages:
    7
    Likes Received:
    0
    Forget to say that this is layout from amazon ami. It was done from vmware installation of Elestics 2.0.2 i386. And there are no errors in vmware while booting.
     
  3. gl1176

    Joined:
    Oct 5, 2009
    Messages:
    55
    Likes Received:
    0
    I don't know much on EC2 but looks like there are some restrictions on parts of the file system on this platform. A few things to try is to not load wanpipe or dahdi by issuing:

    chkconfig dahdi off
    chkconfig wanrouter off

    And then fix the tty issues by using:

    sed -i 's/TTY=9/#TTY=9/g' /usr/sbin/safe_asterisk
    sed -i 's/chown asterisk \/dev\/tty9/#chown asterisk \/dev\/tty9/g' /etc/init.d/asterisk
    sed -i 's/\/sbin\/start_udev/#\/sbin\/start_udev/g' /etc/rc.d/rc.sysinit
    sed -i 's/\/usr\/sbin\/fxotune -s/#\/usr\/sbin\/fxotune -s/g' /etc/rc.local
    sed -i 's/chown $AMPASTERISKUSER \/dev\/tty9/#chown $AMPASTERISKUSER \/dev\/tty9/g' /var/lib/asterisk/bin/freepbx_engine

    Then try a reboot and see if asterisk can run on the next boot.

    By disabling dahdi you will lose conferencing and any module in asterisk that needs conferencing like call park.

    I do not know how to get dahdi working in an EC2 machine, but there must be some posts somewhere that refer to this issue.

    Good luck.
     
  4. alprin

    Joined:
    Aug 31, 2010
    Messages:
    7
    Likes Received:
    0
    the way that was successful: 1) making clean centos installation on vmware. 2) making ami and starting it on Amazon. 3) rsync. And everything is working now. Thanks gl1176, for reply.
     
  5. nsmith

    Joined:
    Jul 31, 2010
    Messages:
    6
    Likes Received:
    0
    Re: Re:Elasticx on Amazon EC2 with Tears

    I'm trying to get Elastix 2.0.3 running on an EC2 machine as well. Which files/directories did you rsync to resolve these issues?
     
  6. medisoft

    Joined:
    Mar 23, 2011
    Messages:
    1
    Likes Received:
    0
    Re: Re:Elasticx on Amazon EC2 with Tears

    I'm testing Voxilla asterisk image with freepbx. It works under EC2, but I want to install elastix, and I don't know how. I tried rsyncing a full install to another volume, but that don't work because the missing kernel modules, also tried to install packages over that distro that is fedora 8 based, but i finished with an incomplete and almost unusable elastix... Some help please with what should we do.

    The next test I'm going to do is to resync all folders from a elastix install excluding the grub and boot files and the kernel modules, to allow the kernel and the dahdi module to be preserved.
     

Share This Page