Dmtalon

Members
  • Posts

    160
  • Joined

  • Last visited

Everything posted by Dmtalon

  1. Well, the good news, is it truly is quite simple to get one up and running. I was able to by just clicking a few buttons and deciding where I wanted it. But it was a leap of faith of sorts because there was nothing around that showed how do do it in b10 That is sort of why I created my how to convert post. Not because I'm an expert (far from it) but I was able to do it pretty easy (by guessing) Here is my little write up. http://lime-technology.com/forum/index.php?topic=35531.msg330955#msg330955
  2. Just wanted to write up what I did last night/this morning that appears to have converted Plex from a Plug-in to a Container. I’ve been watching the Docker stuff on here, read some things, and felt pretty confused and not ready to attempt this but decided to give it a whirl anyway. Thanks for all the hard work that others have done to made it possible for me to point and click to create my first container. Note: Before you proceed you should probably make a copy/backup of your Plex Library. I would also go ahead and shut stop your Plex Plug-in as well. [glow=red,2,300]Original Setup:[/glow] unRAID version 6b10a SSD App drive via SNAP formatted XFS and mounted at /mnt/disk/Apps PhAzE's Plex Server Plugin First, I don’t have screen shots of before I started Docker, but I just clicked on the Docker tab in unRaid. I chose a location on my non-array App-drive, randomly decided on 4gb as the default image size, and added a template Repository. [glow=red,2,300]Starting Docker:[/glow] Click on Docker Tab of Unraid Add https://github.com/gfjardim/docker-containers/tree/templates (Thanks gfjardim) in the Template repository at the bottom of the page and click save. Determine the location you want to put the docker.img. I chose /mnt/disk/Apps/Docker/docker.img I chose to set the default image at 4GB Hit Start. [glow=red,2,300]Creating Plex Container:[/glow] Click on the Add Container Button and if you added the template repository, you can pull down the template selection and select Plex Media Server under needo. Then Here is my trial and error part. With PhAzE’s plex plug-in my config path was /mnt/disk/apps/plex. Under the plex container this won't work because the expected directory tree is different. Basically just one missing directory called “Application Support” needs to be inserted directly under Library and then move your "Plex Media Server" directory into that. One additional Note: Please make note of Upper/Lower Case, since this is a LINUX system So you need to modify your actual directory structure so that /path/to/plex/Library/Plex Media Server/ is now: /path/to/plex/Library/Application Support/Plex Media Server/ As an example: My original directory tree to Plex Media Server was as follows /mnt/disk/Apps/plex/Library/Plex Media Server/ I modified it by adding a new directory and moving "Plex Media Server" into it. /mnt/disk/Apps/plex/Library/Application Support/Plex Media Server/ Once you make that change in your directory structure you can use: /path/to/plex for the containers config "Host Path" and all should work. I made a copy of my Library directory called tempLibrary so I’m actually testing/using a path like this: /mnt/disk/Apps/plex/tempLibrary/Library/Application Support/Plex Media Server. I had to add the second Library directory because ‘Library’ is hard coded in the setup. So my /config points to /mnt/disk/Apps/plex/tempLibrary. I hope that makes sense. [update 10/1/14@9:15pm EST] One additional thing I had to do was change the owner of my Library from nobody:users to unraid-plex:users. i did this by logging into unRAID, going to /mnt/disk/Apps/ and issuing the command chown -R unraid-plex:users plex. the container seems to run as unraid-plex. Without this change the container seg faults. Don't click Apply Yet At this point I clicked apply and after downloading/installing I was able to see my existing library but unfortunately I wasn't able to play any movies because there’s no mounted drives for the docker. I started searching the forums and found the following thread that clued me in to my problem. http://lime-technology.com/forum/index.php?topic=34350.msg319555#msg319555 For this to work seemless (again this was trial and error for me) I created one container volume called /mnt and the host path is /mnt/. I did this instead of using /data in the above thread. What this does for me is allow all my existing library paths to work because they are already defined as /mnt/user/path/to/media. Obviously you would need to adjust this to fit your needs. If you do this up front during the creation I believe everything will go nice and smooth. I’ve not tested this as a single install since I was changing things on the fly. Note: don’t forget the / in front of your container volume I did this the first time and it made my container not show up in the webgui. Here shows the mount setup as it is right now for me. Now as long as you have your Plex Plugin stopped, your new container should be visible at the same url:port as the old. If the plug-in is running you’ll just see it. I have not disabled the plug-in or rebooted with auto start with docker yet so I may have to update this in the future. [update 10/8/2014 @ 11:24PM ET] I have since rebooted my server, and had one issue... Back when I was making my directory on my non array disk, I had created a share in SNAP called Apps. Apps absolute path was /mnt/disk/Apps. When initially setting this up, I created via SSH /mnt/disk/Docker. Apparently this created a mount point / temporary directory that after a reboot was gone. The very cool thing about docker is the fact that I only had to recreate the folder/image again (this time under Apps share) and select MY template and recreated the container. Took only a couple minutes and I was back up and running.
  3. Thanks for the reply. I'm actually going to try to write a post on exactly what I did including getting plex working. I had to do a little trial and error moving from the plug-in to docker to get my library right. I first made a copy of my Library and then played with that.. But, in the end right now my plex container is up and usable (albiet on my test Library). but until I add something new they're the same.
  4. So, After trying to figure out what to do to get docker running on 6b10 and failing I just decided to wing it. I went into the docker tab. First I found a repository from a thread here, so I added it to the config and clicked save https://github.com/gfjardim/docker-containers/tree/templates Then I set a location (outside array app drive formatted as xfs) created a Docker folder, and /mnt/my/location/Docker/docker.img 4gb default image Clicked start. From the docker page I clicked add container, selected Plex Media Server, then pointed config to the same disk (not my real plex config location since I'm just playing) and clicked apply. A new window popped up and installed/started plex. I couldn't get to the webgui because my other plex server (plex plugin) was running. So I stopped it and then I can magically get to my new plex container. Once my other plex server was stopped I could see the new one: I tried clicking advanced and changing the port that this Plex runs on (I guess I could do that through the gui now) but the original attempt under advanced didn't work. I've got a million quesitons. First, did I do this right? I mean it seemed to work but it was a total guess. Can I point /config to my actual library and will it just pick up my existing Plex library. Other than pulling Plex out of unraid, is there any advantages (performance/stability) to keeping with the container vs the plugin. That is of course other than it being the new cool thing to do :-)
  5. I rebooted onto 10a w/o updating the two plugins that seem to be showing updates. And everything started all the way up (libvirt/webvirtmgr) and my VM booted. I see this in plugin's though. Is it ok to install these updates? do I need to make any configuration changes?
  6. I think with any other directory that would work, but .ssh is a special directory with special permissions. The link would be to a file on flash that has 777 permissions (rwxrwxrwx) on the flash drive I can play with it and see unless someone already knows. But the link creation would be just to "ln -s /boot/config/ssh /root/.ssh" (.ssh can't already exist) Just not sure how all the permissions would work off the top of my head.
  7. I assume this is ok.. I clicked the remove, then installed using the URL in the plugin install box. Directory already existed. /usr/local/sbin/plugin install https://raw.githubusercontent.com/dmacias72/virtMan/master/virtMan.plg 2>&1 plugin: installing: https://raw.githubusercontent.com/dmacias72/virtMan/master/virtMan.plg plugin: downloading https://raw.githubusercontent.com/dmacias72/virtMan/master/virtMan.plg Warning: mkdir(): File exists in /usr/local/emhttp/plugins/plgMan/plugin on line 146 plugin: creating: /boot/config/plugins/virtMan/virtMan-2014.09.28.tar.gz - downloading from URL "https://github.com/dmacias72/virtMan/archive/2014.09.28.tar.gz" Warning: mkdir(): File exists in /usr/local/emhttp/plugins/plgMan/plugin on line 146 plugin: running: 'anonymous' mv: cannot move '/boot/config/plugins/virtman' to a subdirectory of itself, '/boot/config/plugins/virtMan/virtman' mv: '/boot/config/plugins/virtMan/virtman.img' and '/boot/config/plugins/virtMan/virtMan.img' are the same file mv: '/boot/config/plugins/virtMan/virtman.cfg' and '/boot/config/plugins/virtMan/virtMan.cfg' are the same fileplugin: installed Edit Sorry if I'm dense... This will allow me to remove my libvir start line from my go script? # Startup libvirt for beta 10 /etc/rc.d/rc.libvirt start
  8. You mean remove the current "Libvirt Support" from the Plugins directory, then reinstall it? I've rebooted in b10 w/o any issues. (just fyi)
  9. Oh, sorry. I do have virtman as well as WebVirtMgr installed. I did end up rebooting just to try it and my VM did auto-start. Do you have the array auto-start as well?
  10. If I have WebVirtMgr installed and set to autostart my VM, will that work? Or do I need to do it via the script? I did put the kill script into /boot/config/plugins/powerdown/rc.unRAID.d/
  11. Thanks, This was where I was confused... I wasn't sure if unRAID was special or if I just needed to created a .ssh and put my stuff there. I went ahead and generated a key pair and installed it normally and it worked. I created a small script to create the .ssh, chmod the dir, copy the authorized_keys (stored in /boot/config/ssh) to the .ssh dir and also chmod 700 it. This lived through a reboot. I'll go ahead and put my script here in case others want to see it. gossh.txt
  12. So, do we not generate our own key pair? are we supposed to copy the private key from unRAID? seems odd. Is there an unraid 6 ssh key setup how-to? Maybe I'm dense but its not working for me currently.
  13. Those parts were filled on by virt-manager from an Ubuntu VM I fired up for only that purpose. Look on page one here... Archedraft gave me that tip.
  14. Oh... Cool I guess I should have looked at the man page! Thanks
  15. I'm not sure I'm sophisticated, but I'm interested. Machine Specs: Asus Sabertooth 990FX R2.0 XFX ATI HD5450 PCIe AMD FX-8320 Black Crucial DDR3 8GB 1333 ECC I've currently got a Windows 7 VM w/PCIe Sound card passed through. I'm curious to know how the swat team would work. I'm going to be out of town til Monday also.
  16. So, I appear to have gotten this up and running even through an unRaid reboot.. I'm attaching my syslinux.cfg, my go script and Windows7.xml KVM config file for reference. I'm super happy now! I am now down to just one box in my server rack. Now I just gotta come up with a decent backup script for my VM Thanks for the help Windows7_xml.txt go.txt
  17. I asked above, but not sure if anyone saw it... is there a way to see what you bound already (aka whats live?) I was troubleshooting / trying lots of things and am not 100% sure where I ended up <sigh> you can't cat that new_id file, is there a way to recall that info with a command? Thanks!
  18. Right you are! root@NAS1:/boot/config# ls -l /usr/local/sbin/vfio-bind -rwxr-xr-x 1 root root 552 Sep 11 22:22 /usr/local/sbin/vfio-bind* So I'll edit my above statement
  19. So, turns out it lives in /usr/local/sbin so... # Script to enable passthrough /usr/local/sbin/vfio_bind <pci devices> Where <pci devices> are your actual devices you want to pass. Is there a way to confirm what vfio_bind has currently passed? I would like to confirm 100% before rebooting. I had changed so much I'd sure feel better being able to validate whats there now. edited: To change the built in vfio_bind location
  20. Hey peter_sm, That vfio_bind script. Does that live through a reboot, or does this need to be added into your go script?
  21. So, I think I've got this. It is actually right now playing music using Casatunes out of the sound card and through the house amp and into my son's room. I *believe* a couple things had me tripped up. One... Software (at least partially user error) the "sources" on Casatunes (what you want to play) have a check mark on them to be hidden. I've never used/checked those but all of them were checked. I assumed the lack of sources showing up was due to it not being able to access the actual card. I've installed Casatunes a half dozen times from scratch and never seen them checked. All of them were for some reason. Un-checking them allowed the sources to be seen. As for why the GUI was crashing... i thought I had an explanation for that, but I just tried to prove it, but couldn't. I thought whenever I was RDP into the windows box, the GUI was failing, but when not it wasn't. But it just worked on the server when remote desktop-ed in. I don't know why the GUI started working. I'm not sure if it's related to un-checking those buttons or what. Now, I'm afraid to reboot or touch anything!! Right now I only have one room connected because both unRaid and my amp are in a 42U rack and the are not close to one another. The cables I have don't reach. I just have one extension I had laying around that is allowing me to power one zone/room. I'm not going to mark this solved just yet. I want to make sure this will live through a reboot etc.
  22. I don't believe I had after swapping the card around. I did rerun peter's script using 06 device, but didn't see any changes. The card, seems to be ok in device manager, but I do not see it under sound devices still. I feel like I'm closer but still can't get this working. I appreciate all the input help!
  23. OK OK... Some good progress. I'm not *fixed* but I made progress. I swapped my PCIe card around and found a slot that put it and only it into a group. lspci 05:00.0 PCI bridge: Creative Labs [sB X-Fi Xtreme Audio] CA0110-IBG PCI to PCIe Bridge 06:00.0 Audio device: Creative Labs [sB X-Fi Xtreme Audio] CA0110-IBG Running peter's script to find groups: ### Group 17 ### 05:00.0 PCI bridge: Creative Labs [sB X-Fi Xtreme Audio] CA0110-IBG PCI to PCIe Bridge 06:00.0 Audio device: Creative Labs [sB X-Fi Xtreme Audio] CA0110-IBG I then used virt-manager from my ubuntu VM to add that device, and it added the following line: <hostdev mode='subsystem' type='pci' managed='yes'> <source> <address domain='0x0000' bus='0x06' slot='0x00' function='0x0'/> </source> When I rebooted Windows 7, I now see the sound card in Device manager. It showed up as a "High Definition Audio Device" which is fine, just needs drivers to identify itself correctly. Driver installed. On with my software setup. That seemed to go well, however not 100%. The application setup page works ok and it seems I can setup things as I should be. But when trying to use the application it has some issues/crashes. (it's a web based IIS driven install). The other notable thing is the sound card (correctly identified in Device Manager) is not showing up under control panel devices. On my bare metal install the device did show up there, and of course the application worked correctly. While none of you likely knows much about Casatunes, below is the error its getting when trying to run. I'm closer... but as before any advice would be appreciated.
  24. I never got to see what virt-manager actually put in there when I passed everything through. when unraid dropped the flash drive and network card I had to reboot with the array up. and that .xml got corrupt. root@NAS1:/etc/libvirt/qemu-delete# ls -l /bin/ls: cannot access Windows7.xml: Input/output error total 0 -??? ? ? ? ? ? Windows7.xml But my current one (which is pre-trying to use virt-manager is below) I do have a line at the bottom where I was trying to pass device 8 through. <!-- WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE OVERWRITTEN AND LOST. Changes to this xml configuration should be made using: virsh edit Windows7 or other application using the libvirt API. --> <domain type='kvm'> <name>Windows7</name> <uuid>46940f86-2486-43ed-9248-3f62f9e900a2</uuid> <memory unit='KiB'>2929688</memory> <currentMemory unit='KiB'>1953125</currentMemory> <vcpu placement='static'>2</vcpu> <resource> <partition>/machine</partition> </resource> <os> <type arch='x86_64' machine='pc-q35-2.1'>hvm</type> <loader>/usr/share/qemu/bios-256k.bin</loader> <boot dev='cdrom'/> </os> <features> <acpi/> <apic/> </features> <cpu mode='host-passthrough'> </cpu> <clock offset='localtime'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <devices> <emulator>/usr/bin/qemu-system-x86_64</emulator> <disk type='file' device='disk'> <driver name='qemu' type='qcow2'/> <source file='/mnt/cache/VMs/Windows7/windows7.qcow2'/> <target dev='vda' bus='virtio'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/ > </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/mnt/cache/VMs/Windows7/Windows7ProX64.iso'/> <target dev='sdc' bus='sata'/> <readonly/> <address type='drive' controller='0' bus='0' target='0' unit='2'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/mnt/cache/VMs/Windows7/virtio-win-0.1-81.iso'/> <target dev='sdd' bus='sata'/> <readonly/> <address type='drive' controller='0' bus='0' target='0' unit='3'/> </disk> <controller type='sata' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/ > </controller> <controller type='pci' index='0' model='pcie-root'/> <controller type='pci' index='1' model='dmi-to-pci-bridge'> <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/ > </controller> <controller type='pci' index='2' model='pci-bridge'> <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/ > </controller> <interface type='bridge'> <mac address='52:54:00:4a:af:92'/> <source bridge='br0'/> <model type='rtl8139'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/ > </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> <graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='0.0.0.0 '> <listen type='address' address='0.0.0.0'/> </graphics> <video> <model type='cirrus' vram='9216' heads='1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/ > </video> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/ > </memballoon> </devices> <qemu:commandline> <qemu:arg value='-device'/> <qemu:arg value='vfio-pci,host=00:08.0,bus=pcie.0'/> </qemu:commandline> </domain> The one thing that webvirtmgr did is put in some pci devices (address type=pci ... ) those are in there and there are a couple devices that seem to show up (pcie/pci) in virt-manager. I was wondering if I could find the right pcie slot if I could get the card passed through.
  25. Well, that didn't go so well. I got ubuntu and virt-manager up with help from archedraft. I then tried adding the sound card. Started the VM up, and more or less got the same message as above. Stating I need to include everything in group 13 before its gonna work. Even though I had a bad feeling about it I decided what the hell.. I went ahead and moved it all to the VM. That proceeded to knock my unraid off the network and wipe out flash drive connectivity. I ended up having to reboot from the console w/o stopping the array. w/o the flash drive I couldn't stop samba, therefore couldn't stop the array. <sigh> Maybe there's some trick someone else knows about but I'm not liking my chances of getting this going. I mean I could probably put in another NIC, and move my flash drive to another usb slot, but I'm not convinced thats gonna work. I'm, of course open to any ideas