SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Linux
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Linux Discussion related to the SageTV Media Center for Linux. Questions, issues, problems, suggestions, etc. relating to the SageTV Linux should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-08-2010, 10:25 AM
harrijay harrijay is offline
Sage Advanced User
 
Join Date: Jan 2007
Location: Wisconsin
Posts: 152
Virtualize with ESXi 4.0

I have upgraded my setup now which you can see what I have below . I am considering switching my setup to ESXi since I am familiar with it at my work and I want to be able to run other test OS's on the occasion. I also have plenty of horsepower that is not being used. I have done a test run and I can pass my A180 and a NIC directly to a VM. I think this will give me the best chances of working and the least amount of hiccups. I want to also connect my 1.5TB drive directly to the VM rather than creating a virtual disk file. Does anyone have any experience with passing hardware like this to a VM? Anything I should avoid before making the jump?

TIA,
Jayson
__________________
ESXi Host Intel Xeon x3440 on Intel S3420PLX, 4GB RAM, 80GB Primary
Server:2 CPU's and 2GB memory Allocated, 15GB Virtual Primary, 1.5 TB RDM Physical Disk,
A180 using VMDirectPath, 1 xHDHR
Headless ArchLinux 2.6.34 64-bit, SageTV 7.0.15
Sun JRE 1.6.0_20
Comskip&PlayonWindows XP 2CPU and 1GB Ram Allocated
Clients: 1 Media MVP and 2 STX-HD100
Reply With Quote
  #2  
Old 02-08-2010, 04:00 PM
kbyrd kbyrd is offline
Sage Aficionado
 
Join Date: Sep 2008
Location: SF Bay Area, CA
Posts: 282
There is at least one other thread about doing this, although it was in the context of using ESX to get Solaris to manage the storage, the poster wanted ZFS.

As long as the tuner is a network or USB tuner, this should work just fine. I'm very familiar with VMware as well and while I haven't done this yet, I'm thinking about it.
__________________
Current Server: Sage v7.1.9.1 beta w/ Diamond UI on Ubuntu 11.10 x86_64 | Storage: Linux md's raid10,f2 | Client: HD300 extender | Tuner: HDHomeRun for QAM
Reply With Quote
  #3  
Old 02-08-2010, 04:38 PM
aflat aflat is offline
Sage Aficionado
 
Join Date: Feb 2009
Posts: 302
I've had issues directly attaching storage, but that was a couple of years ago, they hopefully have worked out the kinks now. Mounting a virtual disk as a physical drive still has issues, but they are getting less and less every revision as well.
Reply With Quote
  #4  
Old 02-09-2010, 10:35 AM
jpappas jpappas is offline
Sage User
 
Join Date: Feb 2007
Location: Texas USA
Posts: 47
Hosting a Linux SageTV VM on ESX(i)

Quote:
Originally Posted by harrijay View Post
I have upgraded my setup now which you can see what I have below . I am considering switching my setup to ESXi since I am familiar with it at my work and I want to be able to run other test OS's on the occasion.
ESXi provides less control from the CLI than ESX, at the gain of being runnable from a USB flash drive or the like (Lite-footprint) and being "free" of course.

Quote:
Originally Posted by harrijay View Post
I also have plenty of horsepower that is not being used. I have done a test run and I can pass my A180 and a NIC directly to a VM.
I will have to re-visit PCI pass-thru, AFAIK ESX3.5 could not pass a PCI device thru (maybe experimentally, and USB was hit/miss). If that works, I may look at this too. Just have to check which white-box motherboards work the best with ESXi4.

Quote:
Originally Posted by harrijay View Post
I want to also connect my 1.5TB drive directly to the VM rather than creating a virtual disk file. Does anyone have any experience with passing hardware like this to a VM?
RDM (Raw Disk Mapping) will pass Raw Disks to VMs.

IN such a config, you would have a VMFS partition (presumably on the smaller drive) with the Sage OS VMDK, and then a second virtual drive would be added that would be RDM (virtual if you want snapshots and the like, physical if you want SCSI commands to passed directly to the drive; virtual is best-practice if not using MSCS or other clustering)

Quote:
Originally Posted by harrijay View Post
Anything I should avoid before making the jump?
I can definitely see the advantages of this config. I am thinking the only hangups would be hardware compatibility and device pass-thru. If pass-thru works without too much overhead; the I/O is fast enough for HD capture requirements; and the target system is HCL "close" then it would be a reasonably clean config.

Keep us posted!
John
Reply With Quote
  #5  
Old 02-09-2010, 11:05 AM
kbyrd kbyrd is offline
Sage Aficionado
 
Join Date: Sep 2008
Location: SF Bay Area, CA
Posts: 282
The RDM path is well tested, it works fine in the field. The common problem people run into running ESX at home is making sure your storage is recognized. Historically, ESX hasn't had great support for SATA or SAS on the motherboard. Recently that's gotten much better. If you can make it a datastore, then it'll work.


The PCI passthru will only work with motherboards which have an IOMMU. If you have an network attached encoder (like the A180 or the HDHR), this isn't a problem.
__________________
Current Server: Sage v7.1.9.1 beta w/ Diamond UI on Ubuntu 11.10 x86_64 | Storage: Linux md's raid10,f2 | Client: HD300 extender | Tuner: HDHomeRun for QAM
Reply With Quote
  #6  
Old 02-11-2010, 08:47 AM
mikejaner's Avatar
mikejaner mikejaner is offline
Sage Icon
 
Join Date: Oct 2003
Location: Chantilly VA
Posts: 2,087
Send a message via MSN to mikejaner
I have been testing this extensively (raw disk mapping) over the last few months. It works fine for passing the disks through to every os I threw at it (Ubuntu, Windows 7, 2008, XP, 2003) with one exception. You cannot successfully create a software based RAID array with Windows 7 or 2008 R2. There seems to be a compatibility issue with ESX and how it lets the guest os write to "disks". Note this is also true if you are mapping virtual disks, not just raw disks, to these OS's. RAID works fine in Ubuntu and 2008 (R1) and below.

Here's a link to a quick and dirty tutorial for mapping raw LUN's:
http://www.vm-help.com/forum/viewtopic.php?f=14&t=1025

BTW: I have also tested SageTV by just using standard virtual drives, and recording from a HDHR over the network. It works very well, with no glitches so far (two weeks). I do not have VT-H capability so all of my testing can only happen with my HDHR's and Hava HD Wireless.
__________________
Mike Janer
SageTV HD300 Extender X2
Sage Server: AMD X4 620,2048MB RAM,SageTV 7.x ,2X HDHR Primes, 2x HDHomerun(original). 80GB OS Drive, Video Drives: Local 2TB Drive GB RAID5
Reply With Quote
  #7  
Old 02-13-2010, 11:25 PM
DigitalMan DigitalMan is offline
Sage Advanced User
 
Join Date: Aug 2007
Posts: 82
If you created your RDM volumes using that guide, perhaps you should try using -z instead of -r to create physical compatibility mode mappings rather than virtual mode.

I have an ESXi 4 setup and its running perfectly. I'm using virtual NIC's and performance has been spectacular, so I see no need to use passthru on them. I do have my arrays set up using RDM (virtual mode). One of these days I would love to see how many tuners and clients it would be able to handle. Tuners and clients are on separate physical NICs and the Sage VM has 3 virtual NICs in it.

Quote:
Originally Posted by mikejaner View Post
I have been testing this extensively (raw disk mapping) over the last few months. It works fine for passing the disks through to every os I threw at it (Ubuntu, Windows 7, 2008, XP, 2003) with one exception. You cannot successfully create a software based RAID array with Windows 7 or 2008 R2. There seems to be a compatibility issue with ESX and how it lets the guest os write to "disks". Note this is also true if you are mapping virtual disks, not just raw disks, to these OS's. RAID works fine in Ubuntu and 2008 (R1) and below.

Here's a link to a quick and dirty tutorial for mapping raw LUN's:
http://www.vm-help.com/forum/viewtopic.php?f=14&t=1025

BTW: I have also tested SageTV by just using standard virtual drives, and recording from a HDHR over the network. It works very well, with no glitches so far (two weeks). I do not have VT-H capability so all of my testing can only happen with my HDHR's and Hava HD Wireless.
Reply With Quote
  #8  
Old 02-13-2010, 11:43 PM
mikejaner's Avatar
mikejaner mikejaner is offline
Sage Icon
 
Join Date: Oct 2003
Location: Chantilly VA
Posts: 2,087
Send a message via MSN to mikejaner
Thanks for the tip, I will give it a try. Didn't know about -z. Do you think it will make a difference if VMDKs will not do RAID either in 2008 R2 or Win7?

[Update: That worked, thanks again!! I'm gonna test performance now]
__________________
Mike Janer
SageTV HD300 Extender X2
Sage Server: AMD X4 620,2048MB RAM,SageTV 7.x ,2X HDHR Primes, 2x HDHomerun(original). 80GB OS Drive, Video Drives: Local 2TB Drive GB RAID5

Last edited by mikejaner; 02-14-2010 at 09:07 AM.
Reply With Quote
  #9  
Old 02-14-2010, 01:48 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
OK guys, I put ESXI 4 u1 on a spare PC so I could play with it, but I've run into a snag that has me utterly baffled.

I'm attempting to install Linux Mint 8 (KDE) in a VM. I downloaded the ISO, uploaded it to an ESXi datastore, setup a VM (picked ubuntu 64 as the linux version).

The LiveCD boots just fine into KDE and it all appears to be running fine. Problem is, whenever I try to "install" Mint, my ESXi machine (the whole machine) just powers off. Somewhere between it creating the file system and copying the files.

Like I said I'm baffled, I haven't run it a lot, but I've put a few hours on another VM with Windows Server 2003 (enough to install Sage and a SP2). Anyone have any ideas what would cause the whole system to pack up?
Reply With Quote
  #10  
Old 02-14-2010, 05:32 PM
mikejaner's Avatar
mikejaner mikejaner is offline
Sage Icon
 
Join Date: Oct 2003
Location: Chantilly VA
Posts: 2,087
Send a message via MSN to mikejaner
Quote:
Originally Posted by stanger89 View Post
OK guys, I put ESXI 4 u1 on a spare PC so I could play with it, but I've run into a snag that has me utterly baffled.

I'm attempting to install Linux Mint 8 (KDE) in a VM. I downloaded the ISO, uploaded it to an ESXi datastore, setup a VM (picked ubuntu 64 as the linux version).

The LiveCD boots just fine into KDE and it all appears to be running fine. Problem is, whenever I try to "install" Mint, my ESXi machine (the whole machine) just powers off. Somewhere between it creating the file system and copying the files.

Like I said I'm baffled, I haven't run it a lot, but I've put a few hours on another VM with Windows Server 2003 (enough to install Sage and a SP2). Anyone have any ideas what would cause the whole system to pack up?
I am installing Mint Gnome 64 right now, and it's copying files as I type. I wonder if you got a bad download? I can try KDE later if you like.
__________________
Mike Janer
SageTV HD300 Extender X2
Sage Server: AMD X4 620,2048MB RAM,SageTV 7.x ,2X HDHR Primes, 2x HDHomerun(original). 80GB OS Drive, Video Drives: Local 2TB Drive GB RAID5
Reply With Quote
  #11  
Old 02-14-2010, 05:59 PM
kbyrd kbyrd is offline
Sage Aficionado
 
Join Date: Sep 2008
Location: SF Bay Area, CA
Posts: 282
Quote:
Originally Posted by stanger89 View Post

The LiveCD boots just fine into KDE and it all appears to be running fine. Problem is, whenever I try to "install" Mint, my ESXi machine (the whole machine) just powers off. Somewhere between it creating the file system and copying the files.

Like I said I'm baffled, I haven't run it a lot, but I've put a few hours on another VM with Windows Server 2003 (enough to install Sage and a SP2). Anyone have any ideas what would cause the whole system to pack up?

Uhh, wow crashing the host is pretty bad. The way you phrased it, it sounds like you can consistently reproduce this. If that's the case, can you do it again and grab the vmware.log file from the VM directory on the ESXi host?
__________________
Current Server: Sage v7.1.9.1 beta w/ Diamond UI on Ubuntu 11.10 x86_64 | Storage: Linux md's raid10,f2 | Client: HD300 extender | Tuner: HDHomeRun for QAM

Last edited by kbyrd; 02-14-2010 at 06:37 PM.
Reply With Quote
  #12  
Old 02-14-2010, 06:30 PM
mikejaner's Avatar
mikejaner mikejaner is offline
Sage Icon
 
Join Date: Oct 2003
Location: Chantilly VA
Posts: 2,087
Send a message via MSN to mikejaner
How much ram did you assign to the VM?
I just went through the install of Mint 64 KDE, but only after increasing the ram from 512MB to 2048MB. At 512 MB, the VM kept crashing the installation program, and it was very slow. I bumped up the memory, and now the VM is installing smoothly.

Quote:
Originally Posted by stanger89 View Post
OK guys, I put ESXI 4 u1 on a spare PC so I could play with it, but I've run into a snag that has me utterly baffled.

I'm attempting to install Linux Mint 8 (KDE) in a VM. I downloaded the ISO, uploaded it to an ESXi datastore, setup a VM (picked ubuntu 64 as the linux version).

The LiveCD boots just fine into KDE and it all appears to be running fine. Problem is, whenever I try to "install" Mint, my ESXi machine (the whole machine) just powers off. Somewhere between it creating the file system and copying the files.

Like I said I'm baffled, I haven't run it a lot, but I've put a few hours on another VM with Windows Server 2003 (enough to install Sage and a SP2). Anyone have any ideas what would cause the whole system to pack up?
__________________
Mike Janer
SageTV HD300 Extender X2
Sage Server: AMD X4 620,2048MB RAM,SageTV 7.x ,2X HDHR Primes, 2x HDHomerun(original). 80GB OS Drive, Video Drives: Local 2TB Drive GB RAID5
Reply With Quote
  #13  
Old 02-15-2010, 06:55 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Quote:
Originally Posted by mikejaner View Post
I am installing Mint Gnome 64 right now, and it's copying files as I type. I wonder if you got a bad download? I can try KDE later if you like.
If it is a bad download, it's both my 32 and 64bit downloads.

Quote:
Originally Posted by kbyrd View Post
Uhh, wow crashing the host is pretty bad. The way you phrased it, it sounds like you can consistently reproduce this. If that's the case, can you do it again and grab the vmware.log file from the VM directory on the ESXi host?
I could do that again, I did it once but didn't see anything that stuck out at me.

Quote:
Originally Posted by mikejaner View Post
How much ram did you assign to the VM?
I just went through the install of Mint 64 KDE, but only after increasing the ram from 512MB to 2048MB. At 512 MB, the VM kept crashing the installation program, and it was very slow. I bumped up the memory, and now the VM is installing smoothly.
I gave it 1GB.
Reply With Quote
  #14  
Old 02-15-2010, 08:15 AM
aflat aflat is offline
Sage Aficionado
 
Join Date: Feb 2009
Posts: 302
Does your processor have virtualization enabled in the bios?
Reply With Quote
  #15  
Old 02-15-2010, 08:17 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
I'm pretty sure I did. Like I said, it's weird, it will run Mint (off the live CD) just fine, and it runs Windows Server 2003 and XP just fine, but for some reason the Mint installer kills it dead every time.
Reply With Quote
  #16  
Old 02-15-2010, 10:53 AM
aflat aflat is offline
Sage Aficionado
 
Join Date: Feb 2009
Posts: 302
I just ran into an ESXi issue now where I installed it, but I forgot to turn on virtualization. I flipped it after I installed ESXi, but I couldn't use VMWare converter to put a 64bit OS into the ESXi server, it kept saying it doesn't support 64 bit. I had to reinstall to get it to support 64bit. Granted it was a new server, so it was easy to reinstall, there's probably some console setting to do it as well.
Reply With Quote
  #17  
Old 02-15-2010, 08:43 PM
kbyrd kbyrd is offline
Sage Aficionado
 
Join Date: Sep 2008
Location: SF Bay Area, CA
Posts: 282
If you're running 64-bit guests, enable VT or whatever AMD calls it in the BIOS first.
__________________
Current Server: Sage v7.1.9.1 beta w/ Diamond UI on Ubuntu 11.10 x86_64 | Storage: Linux md's raid10,f2 | Client: HD300 extender | Tuner: HDHomeRun for QAM
Reply With Quote
  #18  
Old 02-17-2010, 09:20 AM
harrijay harrijay is offline
Sage Advanced User
 
Join Date: Jan 2007
Location: Wisconsin
Posts: 152
I got everything switched over and it is running pretty good. I ran into a couple problems along the way but mainly due to the way ESXi works. I decided to pass my NIC directly to the VM since the motherboard I am running has 2 NIC's on it but ESXi would only recognize one of them. I passed the disks in physical mode and was able to mount them back into ubuntu without any issue or data loss. I am able to access my PCI HD tuner (A180) without any issue and I do not see any kind of performance problems yet. as of now so far so good but I will let you know if anything changes. Thanks for everyones input.

Jayson
__________________
ESXi Host Intel Xeon x3440 on Intel S3420PLX, 4GB RAM, 80GB Primary
Server:2 CPU's and 2GB memory Allocated, 15GB Virtual Primary, 1.5 TB RDM Physical Disk,
A180 using VMDirectPath, 1 xHDHR
Headless ArchLinux 2.6.34 64-bit, SageTV 7.0.15
Sun JRE 1.6.0_20
Comskip&PlayonWindows XP 2CPU and 1GB Ram Allocated
Clients: 1 Media MVP and 2 STX-HD100
Reply With Quote
  #19  
Old 02-19-2010, 05:04 PM
kbyrd kbyrd is offline
Sage Aficionado
 
Join Date: Sep 2008
Location: SF Bay Area, CA
Posts: 282
Are you RAIDing the disks? If so, are you doing this in the Ubuntu guest or in hardware or something else?
__________________
Current Server: Sage v7.1.9.1 beta w/ Diamond UI on Ubuntu 11.10 x86_64 | Storage: Linux md's raid10,f2 | Client: HD300 extender | Tuner: HDHomeRun for QAM
Reply With Quote
  #20  
Old 02-20-2010, 04:44 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
I've got a question... I see the new i5's have VT-d, but I'm having a heck of a time finding a motherboard that supports it to go with it. Does anyone know if any of the intel H55 or H57 board support VT-d? Or any i5 boards with confirmed VT-d?

-er scratch that maybe. Looks like the DQ57TM officially includes VT-d.

Last edited by stanger89; 02-20-2010 at 04:54 PM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SageTV using HD-PVR and VMware ESXi radioman Hardware Support 29 10-13-2010 04:45 PM
Currently have Sagetv working with ESXi and hvr 1600 itzatol Hardware Support 5 07-09-2010 06:50 PM


All times are GMT -6. The time now is 03:09 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.