<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 10, 2023 at 3:06 PM James Abernathy <<a href="mailto:jfabernathy@gmail.com">jfabernathy@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 9, 2023 at 3:04 AM Karl Buckland <<a href="mailto:buckland.karl@gmail.com" target="_blank">buckland.karl@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 9 May 2023 at 00:03, Phill Edwards <<a href="mailto:philledwards@gmail.com" target="_blank">philledwards@gmail.com</a>> wrote:<br>
>><br>
>> While playing around I have discovered that in some distros it can be complicated to get mythtv running. So I was wondering if you have a requirement to run a distro that is not Mythtv friendly. What about using a VM?<br>
>><br>
>> I setup KVM/QEMU and created a VM of Ubuntu 22.04 LTS. I setup a share directory between the host and Ubuntu guest machine using virtiofs and mount that via /etc/fstab.<br>
>><br>
>> So Installing mythtv on Ubuntu is relatively easy. Since my PC is uses a network bridge, the VM is on the same subnet as the home network and can see the HDHR tuners.<br>
>><br>
>> This works without any noticeable performance impact on the PC. So to me keeping Mythtv simple by running it in a Ubuntu VM seems to be a perfect solution if you are required to run another Distro and want Mythtv?<br>
>><br>
>> What am I missing?<br>
><br>
><br>
> I run a mythbackend VM on Proxmox which is a great virtualisation solution with a web browser admin UI. HDHR tuners. Works great.<br><br>
<br>
I too am running mythtv backend on Proxmox (container/lxc) and passing<br>
through a USB TV tuner. It runs very well - containers run with very<br>
little overhead. I can therefore easily do backups, snapshots and try<br>
out upgrades without much hassle - or transfer across to new hardware<br>
easily, which I did last year.<br><br></blockquote><div><br></div><div>Thought I'd summarize what I ended up testing and got working. I learned a lot about networking and KVM/QEMU.</div><div><br></div><div>My big test was putting an Archlinux based Distro called Endeavour OS on the NUC with 2 SSDs. 1 is the boot drive and is formatted BTRFS; the other is EXT4 and that is where all the VM images are stored. Something about COW which BTRFS uses and VMs. I got this working originally with Linux Mint as host and the VM running Mythtv was Ubuntu 22.04. I was able to import that VM into my Endeavour OS's KVM with little extra work except setting up the mythtv storage groups which are all on the host with the VM using them as a shared directory via virtiofs. </div><div><br></div><div>Since my VM images are on the ext4 drive instead of the boot drive I can save the recordings from the Host and blow away the host and put something else on without having to do much to get Mythtv back up and working.</div><div><br></div><div>My biggest issue was getting the VM to boot when the Host boots. It turns out that if you don't set up the default network even if you don't use it, it affects the way the libvirtd service starts up and creates a race condition between my br0 bridge coming up and libvirtd starting the VMs. Once that was resolved, it all worked pretty nice.</div><div><br></div><div>Jim A</div><div><br></div><div><br></div></div></div>
_______________________________________________<br><br></blockquote><div><br></div><div>+1 for me also, running a vm via KVM, host OS is rocky linux (centos), vm running myth is ubuntu. I have hdhomerun tuners so it's really pretty straight forward no cards to pass through etc. I have been running that way for a looong time also. I do pass a raw disk for all the recordings though. </div><div> </div></div></div>