///Trixbox VM on XenServer

Trixbox VM on XenServer

Want create site? Find Free WordPress Themes and plugins.

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!

Did you find apk for android? You can find new Free Android Games and apps.
By | 2017-01-11T14:41:19+00:00 December 6th, 2010|Technical|10 Comments

10 Comments

  1. […] 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 […]

  2. Hieu Tran 12 May 2011 at 07:20

    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!

  3. Jason 8 March 2011 at 01:44

    if you are logged in as root you can change the password for the webconsole by using the command: passwd-maint

  4. Chris 4 March 2011 at 05:22

    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?

  5. Plastilin 13 January 2011 at 13:16

    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?

  6. Mariano 11 December 2010 at 21:31

    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

  7. Roel Broersma 11 December 2010 at 16:21

    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 ?

  8. Mariano 11 December 2010 at 15:47

    Hi,

    I need help installing the TDM400P PCI card in trixbox VM.

    Can someone help me?

  9. rinat 7 December 2010 at 16:35

    Hi, when import eth0 not auto up, i’ll change mac to 6af12e68eca7, when it’s work

  10. Rinat 7 December 2010 at 15:19

    Hi, I will try today thanks!

Leave A Comment

The store is not open yet, we're planning a launch date of 20 March 2017 ! Dismiss