|
SageTV Downloads & Instructions This forum is for discussions containing Downloads and Instructions related to the Open Source version of SageTV. Please do not post questions in this forum. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
XenServer hypervisor build walkthrough
I'm going to post this in case it is useful to anyone else. In order to easily manage and support several projects, I wanted to virtualize my home hosting. Looking at how little cpu my SageTV server uses, I'm going to also be running a virtualized Sage box as part of this... a grand experiment.
When choosing a virtualization platform, there are lots of options. This walkthrough specifically details how to install the XenServer hypervisor. XenServer is the OpenSource Citrix version of the Xen Project hypervisor. There is no cost for personal use. I'm throwing this on a server with an 8 core i7 processor, 8 GB ram and at least 1 TB of storage. I will likely bump up storage and possibly the ram if this works going forward. 1) Download the XenServer Installer Go to link Code:
http://xenserver.org/overview-xenserver-open-source-virtualization/download.html 2) Install XenServer
3) Configure XenServer There are several ways to configure your server. If you have a windows laptop/computer, you can install XenCenter to directly control and manage your system. As I do not have a windows machine, an alternative was needed. I am using Xen Orchestra (https://xen-orchestra.com/). They offer prebuilt VM that you can use for free and easily install directly install into your system. I will try to add a how to at a later date of how to build from source, which gives you additional features. Details here: link Code:
https://github.com/vatesfr/xo/blob/master/doc/installation/xoa_installation.md
There are more steps to creating a vm, I can detail this if anyone is having trouble. |
#2
|
|||
|
|||
Placeholder for future adds
|
#3
|
||||
|
||||
I got this set up over the weekend. Thanks for the idea...seemed silly migrating my Sage install to a dedicated server only to have it utilize about 5% of the resources. Curious, what configs are you running your Sage VM with?
I've got 20gb partition, 4gb RAM, and 4 vCPU (2 sockets, 2 cores). Host is an i5 processor at 31 or something like that. I am noticing that things like comskip seem to run much slower and sort of expect this as part of the trade-off for virtualizing the system.
__________________
Production SageTV Server: ASUS P8P67-Pro, 16gb RAM, Crucial m4 256GB SSD, Unbunto 16.4.04 LTS (Server x64), WDC Red 4TB Capture: 1x HDHR Prime, 1x HDHomeRun (ClearQAM) Clients: 1x HD300, 2x HD200, 2x Placeshifters |
#4
|
|||
|
|||
Quote:
__________________
Server: Centos Server 14.04 LTS - 64Bit, VM in XenServer, 2 cores of a Intel i7, 2-4 GB Ram, 8 GB system Disk, 1.8 TB storage, SageTV V9.0.4.232, HDHR Prime x 1 Clients: PC Client x 1, HD-300 x 1, AppleTV x 2, WebClient (phone/tablet) x 3 |
#5
|
||||
|
||||
I actually have the whole think running pretty well w/2gb and 2 cores including COMSKIP on Unbuntu 64 server 16.04. I am continuing to monitor (I'm running Windows as one of my desktops, so have XenCenter loaded) the overall performance. I have only 16gb in the whole system (using 6 on 3 different machines). I am tending to start low and increase resources as they become constrained. So far, 2gb seems to be the sweet spot.
__________________
Production SageTV Server: ASUS P8P67-Pro, 16gb RAM, Crucial m4 256GB SSD, Unbunto 16.4.04 LTS (Server x64), WDC Red 4TB Capture: 1x HDHR Prime, 1x HDHomeRun (ClearQAM) Clients: 1x HD300, 2x HD200, 2x Placeshifters Last edited by Greg2dot0; 06-06-2016 at 05:19 AM. |
#6
|
|||
|
|||
Awesome. I realize I should have said, I have not yet installed comskip. So much for typing at night.
__________________
Server: Centos Server 14.04 LTS - 64Bit, VM in XenServer, 2 cores of a Intel i7, 2-4 GB Ram, 8 GB system Disk, 1.8 TB storage, SageTV V9.0.4.232, HDHR Prime x 1 Clients: PC Client x 1, HD-300 x 1, AppleTV x 2, WebClient (phone/tablet) x 3 |
#7
|
||||
|
||||
No problem. I actually have increased my ram to 3GB because of some pauses when loading (and possibly related to some video glitches). I'm looking at the logs and it seems that Java does the memory management and eats up whatever you allocate. Tough to nail down the right number.
__________________
Production SageTV Server: ASUS P8P67-Pro, 16gb RAM, Crucial m4 256GB SSD, Unbunto 16.4.04 LTS (Server x64), WDC Red 4TB Capture: 1x HDHR Prime, 1x HDHomeRun (ClearQAM) Clients: 1x HD300, 2x HD200, 2x Placeshifters |
#8
|
||||
|
||||
How would this option compare to Oracle VM VirtualBox? I've had good luck with it over the years. One caveat though is that I haven't tried running my Sage server inside it.
__________________
Server: MS Win7 SP1; FX8350 (H2O cooled); 8GB RAM; Hauppauge HVR-7164 (OTA); HVR-885 (OTA); SageTV 9.1.5.x; 12+TB Sage Storage Clients: HD300 x2; HD200 x2; Placeshifter Service: EPB Fiber (1Gb); OTA (we "cut the cord"); Netflix, Hulu, etc. |
#9
|
||||
|
||||
I think it would be comparable as virtual technologies have more or less matured. The one thing is that VirtualBox is more of a client virtualization technology while XenServer is more server based.
__________________
Production SageTV Server: ASUS P8P67-Pro, 16gb RAM, Crucial m4 256GB SSD, Unbunto 16.4.04 LTS (Server x64), WDC Red 4TB Capture: 1x HDHR Prime, 1x HDHomeRun (ClearQAM) Clients: 1x HD300, 2x HD200, 2x Placeshifters |
#10
|
|||
|
|||
The problem I had with VirtualBox was it didn't stop/start VMs on shutdown/boot of the host. There is a third party application that provided this and worked well for me, but if you ever want to open the VirtualBox application you have to disable the other program, (which halts the VMs).
I'm using Hyper-V now and like it. It let's you do things like dynamic memory and CPU, (no guessing on sizing although you can put limits on how many resources a guest can claim), and has shutdown/startup on host boot functionality built-in. BUT it doesn't let you pass a PCIe card to the guest unless you're running a Windows Server OS. Anyway, they're both a different beast than XenServer.
__________________
Home Network: https://karylstein.com/technology.html |
#11
|
|||
|
|||
Quote:
__________________
Server: Centos Server 14.04 LTS - 64Bit, VM in XenServer, 2 cores of a Intel i7, 2-4 GB Ram, 8 GB system Disk, 1.8 TB storage, SageTV V9.0.4.232, HDHR Prime x 1 Clients: PC Client x 1, HD-300 x 1, AppleTV x 2, WebClient (phone/tablet) x 3 |
#12
|
||||
|
||||
Just wanted to do an update here that I ditched Xen in favor of Hyper-v. I happen to have a technet license available for Windows Server 2012 R2 so figured I'd fire it up. While it took me a lot longer to get this configured than Xen (due to driver signing issues), I feel that this hypervisor is much more mature.. Dynamic memory allocation is awesome.
While Performance Monitor captures a ton of metrics, I do feel like reporting is one area where Xen has Hyper-v beat.
__________________
Production SageTV Server: ASUS P8P67-Pro, 16gb RAM, Crucial m4 256GB SSD, Unbunto 16.4.04 LTS (Server x64), WDC Red 4TB Capture: 1x HDHR Prime, 1x HDHomeRun (ClearQAM) Clients: 1x HD300, 2x HD200, 2x Placeshifters |
#13
|
|||
|
|||
The dynamic memory allocation thing in Xen is very frustrating. Apparently it can do some amount of dynamic memory allocation, but it involves several command line options and non obvious configuration items and is not automatic.
Was there anything special you had to do to get it to work? It would be worth capturing for anyone else using Hyper-V
__________________
Server: Centos Server 14.04 LTS - 64Bit, VM in XenServer, 2 cores of a Intel i7, 2-4 GB Ram, 8 GB system Disk, 1.8 TB storage, SageTV V9.0.4.232, HDHR Prime x 1 Clients: PC Client x 1, HD-300 x 1, AppleTV x 2, WebClient (phone/tablet) x 3 |
#14
|
||||
|
||||
I am going to convert my SageTV server into a virtual machine soon and am looking a various hypervisors. My main requirement is USB passthrough to access two HD-PVRs.
That seems to rule out Hyper-v. I know that VMWare allows for USB passthrough, does anyone know if Xen has this feature? |
#15
|
|||
|
|||
Quote:
__________________
"Keep your goals away from the trolls" |
#16
|
||||
|
||||
Just check a box...that easy.
__________________
Production SageTV Server: ASUS P8P67-Pro, 16gb RAM, Crucial m4 256GB SSD, Unbunto 16.4.04 LTS (Server x64), WDC Red 4TB Capture: 1x HDHR Prime, 1x HDHomeRun (ClearQAM) Clients: 1x HD300, 2x HD200, 2x Placeshifters |
#17
|
|||
|
|||
Quote:
As some folks here have noted... I'm strongly thinking about a next version where I get a synology NAS and use the docker container. Not sure if others have thoughts on this or not.
__________________
Server: Centos Server 14.04 LTS - 64Bit, VM in XenServer, 2 cores of a Intel i7, 2-4 GB Ram, 8 GB system Disk, 1.8 TB storage, SageTV V9.0.4.232, HDHR Prime x 1 Clients: PC Client x 1, HD-300 x 1, AppleTV x 2, WebClient (phone/tablet) x 3 |
#18
|
||||
|
||||
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#19
|
|||
|
|||
I have decidedly been following the threads on unraid. I am feeling a little lazy as of late and was at least considering (assuming $$) that a solution where I could just "buy it" might be nice. Between this, some of the automation, some of the auto plugin install, I'm trying to get to a point where I can just spin up a sage backend for myself (or someone else) very easily, access it via web configuration and then front end it with sage or other.
__________________
Server: Centos Server 14.04 LTS - 64Bit, VM in XenServer, 2 cores of a Intel i7, 2-4 GB Ram, 8 GB system Disk, 1.8 TB storage, SageTV V9.0.4.232, HDHR Prime x 1 Clients: PC Client x 1, HD-300 x 1, AppleTV x 2, WebClient (phone/tablet) x 3 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Basic Linux V9 Build and Walkthrough - First Draft | SageWizdom | SageTV Downloads & Instructions | 32 | 02-20-2016 09:29 PM |
2 x HD PVR in vSphere Hypervisor / ESXi 5 | korben_dallas | Hardware Support | 25 | 12-24-2012 04:02 PM |
Diamond 3.0 Writeup/Walkthrough | dbone1026 | Diamond | 34 | 03-08-2011 05:35 PM |
BMT Walkthrough | gabe1475 | Batch Metadata Tools | 42 | 11-12-2010 06:16 AM |
Command-line walkthrough | megamojo | Batch Metadata Tools | 3 | 10-18-2010 08:06 PM |