I made a VM of Trixbox 2.8.0.4 for use with Citrix XenServer (5.6).
The VM is in .xva format so you can import it right away in XenServer, all yum updates are done (as of 06 dec. 2010) and latest Xen-Tools are installed.
Download it: trixbox-2.8.0.4.rar (589MB)
Details
root password: trixbox
IP: Automatic (via DHCP)
Disk: 30GB
How did I get Trixbox 2.8.0.4 working under XenServer with Xen-Tools?
This guide is thanks to (copied from) rebuke at the Trixbox Forums.
- Download
Download the Trixbox 2.8 ISO from www.trixbox.org - Install Trixbox
In XenCenter, create a new VM based on ‘Other install media’ template and use the downloaded ISO to boot from. Follow the whole Trixbox installation process and when finished do a ‘yum update all’ - Change the boot order
Using XenCenter, change the boot order of the VM and set harddisk as first boot device, then CD/DVD. - Change GRUB config
Modify /etc/grub.conf and set the Xen kernel as default:default=1
to
default=0
Modify the first stanza from:
title trixbox (2.6.18-164.11.1.el5xen) root (hd0,0) kernel /xen.gz-2.6.18-164.11.1.el5 module /vmlinuz-2.6.18-164.11.1.el5xen ro root=LABEL=/ module /initrd-2.6.18-164.11.1.el5xen.img
to:
title trixbox (2.6.18-164.11.1.el5xen) root (hd0,0) kernel /vmlinuz-2.6.18-164.11.1.el5xen ro root=LABEL=/ console=xvc0 initrd /initrd-2.6.18-164.11.1.el5xen.img
- Rebuild initrd
Rebuild the initrd for the xen kernel (the automatically generated one is missing some xen modules):rm -f /boot/initrd-2.6.18-164.11.1.el5xen.img mkinitrd --with=xenblk --with=xennet /boot/initrd-2.6.18-164.11.1.el5xen.img 2.6.18-164.11.1.el5xen
- Disable Kudzu
Otherwise network will go wrong later.chkconfig --del kudzu
- Install Xen version of dahdi
yum install -y kmod-dahdi-linux-xen
- Conigure console access
Modify /etc/inittab so you get a local console. Change this section:# Run gettys in standard runlevels 1:2345:respawn:/sbin/mingetty tty1 2:2345:respawn:/sbin/mingetty tty2 3:2345:respawn:/sbin/mingetty tty3 4:2345:respawn:/sbin/mingetty tty4 5:2345:respawn:/sbin/mingetty tty5 6:2345:respawn:/sbin/mingetty tty6
to:
# Run gettys in standard runlevels co:2345:respawn:/sbin/agetty xvc0 9600 vt100-nav #1:2345:respawn:/sbin/mingetty tty1 #2:2345:respawn:/sbin/mingetty tty2 #3:2345:respawn:/sbin/mingetty tty3 #4:2345:respawn:/sbin/mingetty tty4 #5:2345:respawn:/sbin/mingetty tty5 #6:2345:respawn:/sbin/mingetty tty6
Allow root logins at xvc0:
echo xvc0 >> /etc/securetty
- Make the VM paravirtualized
First shutdown the VM.
Then at the Xen host run: (replace trixbox-2.8.0.4 with the name of the VM)vm=$(xe vm-list name-label=trixbox-2.8.0.4 --minimal) xe vm-param-set uuid=$vm PV-bootloader=pygrub HVM-boot-policy= xe vm-param-set uuid=$vm PV-args=utf8
Make the hard disk PV bootable:
vbd=$(xe vm-disk-list uuid=$vm vdi-params=none --minimal) xe vbd-param-set uuid=$vbd bootable=true
Close and reopen xencenter (this is needed for the KB/mouse to work properly)
Start the VM
Once booted, put the xs-tools.iso in the drive in order to install the Xen Tools (note we don’t install the XenServer provided kernel, as this will break the dahdi modules).
mount /dev/xvdd /mnt /mnt/Linux/install.sh -k
Reboot
- Finished!
Now you have a Trixbox VM running on XenServer with Xen Tools. Enjoy!
Again, thanks to rebuke!
[…] creating this domU I found some of the CentOS tailored information in this blog post from Roel Broersma. Tweet Posted by Mike at 3:34 pm Tagged with: trixbox, Xen […]
Hi!
I installed trixbox-2.8.0.4 from iso store. It required HVM, then I enable HVM follow as:
1.) Go to any XenConsole.
Get the UUID of the VM with “xe vm-list”.
[root@xen01 ~]# xe vm-list
uuid ( RO) : 734482f0-d486-5e34-8867-2e87449605af
name-label ( RW): trixbox-2.8.0.4
power-state ( RO): halted
2.) Now make the HDD of the VM bootable.
Get the VBD-UUID. Get it with:
“xe vm-disk-list uuid=734482f0-d486-5e34-8867-2e87449605af” .
[root@xen01 ~]# xe vm-disk-list uuid=734482f0-d486-5e34-8867-2e87449605af
Disk 0 VBD:
uuid ( RO) : b2d4dcff-7f17-5d3c-b594-530a805823cf
vm-name-label ( RO): trixbox-2.8.0.4
userdevice ( RW): 1
Disk 0 VDI:
uuid ( RO) : 192893b8-edca-4917-83ee-4cc7b4715a5b
name-label ( RW): trixbox-2.8.0.1
sr-name-label ( RO): Local storage
virtual-size ( RO): 10737418240
3.) Make the VM paravirtualized – at the host console run:
xe vm-param-clear uuid=734482f0-d486-5e34-8867-2e87449605af param-name=HVM-boot-policy
xe vm-param-set uuid=734482f0-d486-5e34-8867-2e87449605af PV-bootloader=pygrub
xe vm-param-set uuid=734482f0-d486-5e34-8867-2e87449605af PV-args=”utf8″
Activate the Blockdevice of the HDD and make it bootable: (Dit is dus Disk 0 VBD:)
xe vbd-param-set uuid=b2d4dcff-7f17-5d3c-b594-530a805823cf bootable=true
Unmount CDROM!! Otherwise you wil get the too many bootable disks warning!
——————————
I don’t know what do I umount?
But, when I reboot to install, it was error.
The bootloader for this VM returned an error — did the VM installation succed? Error from bootloader: too many boottable disks (2 disks).
thank you very much!
if you are logged in as root you can change the password for the webconsole by using the command: passwd-maint
Nice Work!
I have it running on a dual quad core server.
What is the password to switch from user to admin in the webconsole?
Hi. If my servers in pool, can i have problems when try tu run to create pv commands on xen host? And what host master of pool or other servers?
Thank you for your feedback.
Yes. must have at trixbox vm analogue lines (PSTN).
XenServer Configuration:
– Intel motherboard d55hc (Vt-d compatible and bios enable);
– Cpu xeon 3440 (vt-x compatibleand bios enable);
– XenServer 5.6.0-38098p
– 8 GB Ram;
thanks.
Mariano
So you want to run the VM on a XenServer host, and put a TDM400P PCI Card in the XenServer host.. then link it through the VM ?
Hi,
I need help installing the TDM400P PCI card in trixbox VM.
Can someone help me?
Hi, when import eth0 not auto up, i’ll change mac to 6af12e68eca7, when it’s work
Hi, I will try today thanks!