I have put together a install guide for use with trixbox 2.6.2.1 and Xen. This guide will walk you through installing trixbox in a Xen DomU. I hope people find it useful.
Thank you,
Engineer Tim
Download trixbox-xen
I have put together a install guide for use with trixbox 2.6.2.1 and Xen. This guide will walk you through installing trixbox in a Xen DomU. I hope people find it useful.
Thank you,
Engineer Tim
Download trixbox-xen
Do you know if trixbox can installl on the Citrix Xen?
Hi Tim, thanks for this great guide. I’ve been trying to get a Trixbox domu running on an Opensolaris dom0 for a couple of weeks now, and with your guide I have now succeeded. Thanks. I was originally trying to convert an existing HVM to PV but was finding it difficult even though there are a couple of guides on the net. Cheers.
It should work with the Citrix Version of Xen.
Thank you,
Engineer Tim
Thank you very much Tim. I have found your guides also to be very helpful. Thank you for taking the time like you do. Is there anything I need to watch out for on the Citrix Xen that your aware of? I assume ths installs will be simular. Again, thanks.
While you can install Trixbox on XenServer (Citrix Xen) the method of installing VMs is completely different to Xen proper.
Since Trixbox is based on CentOS 5, you should theoretically be able to use the inbuilt CentOS 5 template in XenServer and to install, however it doesn’t seem to work – you get so far and then it reufses to mount the trixbox directory.
This is probably caused by the need for the same tweaks that Engineer Tim has had to make to the original cfg file to get the Trixbox image to boot under Xen.
The ideal method of installing Trixbox under XenServer is to publish a template that can be installed directly into XenServer just like those on http://jailtime.org; it would not need detailed instructions like Xen does.
Great guide Tim!
Has anyone experimented with PCI cards such as the Digium TDM400p on the trixbox DomU?
I have 1 CentOS 5 box running vmware server and a 1 box dedicated to trixbox.
It would be great to consolidate all into the one box but that pesky TDM400p leaves me hanging.
I would just install vmware server on the CentOS box running trixbox and run my VM’s but trixbox is 32bit so 3.5GB RAM is all I get. Not going to cut of for all my VM’s.
Also, how is the performance of trixbox under Xen? Any choppy audio?
It is possible to pass the pci card directly to the xen DomU. There is someone on the trixbox.org forum that is doing just that. I don’t use hardware and only do SIP directly so I don’t have first hand experience. I might have to drag out my old TDM400p card and give it a shot though. Not sure why you would need that much ram for trixbox if running in VMWARE. I have been using 256 – 512 in Xen and have zero issues. No choppy sound and I can migrate them to other servers using xm migrate. I have had 4 installs running on one intel Atom with 2 gigs of ram and zero problems thus far. YMMV.
Hi Tim,
Thanks for this guide. It saved me a lot of research and coffee
Thanks for this great guide, but I have onde question:
I tried to install trixbox as in your guide, but changing the parameter for the img disk for a lvm disk changing phy:/dev/dsk/trixbox,hda,w and doesn’t work, tell me in boot that can’t write on hda. What is wrong?
I paste my config file
kernel = “/boot/vmlinuz-xen-install-trixbox”
ramdisk = “/boot/initrd-xen-install-trixbox”
extra = “text ks=http://192.168.2.65/ks_trixbox.cfg”
name = “tri01″
maxmem = “1024″
memory = “1024″
disk = [ ' phy:/dev/dsk/trixbox,hda,w,xvda,w', ]
vif = [ 'bridge=xenbr0', ]
vcpus=2
on_reboot = ‘destroy’
on_crash = ‘destroy’
Thanks, and again, great Guide, I could install in img file and running right.
I found my problem, sorry, I repeated hda and xvda, and it’s resolved now, just with installation, then, I have another question: How I can do to put on work my Digium card (TE410p) under Xen, thanks.
To get a card to work in the DomU, you have to pass the pci to it. If you do a google search for xen pci pass you should get some good hits. Here is one link that I was just reading on this topic.
xensource.com
I will attempt to give this a shot in the next week or so and then update my guide.
Thank you,
Engineer Tim
Back to the Trixbox Xenserver topic. We do have Trixbox 2.6.2.2 running under Xenserver 5.0 with all hotfixes. Works great.
So I figured I’d give this a wack using the latest 2.8 Trixbox just released. Turns out its missing the ‘images/xen/initrd.img’ and ‘/images/xen/vmlinuz’ files on the ISO. What do I do now?
New post on how to get this to work. Should be visible on the main page.
Thank you,
Engineer Tim
I am trying to get the 4 port pots card to work only incomming no outgoing
any idea?
Great how-to guides – thanks. Is it possible to use the Sangoma Voicetime plug http://wiki.sangoma.com/sangoma-wanpipe-voicetime as a timing source for all your DomU asterisk boxes? Seems timing is the #1 kicker and it would be nice if you could get a clean reliable timing source that all DomU’s could share.
Thank you. The voicetime device looks interesting. Not sure how it would work in a XEN environment. You would have to have the dahdi source rpm, which I have not seen on their SRPM repo yet. I think it would be interesting to try it out. I think the timing source in Xen is pretty good, but I don’t do anything heavy that would cause issues.
Engineer Tim
Tim have you tried the pci card yet? I can only dial out thru one channel of my tdm400p.
No, I have not had a chance to give it a shot. I have a system sitting just waiting for some time to try it. What type of errors are you getting if any? If you can dial out, it would stand to reason that there may be a config issue preventing inbound that is not related to Xen. However I am not certain until I give it a try.
Ok I got the cards to dial in and out no issues with any of that now. How? Don’t know it just worked. But the problem now is that the pci card kinds of stalls after a few calls. In and out. All trunks work just that the card would just hang and no calls can get in or out. It hangs about 3 times a day. Also can you do a step by step for trixbox 2.6.2.3? Please
seems that it would be better supporting xen?
Tim will u update the installation for the Trixbox 2.6.2.3 please. The 2.6.2.1 and 2.6.2.2 seems to hang a bit like times out even with out the TDM400 card. Since 2.8.0.1 doesnt even recognise the card even in normal installation meaning not in virtualized environment.
Thank you for sharing this. I never knew you could kickstart a xen image. I used this method, and it works great. The image will boot up successfully, and when I run ‘df’ it shows as an ext3 file system. thank you. thank you. thank you.
My problem is that I am unable to mount the exact same image, and I need to do be able to do so. I do _not_ have the xen image “booted up” while I am trying to mount it. With all other xen images I can mount it with the following command:
mount -o loop image.img /mnt/whatever
However, when i try with these kickstarted trixbox images I get the error “mount: you must specify the filesystem type”. I’ve tried specifying several different FS types including ext3, which gives me the following error:
mount: wrong fs type, bad option, bad superblock on /dev/loop3,
missing codepage or other error
In some cases useful info is found in syslog – try
dmesg | tail or so
Any ideas on this? Dmesg has no useful info. I am not out of loopback devices. Other images mount fine. My problem is unique to these disk images. I even tried downloading the trixbox xen image from xenforge, but it behaves the same way. I’ve been trying to figure it out for days now. I am baffled. Any suggestions would be appreciated.
I followed these directions a while ago and was able to make edits directly to a disk image file.
http://www.novell.com/coolsolutions/tip/19568.html
or
http://linuxwave.blogspot.com/2008/02/accessing-data-on-xen-lvm-guest-image.html
The main thing is to mount the offset that you get from the fdisk output.
Let me know if you have any issues.
Engineer Tim
[...] which can be easily deployed and sold as virtual PBX for small company. I have found nice howto at Engineer Tim's blog. There is also update for new Trixbox 2.8, which I have used. Using this howto I have now clean [...]