# \[SOLVED\] Can't make asterisk 1.8 to run on VM with CentOS 6

**URL:** <https://community.asterisk.org/t/solved-cant-make-asterisk-1-8-to-run-on-vm-with-centos-6/40776>\
**Category:** Asterisk Support\
**Created:** [October 18, 2012, 2:57pm UTC](https://community.asterisk.org/t/solved-cant-make-asterisk-1-8-to-run-on-vm-with-centos-6/40776 "2012-10-18T14:57:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stanimir\_ss](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@stanimir\_ss](https://community.asterisk.org/u/stanimir_ss)\
**Post date:** [October 18, 2012, 2:57pm UTC](https://community.asterisk.org/t/solved-cant-make-asterisk-1-8-to-run-on-vm-with-centos-6/40776/1 "2012-10-18T14:57:45Z")

</div>

Hello guys,

I’ve installed many Asterisk (1.2, 1.4, 1.6 and 1.8) servers on real machines running CentOS 5.4.  
Now, it’s my first try to install Asterisk 1.8.17.0 on a VM running CentOS 6.3

- When I run service asterisk start there is no output and asterisk doesn’t start.
- When I try to run it manually with /usr/sbin/safe\_asterisk, the output is as follows:

> [@](#):
>
> Cannot find specified TTY (9)

- Then I saw that this can be fixed if I comment the row for TTY in safe\_asterisk. After doing that, the output of safe\_asterisk is:

> [@](#):
>
> /usr/sbin/safe\_asterisk: line 145: 9808 Illegal instruction (core dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS}  
> Asterisk ended with exit status 132  
> Asterisk exited on signal 4.  
> cat: /var/run/asterisk/asterisk.pid: No such file or directory  
> Automatically restarting Asterisk.

I’m stuck here and I don’t know what else to try. I don’t have asterisk log file neither as it doesn’t start at all.

Processor info:

> [@](#):
>
> [root@pbx ~]# lscpu  
> Architecture: i686  
> CPU op-mode(s): 32-bit, 64-bit  
> Byte Order: Little Endian  
> CPU(s): 0  
> Vendor ID: GenuineIntel  
> CPU family: 6  
> Model: 58  
> Stepping: 9  
> CPU MHz: 3292.697  
> BogoMIPS: 6584.82  
> Virtualization: VT-x

> [@](#):
>
> [root@pbx ~]# cat /proc/cpuinfo  
> processor : 0  
> vendor\_id : GenuineIntel  
> cpu family : 6  
> model : 58  
> model name : Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz  
> stepping : 9  
> cpu MHz : 3292.697  
> cache size : 8192 KB  
> physical id : 0  
> siblings : 8  
> core id : 0  
> cpu cores : 4  
> apicid : 0  
> fpu : yes  
> fpu\_exception : yes  
> cpuid level : 13  
> wp : yes  
> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm constant\_tsc nonstop\_tsc arat pni monitor ds\_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4\_1 sse4\_2 popcnt lahf\_lm  
> bogomips : 6585.39  
> clflush size : 64  
> cache\_alignment : 64  
> address sizes : 36 bits physical, 48 bits virtual  
> power management: [8]
> 
> \<same for processor 1\>

When I run asterisk’s ./configure it ends with:

> [@](#):
>
> configure: Package configured for:  
> configure: OS type : linux-gnu  
> configure: Host CPU : i686  
> configure: build-cpu:vendor:os: i686 : pc : linux-gnu :  
> configure: host-cpu:vendor:os: i686 : pc : linux-gnu :

You can find the configure.log here [http://www.sendspace.com/file/lqx52c](http://www.sendspace.com/file/lqx52c).  
(Click “Click here to start download from sendspace”)

Your help will be much appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![david55](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@david55](https://community.asterisk.org/u/david55)\
**Post date:** [October 18, 2012, 3:03pm UTC](https://community.asterisk.org/t/solved-cant-make-asterisk-1-8-to-run-on-vm-with-centos-6/40776/2 "2012-10-18T15:03:36Z")

</div>

Other people have reported problems with illegal instructions when using VMs. I’m not sure it was here or on the issue tracker, but searching for illegal instruction and virtual machine ought to find something.

I assume the VM in question doesnt have any consoles at all.

I’m still not convinced that it is sensible to run real time software on virtual machines.

---

<div class="post-metadata">

**Author:** ![stanimir\_ss](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@stanimir\_ss](https://community.asterisk.org/u/stanimir_ss)\
**Post date:** [October 18, 2012, 3:33pm UTC](https://community.asterisk.org/t/solved-cant-make-asterisk-1-8-to-run-on-vm-with-centos-6/40776/3 "2012-10-18T15:33:52Z")

</div>

Thanks for pointing me the direction for the search! I knew there was something wrong with the processor or similar, but this time I found a solution posted in the asterisk issue tracker. Seems that a workaround is to remove the flag BUILD\_NATIVE when calling make menuselect. After recompiling it’s running ok, the only tiny thing that left is that when I call “service asterisk start” it doesn’t show “ok” but it starts it. If I call “service asterisk stop” it properly shows “ok”

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [November 7, 2012, 10:07pm UTC](https://community.asterisk.org/t/solved-cant-make-asterisk-1-8-to-run-on-vm-with-centos-6/40776/4 "2012-11-07T22:07:15Z")

</div>

> [@stanimir\_ss](#):
>
> Thanks for pointing me the direction for the search! I knew there was something wrong with the processor or similar, but this time I found a solution posted in the asterisk issue tracker. Seems that a workaround is to remove the flag BUILD\_NATIVE when calling make menuselect. After recompiling it’s running ok, the only tiny thing that left is that when I call “service asterisk start” it doesn’t show “ok” but it starts it. If I call “service asterisk stop” it properly shows “ok”

Where did you remove the flag BUILD\_NATIVE?  
EDIT: Found it, but it didn’t work.
