Jump to content

htpcnewbie

Members
  • Posts

    295
  • Joined

  • Last visited

Posts posted by htpcnewbie

  1. Good start Justin, I have been thinking about this as well but haven't had the time to dig into details. Will keep a tab on your progress, good luck!

     

     

    I'm running the latest beta (6.0-beta14b) and have a Windows8 VM running with KVM.  I have several dockers running also, but nothing to exotic.

     

    I've installed a VPN on my fast router, but it KILLS the throughput, so I've been reading a bit about pfsense, and it seems like a good option for me, but since I'm not at all a network person, it's pretty over my head.

     

    So, I'm wondering if anyone has pfsense running on KVM, and if so, could/would they share with me how to get it setup and running on unRAID?

     

    My motherboard has dual NICs, and I have a separate Intel NIC I can install in addition if that makes the process any easier/better.

     

    Thanks in advance for any help!

  2. +1 on b12 until the b13 issues are sorted out. Can you please elaborate on what does vm-tools help with? I would love to have the ability of some programs (like Plex) bypassing the VPN. (not related to vm tools at all)

     

    EDIT: open vm tools: http://open-vm-tools.sourceforge.net/about.php

     

    http://unraid.zeron.ca/plugins/open-vm-tools/openVMTools.plg

     

    Finally work with unRAID 6.

    Requires the Powerdown package.

     

    Currently compiled for the beta13 Kernel.  Will update to B14 when it is out assuming they do not switch to kernel 3.19 as it will not yet compile with that kernel version.

  3. dmacias - That would be great. Selecting a location and backup frequency (eg days) would be very welcome. However if the VM needs to be stopped before taking a snapshot would introduce some uncertainty and confusion I guess.

     

     

    I noticed earlier you mentioned that a way to do backups was on your to-do list. Have you given this any extra thought?

     

    I was thinking of maybe creating incremental rolling backups of my images with rdiff-backup, but it doesn't look like there is a readily available unraid plugin for it. WeeboTech's rsync_linked_backup script may also work, but it doesn't look like it includes backup expiration so I would have to manually remove old backups.

     

    Just curious how you would tackle automatic backups of entire qcow2 images.

     

    My plan was to add another table above snapshots and allow multiple cloning of the image to a folder of choice probably using rsync. But I really wasn't looking at automatic right now. Just manual. But I'm open to ideas on how automatic should work and look. Which could also lead to automatic snapshots.

     

    But really I try to keep in mind to try and keep things simple.

     

  4. ++1

     

    I would love this ability too. The last I heard (about a year ago)  was that this currently is not possible. Only the kvm's do not get routed through the VPN client. I am. Using Peter's  VPN client.

    Is there any way for me to setup openvpn client connections on selected docker containers, so that they use a VPN connection going out, but everything else is routed regularly?  This would be great for putting on Sab and Transmission.

     

    Thanks.

     

  5. dmacias - Is using the VNC different from using remote desktop (RDP)? on my Win 8.1 KVM which has GPU passthrough I regularly use MS RDP from another Windows machine. I assume a similar option maybe available using XRDP in Linux env. Can this function in lieu of the VNC or is there more functionality in using a VNC compared to this RDP?

     

    Is there any way to have a discrete graphics card passthrough and still have VNC access to the VM at a bios level?  It would really help with troubleshooting my VM's remotely.  Currently having a "Disk check" issue with my VM that I was hoping to not have to redo the XML in order to troubleshoot it remotely.

     

    No there's no way to have both. However you could edit your xml. Copy the content and paste in as a new xml. Then change the uuid by one number/letter and remove the passthrough.  Then you would have 2 separate vm's pointing to the same image and you could run one or the other when needed.

     

    Also have you run qemu-img check on the image?

  6. dlandon - You were right, it works now. I had to remove the existing one and reinstall the plugin. Thank you!

     

    I also updated to the latest Dynamix webgui and don't see the problem.  It almost looks like you have an older version of SNAP.  The plugin and SNAP itself are updated separately.  Just updating the plugin doesn't update SNAP.  SNAP updates are best done on the SNAP web page.  SNAP and the plugin both will be updated through the SNAP web page.

     

    I would do the following in order:

    - Reboot.

    - Remove SNAP plugin and re-install through the plugin web page.

  7. dlandon - I cleared the browsing cache and also tried in IE which I never use. I get a blank page. I am using which has a release date of 2014.12.17. This happened soon after I updated LT's Dynamix release yesterday. I am also attaching few snapshots of the Snap settings page GUI and my plugins. Am I missing anything here?

     

    Thank you for your plugin, I use it frequently and is very helpful.

     

    Not seeing the issue here.  Try clearing your browser cache.  Be sure you are using the latest version of SNAP.

  8. Glad you got it figured, the key part is done!

     

    You can add USB by their vendor and product id's. I don't think it will be plug n play but as long as you don't keep adding and removing devices that need to go to the vm,  it will be okay. Below is a snippet of my xml code when I had the USB devices added. You should be able to get the USB device info from devices tab in unraid gui.

     

     

        <input type='tablet' bus='usb'/>

        <hostdev mode='subsystem' type='usb' managed='no'>

          <source>

            <vendor id='0x046d'/>

            <product id='0x082d'/>

          </source>

        </hostdev>

        <hostdev mode='subsystem' type='usb' managed='no'>

          <source>

            <vendor id='0x04d8'/>

            <product id='0x003f'/>

          </source>

        </hostdev>

        <hostdev mode='subsystem' type='usb' managed='no'>

          <source>

            <vendor id='0x0471'/>

            <product id='0x0815'/>

          </source>

        </hostdev>

        <hostdev mode='subsystem' type='usb' managed='no'>

          <source>

            <vendor id='0x046d'/>

            <product id='0xc713'/>

          </source>

        </hostdev>

     

    htpc--you are awesome

     

    8)

     

    I have passthrough. I have video. Now I just need to pass through some usb so I can interact with it.

     

    Can i pass through solitary usb items, or so I need to passthrough a usb card (I have one)

     

     

    EDIT: archedraft and I pass the controller for USB. If you can figure that out quickly that's the best option. I would recommend trying the USB device first and having that accomplishment grin before messing with the vfio-bind and rebooting the server multiple times.

  9. Thanks dmacias, I figured as much. As you guessed, the files in the disk got corrupted, no big deal as I was just checking with samples files. I am using Windows, so I am out on 9p sharing. It would have been nice if M$ included the 9p sharing ability in Win 8.1.

     

    I think what your asking is if you can mount a drive in unRAID and in windows. If that's the question then no. Mounting a partition in two different operating systems will cause corruption. The only way is with a cluster file system or networking. If it was linux you could do 9p file sharing.

  10. The vfio-bind addresses seem correct but the intel/amd passthrough in syslinux.cfg is missing. You need to have that to enable passthrough. I think for intel board it should be "append intel_iommu=on vfio_iommu_type1.allow_unsafe_interrupts=1 pcie_acs_override=downstream initrd=/bzroot

    "

    Also make sure you have the qemu lines in the xml file.

     

     

    I don't think I am binding the GPU card to the vfio driver. Let me know if you see anything....

     

    the following is my go script in its entirety:

    #!/bin/bash
    # Start the Management Utility
    /usr/local/sbin/emhttp &
    
    #automount SNAP disk(s)
    /boot/config/plugins/snap/snap.sh -ms dockerdisk
    /boot/config/plugins/snap/snap.sh -ms vmdisk
    
    #bindpci
    /usr/local/sbin/vfio-bind 0000:01:00.0 0000:01:00.1
    

     

    this is the output of lspci

    00:00.0 Host bridge: Intel Corporation Haswell DRAM Controller (rev 06)
    00:01.0 PCI bridge: Intel Corporation Haswell PCI Express x16 Controller (rev 06)
    00:02.0 VGA compatible controller: Intel Corporation Haswell Integrated Graphics Controller (rev 06)
    00:03.0 Audio device: Intel Corporation Haswell HD Audio Controller (rev 06)
    00:14.0 USB controller: Intel Corporation Lynx Point USB xHCI Host Controller (rev 04)
    00:16.0 Communication controller: Intel Corporation Lynx Point MEI Controller #1 (rev 04)
    00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-V (rev 04)
    00:1a.0 USB controller: Intel Corporation Lynx Point USB Enhanced Host Controller #2 (rev 04)
    00:1b.0 Audio device: Intel Corporation Lynx Point High Definition Audio Controller (rev 04)
    00:1c.0 PCI bridge: Intel Corporation Lynx Point PCI Express Root Port #1 (rev d4)
    00:1c.2 PCI bridge: Intel Corporation Lynx Point PCI Express Root Port #3 (rev d4)
    00:1c.3 PCI bridge: Intel Corporation Lynx Point PCI Express Root Port #4 (rev d4)
    00:1c.4 PCI bridge: Intel Corporation Lynx Point PCI Express Root Port #5 (rev d4)
    00:1d.0 USB controller: Intel Corporation Lynx Point USB Enhanced Host Controller #1 (rev 04)
    00:1f.0 ISA bridge: Intel Corporation Lynx Point LPC Controller (rev 04)
    00:1f.2 SATA controller: Intel Corporation Lynx Point 6-port SATA Controller 1 [AHCI mode] (rev 04)
    00:1f.3 SMBus: Intel Corporation Lynx Point SMBus Controller (rev 04)
    01:00.0 VGA compatible controller: AMD/ATI [Advanced Micro Devices, Inc.] Cedar [Radeon HD 5000/6000/7350 Series]
    01:00.1 Audio device: AMD/ATI [Advanced Micro Devices, Inc.] Cedar HDMI Audio [Radeon HD 5400/6300 Series]
    03:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)
    04:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
    05:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)

     

    I had two other PCI cards plugged in (a usb and a sata controller) that I pulled out so I could focus on the task at hand.

     

    Oh, and syslinux.cfg for good measure

    default /syslinux/menu.c32
    menu title Lime Technology
    prompt 0
    timeout 50
    label unRAID OS
      menu default
      kernel /bzimage
      append pcie_acs_override=downstream initrd=/bzroot
    label unRAID OS Safe Mode (no plugins)
      kernel /bzimage
      append initrd=/bzroot unraidsafemode
    label Memtest86+
      kernel /memtest
    label Xen/unRAID OS
      kernel /syslinux/mboot.c32
      append /xen --- /bzimage --- /bzroot
    label Xen/unRAID OS Safe Mode (no plugins)
      kernel /syslinux/mboot.c32
      append /xen --- /bzimage --- /bzroot unraidsafemode

  11. I have seen the GUI non-responsive couple of times when attempting to clean stop, maybe something in my VM settings could be the cause. I am more comfortable with the terminal and hence I have used it to stop and start the VM. The Win 8.1 installation on my system behaves pleasantly strange. The VM goes into a 'suspend' mode. When I destroy and restart it, it seems the VM starts from a suspend state, all the previous windows are back on. Copied below is my terminal script. I also use this script through my Android phone using "Script Kitty" and it works perfectly.

     

    root@Tower:~# cat /boot/bin/restartvm.sh

    virsh destroy win81pci2
    virsh start win81pci2
    
    

     

    As for the installation part, I have edited the xml's manually and used the GUI only for creating the VM's and hence cannot help much there.

     

    I still haven't fixed this, but here is what I tried:

     

    - Reverted my syslinux.cfg and go scripts

    - Rebooted

    - Created a new vanilla test VM with VM Manager and chose to create a new disk

    - Started VNC - Success.

     

    This worked, however I tried forcing the domain to shutdown with the eject button in VM Manager. This shut down the domain, but now it will not start back up and I get the same boot device error. Why does forcing the domain to shutdown cause this to happen?

     

    This persists through a reboot. It looks like forcing the domain to shutdown possibly corrupted the disk image. Can anyone else confirm?

     

    Is there a better way to shutdown when the standard graceful shutdown in VM Manager does not work?

  12. I'd second what the previous poster said. Make a copy of the VM. There are two things you will need to do for passthrough:

    a. add vfio-bind to the address - the video and audio

    b. Disable VNC passthrough in your xml and add the corresponding qemu lines for passthrough devices.

     

    Look in my signature for a link to xml. The thread also has some discussion on what the addresses are for and could help in your understanding of the pci addresses and how to modify the xml file. Give a shout if you need help.

     

    Okay. So, trying to build a Win7 VM with passthrough. Hardware is totally capable. I have run a test and created a Win7 VM without passthrough and it worked.

     

    I have added the append line in my syslinux.cfg. I have a Win7 iso and Virtio iso ready. I have looked at system devices and know where my GPU is located.

     

    I think I know how to use vfio-bind 0000:0#:00.0 0000:0#:00.1...

     

    So, to build a passthrough VM, can I use the VM manager to build the VM, install the OS and then go back and add the GPU stuff to the xml? If not, what's the right order to do things?

  13. Oh okay, thanks Sparkly. I have been going round in circles since last night due to that connection lost message. Where do you pass the video library to be added? Any recommended link to help me configure the client gui? Thanks!

    VCdnv4k.png

     

    my install is doing everything it should and i get that error clicking on the master profile thing.

     

     

    there's not really much you can do with that webui at all. it's best just left well alone.

     

  14. Looks like I am missing something else.

     

    1. deleted /mnt/cache/SSD2/apps/kodi < install for kodi

    2. deleted /mnt/cache/SSD2/apps/mariadb < install for mariadb

    3. Started mariadb

    4. Connected to mariadb from windows, created user/pass as xbmc/xbmc with Global Rights (attached pic 1)

    5. Started kodi with docker template settings (attached pic 2)

    5. Clicked on Kodi docker Gui and connected to 10.10.1.121:8089

    6. clicked on Profiles > master pass and got "Connection to server lost" (attached picture 3)

     

    What am I missing here?

     

    You should probably drop all the tables in the mariadb as well and start over, if sparkly's suggestions don't do it.

     

    Since you don't have any data (sql data) to loose, just start over.

     

    Purge the DB, then restart it (or trash the entire DB folder/etc) and make a new one, then log into it and make a user xbmc/xbmc and give it global rights. Then restart/remake your headless kodi install.

     

    Also got a laptop/desktop/etc with kodi? Use it to check that your DB is up and working before the headless one, then we know its not a sql error.

    kodi-docker.gif.6ce1ec452fd7bc69549687693407837d.gif

    kodi-gui.gif.61b53096ae759692fcebae245cf68125.gif

    heidisql.gif.913ef043e359966759fde5c0ef7cf33d.gif

  15. I have been looking at editing the container and the template instructions didn't register, thanks for the reminder. The reason I asked was I had initially set it up as my unraid server ip last night from the template description but was still getting connection lost error. I am kind of lost now and do not know what else to check. There aren't many options to cross-check since this is a new installation. I will take a break from setting this up for now. Thanks your suggestion and help though.

     

     

    MYSQLip :- IP address of your mysql installation [br][b]YOU MUST USE IP ADDRESS AND NOT HOST NAME[/b][br]

     

     

    it's written in the description of the template mate.

  16. I didn't know that and I learnt something new today, thanks. I now changed the host ip to % in HeidiSQL, defined xbmc:xbmc for MYSQLuser/pass in Kodi docker. Does the MYSQLip remain as my unraid ip (10.10.1.121) or changes to localhost?

     

    change the host for the xbmc user to %

     

    the way you have it set has two things wrong, docker to docker networking is internal when in bridge mode, they have their own dhcp setup and ip range, and the other is that even if it weren't, the only host that could use that username would be on your unraid server itself.

     

    that kinda defeats the purpose of a mysql setup.

  17. Sparkly - Still not working :( I have copied snapshots below, can you have a look? The IP address 10.10.1.121 is the unraid server address.

     

    auto-generated advancedsettings.xml

    <videodatabase>
    <type>mysql</type>
    <host>10.10.1.121</host>
    <port>3306</port>
    <user>xbmc</user>
    <pass>xbmc</pass>
    </videodatabase>
    <musicdatabase>
    <type>mysql</type>
    <host>10.10.1.121</host>
    <port>3306</port>
    <user>xbmc</user>
    <pass>xbmc</pass>
    </musicdatabase>
    
    <services>
    <devicename>XBMC Server</devicename>
    <esallinterfaces>false</esallinterfaces>
    <escontinuousdelay>25</escontinuousdelay>
    <esenabled>true</esenabled>
    <esinitialdelay>750</esinitialdelay>
    <esmaxclients>20</esmaxclients>
    <esport>9777</esport>
    <esportrange>10</esportrange>
    <upnpannounce>true</upnpannounce>
    <upnprenderer>false</upnprenderer>
    <upnpserver>true</upnpserver>
    <webserver>true</webserver>
    <webserverpassword>xbmc</webserverpassword>
    <webserverport>8080</webserverport>
    <webserverusername>xbmc</webserverusername>
    <webskin>webinterface.default</webskin>
    <zeroconf>true</zeroconf>
    </services>
    

     

     

    use xbmc and xbmc for MYSQLuser and MYSQLpass in the template screen itself, if you do that you should have little reason to mess with advancedsettings.xml unless there is a specific tweak you wish to set or some of the ones i have added in there don't suit you.

    kodi-gui.gif.87b7befec3ca0bca195348631f0578fb.gif

    kodi-docker.gif.9c2cff4e5534767640556d40e4d1cdf5.gif

    heidisql.gif.c85a799605712a837e4a3a164b807f59.gif

  18. Thanks Sparkly, I am still having difficulty in accessing the database from kodi, get connection lost message.

     

    a. I created a user and pass in HeidiSQL with xbmc and xbmc with Global privileges. Is the IP address localhost (I currently have this defined) or the IP of the server address?

     

    b. The default Mariadb login user and passwd is root:<none>. This is what I used in the definition of kodi container definition. Copied below is my advancedsettings.xml.

     

    Seems like I am still not doing something right..

     

    advancedsettings.xml

    <videodatabase>
    <type>mysql</type>
    <host>10.10.1.121</host>
    <port>3306</port>
    <user>root</user>
    <pass></pass>
    </videodatabase>
    <musicdatabase>
    <type>mysql</type>
    <host>10.10.1.121</host>
    <port>3306</port>
    <user>root</user>
    <pass></pass>
    </musicdatabase>
    
    <services>
    <devicename>XBMC Server</devicename>
    <esallinterfaces>false</esallinterfaces>
    <escontinuousdelay>25</escontinuousdelay>
    <esenabled>true</esenabled>
    <esinitialdelay>750</esinitialdelay>
    <esmaxclients>20</esmaxclients>
    <esport>9777</esport>
    <esportrange>10</esportrange>
    <upnpannounce>true</upnpannounce>
    <upnprenderer>false</upnprenderer>
    <upnpserver>true</upnpserver>
    <webserver>true</webserver>
    <webserverpassword>xbmc</webserverpassword>
    <webserverport>8080</webserverport>
    <webserverusername>xbmc</webserverusername>
    <webskin>webinterface.default</webskin>
    <zeroconf>true</zeroconf>
    </services>
    

     

     

    you need to create a specific user in mariadb with full privileges, use the user name and password combo in the template screen for the docker itself.

     

    don't mess about with profiles, and the web interface itself is flaky at best.

  19. Hi - Need some help doing a fresh install of kodi-server (no db import) and mariadb. I installed the kodi-headless using the template (picture attached below) and installed needo/mariadb using

    docker run -d --name=mariadb -v /mnt/disk/SSD2/apps/mariadb:/db -v /etc/localtime:/etc/localtime:ro -p 3306:3306 needo/mariadb

     

    Installed HeidiSQL on my stand alone Windows computer and connected to MariaDB using the ip, user:root and pass:<none>. The database seems to work. My profiles.xml and advancedsettings.xml are copied below and seem to be consistent with what I read here. In Kodi-headless, after I click profiles and select the "Master user", I get connection lost red highlight box on top. Do I need to create a specific user in HeidiSQL and use that in profiles.xml? Looks like I am missing a trivial detail here. Also, how do I create new users in HeidiSQL? Thanks!

     

    profiles.xml

    <profiles>
        <lastloaded>0</lastloaded>
        <useloginscreen>false</useloginscreen>
        <autologin>-1</autologin>
        <nextIdProfile>1</nextIdProfile>
        <profile>
            <id>0</id>
            <name>Master user</name>
            <directory pathversion="1">special://masterprofile/</directory>
            <thumbnail pathversion="1"></thumbnail>
            <hasdatabases>true</hasdatabases>
            <canwritedatabases>true</canwritedatabases>
            <hassources>true</hassources>
            <canwritesources>true</canwritesources>
            <lockaddonmanager>false</lockaddonmanager>
            <locksettings>0</locksettings>
            <lockfiles>false</lockfiles>
            <lockmusic>false</lockmusic>
            <lockvideo>false</lockvideo>
            <lockpictures>false</lockpictures>
            <lockprograms>false</lockprograms>
            <lockmode>0</lockmode>
            <lockcode></lockcode>
            <lastdate>01/17/2015 - 6:45 AM</lastdate>
        </profile>
    </profiles>
    

     

    advancedsettings.xml (truncated)

    <videodatabase>
    <type>mysql</type>
    <host>10.10.1.121</host>
    <port>3306</port>
    <user>root</user>
    <pass></pass>
    </videodatabase>
    <musicdatabase>
    <type>mysql</type>
    <host>10.10.1.121</host>
    <port>3306</port>
    <user>root</user>
    <pass></pass>
    </musicdatabase>
    
    <services>
    <devicename>XBMC Server</devicename>
    <esallinterfaces>false</esallinterfaces>
    <escontinuousdelay>25</escontinuousdelay>
    <esenabled>true</esenabled>
    <esinitialdelay>750</esinitialdelay>
    <esmaxclients>20</esmaxclients>
    <esport>9777</esport>
    <esportrange>10</esportrange>
    <upnpannounce>true</upnpannounce>
    <upnprenderer>false</upnprenderer>
    <upnpserver>true</upnpserver>
    <webserver>true</webserver>
    <webserverpassword>xbmc</webserverpassword>
    <webserverport>8080</webserverport>
    <webserverusername>xbmc</webserverusername>
    <webskin>webinterface.default</webskin>
    <zeroconf>true</zeroconf>
    </services>
    
    

    kodiinstall.jpg.0f334d85330e30bd18ef35e2f9623199.jpg

  20. I am trying get started setting up a kodi server. Installed Mariadb but little lost at this point on what to do. Can someone help with a quick walk through for a fresh install to get this docker for kodi server and the appropriate setup for kodi client?

     

    Sounds good, let me know when it's ready, I did clear the db folder ....

     

    Appreciate your assistance.

     

     

    another build finished,  with this "stable" build.

     

    have removed the EDGE routine, because if this stable version works better, running edge to update will screw it up again.

  21. Excellent detailed write up and will be very helpful for new users starting dockers, thank you for helping the community.

     

    I think the only reason some people think plugins are easier to use than dockers is because they have already used plugins and have already gotten through some of the problems they had trying to use plugins.

     

    If I were starting from scratch, I think I would consider dockers actually easier to set up than plugins. The whole process is handled much more consistently than plugins were and it is all done in the webGUI.

     

    Also, as mentioned dockers don't create the dependency mess that plugins did.

     

    well I decided to try out docker and try and learn how to set it up and it is pretty easy now that I have messed with it.  I made a guide as there doesn't seem to be a guide for the new interface. here is the link.  http://lime-technology.com/forum/index.php?topic=37732.0

  22. Depending upon the motherboard, the in-built usb ports are on few pcie controllers. I did not add a card, I passed the in-built Intel USB controller to KVM (ASMedia controller passthrough did not work for me). If you can identify and map out which usb ports reside on what controllers, you can pass a specific controller corresponding to those usb ports needed in Windows KVM. The thread linked in signature shows a suggested approach by "archedraft" on how you can identify usb ports and its controllers. In some cases, it may not work and that's when an add-on usb pci card would be helpful. I have seen users who have been able to passthrough pci in Win7 as well, I do not think you can tell whether it will not work before trying. I recommend you passthrough the video and audio using your current Win7 setup and see what it can't do before buying additional hardware. To that effect, assume this Win7 may not be used and spend the effort in setting up the KVM, you can translate this Win7 KVM setup xml file easily to Win 8.1 if needed. Windows 8.1 Pro education license is $69 if any of your kids are in college/school (after verifying their academic email addr).

     

    I'm sitting at work, reading your post.  So you added a pcie usb port card to your mobo and pass it (the whole card) through to win8.1 and this way it doesn't mess with the unRaid OS.  Am I reading that right?  If so, what usb card are you using, our boards are somewhat the same, so I might have to make a run to MicroCenter for a card and Win8.1.

     

    Thanks...Dave

×
×
  • Create New...