Author Topic: zentyal 2.0 on XenServer 5.6 PV [SOLVED]  (Read 5555 times)

peterm99

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
zentyal 2.0 on XenServer 5.6 PV [SOLVED]
« on: October 15, 2010, 12:05:17 pm »

Installing Zentyal 2.0 on XenServer 5.6 is not covered by any published notes I could find.

Walking through the 1.4.2  in 'southa's forum post suggested lots of work, primarily around the kernel upgrade.  Fortunately, ubuntu base includes Xen support in the base kernel!

Configuring Zentyal therefore revolved around the few XenServer 'xe vm-param' commands as noted in that previous forum note.  So, just to recap (thanks to southa's notes):

It's always best to start from a XenServer snapshot (as a backup), but if you create a new VM from the snapshot, make sure the original VM is not running or a new MAC address is allocated to the network card.

In the initial HVM mode boot Zentyal, make sure there is a file /etc/init/hvc0.conf file.  If not, copy from tty0.conf and amend accordingly.

Log in to dom0 of your XenServer, either by click the host in XenCenter and going to the console where it says Press <Enter> to login, clicking the console and pressing enter, or via ssh using ssh root@<XenServer IP> and your XenServer password.


  Find the UUID of your eBox VM using xe vm-list.  You'll get a list of VMs like:

[...]
uuid ( RO)           : 7a91225e-dc2b-5442-5dca-0cda1653be82
     name-label ( RW): <Your eBox VM name>
    power-state ( RO): running
[...]
 
  In my case the eBox VM UUID 7a91225e-dc2b-5442-5dca-0cda1653be82.
    - Note: You can see the values you're about to set using xe vm-list uuid=7a91225e-dc2b-5442-5dca-0cda1653be82 params=all.
    - Note: Tab-completion works for UUIDs on the command line.
  Enter xe vm-param-clear uuid=7a91225e-dc2b-5442-5dca-0cda1653be82 param-name=HVM-boot-policy (replacing my UUID with yours).
  Enter xe vm-param-set uuid=7a91225e-dc2b-5442-5dca-0cda1653be82 PV-bootloader=pygrub

Set the console to be non-graphical
 xe vm-param-set uuid=7a91225e-dc2b-5442-5dca-0cda1653be82 PV-args="-- quiet console=hvc0 xencons=hvc0"


  Enter xe vm-disk-list uuid=7a91225e-dc2b-5442-5dca-0cda1653be82
  You should get a list of disks like this:

Disk 0 VBD:
uuid ( RO)             : e4e01745-0e8e-1e11-6f9f-c955f5c3880a
    vm-name-label ( RO): <Your eBox VM name>
       userdevice ( RW): 1


Disk 0 VDI:
uuid ( RO)             : 7564771b-7415-4f12-ac97-1b4e9693382c
       name-label ( RW): <Your eBox VM disk name>
    sr-name-label ( RO): Local storage
     virtual-size ( RO): 6442450944

  Take the UUID of the VBD (the first one here) and enter:
    xe vbd-param-set uuid=e4e01745-0e8e-1e11-6f9f-c955f5c3880a bootable=true


That's all.  Reboot your Zentyal server.

You can then load the XenServer utilities as usual.

PS. I have enabled a GUI/graphical interface on my XenServer as I don't always want to work from a remote computer.  This allows me to run 'rdesktop' to communicate with Windows servers (working already) and in future will allow X11 native or X11 XDMCP access to Linux servers from the one console.  Very nifty.