-
Posts
1,879 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
Gallery
Bug Reports
Documentation
Landing
Posts posted by johnodon
-
-
So, this whole issue with randomly changing USB device IDs...is this a Linux issue? A KVM issue?
Just wondering why I never saw this problem in ESXi? Does ESXi do some of it's own funky remapping to keep consistent IDs?
John
I don't know if this could work. But I was looking at assigning usb with udev rules. Give each usb device a unique name based on serial number. Then you could look up device id from that? and insert into vm xm.
I'd be willing to try this if you have anything you want me to test.
John
-
Do you mean an external USB hub plugged into a USB port?
My understanding was that if you passthrough a USB hub you will not be able to see the devices attached to it to pass those through. Anyway, wouldn't I be in the same situation with the hub being assigned a different device ID at random?
I haven't tried...just what I read.
Or are you talking about an internal USB controller?
John
Are you stuck on using flirc or could you use one flirc and multiple rc6 ir receivers from different vendors?
Yeah...I'm just being hard-headed. I do have an extra M$ Media Center remote/receiver. I can use that for now on the one TV that has a long USB run with the flirc pluged into the end. The other is plugged directly into the server and I use an IR blaster from that to the TV.
Thanks for the push dmacias.
John
-
Do you mean an external USB hub plugged into a USB port?
My understanding was that if you passthrough a USB hub you will not be able to see the devices attached to it to pass those through. Anyway, wouldn't I be in the same situation with the hub being assigned a different device ID at random?
I haven't tried...just what I read.
Or are you talking about an internal USB controller?
John
-
So, this whole issue with randomly changing USB device IDs...is this a Linux issue? A KVM issue?
Just wondering why I never saw this problem in ESXi? Does ESXi do some of it's own funky remapping to keep consistent IDs?
John
-
Sigh...now KVM is taking it upon itself to inject the USB device address into my XML.
I went back to using vendor and product IDs:
<hostdev mode='subsystem' type='usb' managed='no'> <source> <vendor id='0x20a0'/> <product id='0x0001'/> </source> </hostdev>
I then started the VM and noticed this when I viewed the XML...
<hostdev mode='subsystem' type='usb' managed='no'><source>
<vendor id='0x20a0'/>
<product id='0x0001'/>
<address bus='6' device='3'/>
</source>
</hostdev>
-
Well, it was too good to be true.
While the above works, USB ports have a nasty habit of changing their device IDs on the fly (or whenever a VM is stopped, started, restart).
So, still investigating.
John
-
For anyone who cares, here is my final working XML for XBMCBuntu Gotham with GPU and USB passthrough (by bus/device IDs...not vendor/product IDs):
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'><name>HTPCFAMRM</name>
<uuid>c43b7542-b40b-495f-90ab-aaa4eec68e8a</uuid>
<memory unit='KiB'>4194304</memory>
<currentMemory unit='KiB'>4194304</currentMemory>
<memoryBacking>
<nosharepages/>
<locked/>
</memoryBacking>
<vcpu placement='static'>4</vcpu>
<cputune>
<vcpupin vcpu='0' cpuset='0'/>
<vcpupin vcpu='1' cpuset='1'/>
<vcpupin vcpu='2' cpuset='2'/>
<vcpupin vcpu='3' cpuset='3'/>
</cputune>
<os>
<type arch='x86_64' machine='pc-q35-2.1'>hvm</type>
<boot dev='hd'/>
<bootmenu enable='no'/>
</os>
<features>
<acpi/>
<apic/>
</features>
<cpu mode='host-passthrough'>
<topology sockets='2' cores='2' threads='1'/>
</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' cache='none' io='native'/>
<source file='/mnt/cache/VMs/HTPCFAMRM.qcow2'/>
<target dev='vdc' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<source file='/mnt/user/Images/xbmcbuntu-13.0~gotham_amd64.iso'/>
<target dev='hdb' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
</disk>
<controller type='usb' index='0' model='ich9-ehci1'>
<address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x7'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci1'>
<master startport='0'/>
<address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0' multifunction='on'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci2'>
<master startport='2'/>
<address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x1'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci3'>
<master startport='4'/>
<address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x2'/>
</controller>
<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>
<controller type='ide' index='0'/>
<interface type='bridge'>
<mac address='52:94:00:d0:c0:dc'/>
<source bridge='br0'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/>
</interface>
<hostdev mode='subsystem' type='usb' managed='no'>
<source>
<address bus='6' device='3'/>
</source>
</hostdev>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x02' slot='0x04' function='0x0'/>
</memballoon>
</devices>
<seclabel type='none' model='none'/>
<qemu:commandline>
<qemu:arg value='-device'/>
<qemu:arg value='ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1'/>
<qemu:arg value='-device'/>
<qemu:arg value='vfio-pci,host=83:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on'/>
<qemu:arg value='-device'/>
<qemu:arg value='vfio-pci,host=83:00.1,bus=pcie.0'/>
</qemu:commandline>
</domain>
-
W00t!
USB Passthrough using bus/device IDs:
<hostdev mode='subsystem' type='usb' managed='no'> <source> <address bus='6' device='3'/> </source> </hostdev>
Works like a friggin champ!
-
I think this may have worked (or at least it didn't yell at me). I won't know until I get the OS installed.
<hostdev mode='subsystem' type='usb' managed='no'> <source> <address bus='8' device='2'/> </source>
root@unRAID:~# lsusb Bus 002 Device 003: ID 0951:1625 Kingston Technology DataTraveler 101 II Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 008 Device 002: ID 20a0:0001 Clay Logic Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 002: ID 20a0:0001 Clay Logic Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 002: ID 046b:ff10 American Megatrends, Inc. Virtual Keyboard and Mouse Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
-
From what I have read, the code to passthrough a USB device (flirc in my case) is as follows:
<hostdev mode='subsystem' type='usb' managed='no'> <source> <vendor id='0x20a0'/> <product id='0x0001'/> </source> </hostdev>
My question is what if you have multiple "like" USB devices to passthrough to multiple VMs. For example, I have 2 flircs and each is passed through to separate WIN8 VMs. The code above is not USB port specific (only vendor/product) so how can this be accomplished?
John
This is possible, but we have to pass additional attributes to indicate the specific flirc by device id. I'll test this out today and see if I can get you some XML to try out.
Thanks Jon.
Found some info here: https://bbs.archlinux.org/viewtopic.php?id=167074
As I understand it, host:bus.addr is an alternative to host:vendor_id:product_id. So if I wanted to pass both of these thumb drives:$ lsusb
Bus 001 Device 002: ID 1e3d:2093 Chipsbank Microelectronics Co., Ltd CBM209x Flash Drive (OEM)
Bus 001 Device 003: ID 1e3d:2093 Chipsbank Microelectronics Co., Ltd CBM209x Flash Drive (OEM)
...
I would use host:001.002 and host:001.003 . Note I said would use, because I've never tried it.
And usb_add is a qemu monitor command. See sections 3.4 and 3.5 of the doc you linked for info on the monitor.
All this being said, I don't use libvirt stuff so I don't know if it has the capability to specify USB devices by bus.addr or whether or not it enables the monitor.
According to the above, should I change the USB passthrough section to look like this:
<hostdev mode='subsystem' type='usb' managed='no'> <source> <host:001.002/> </source> </hostdev>
I'm guessing it isn't this simple.
John
-
From what I have read, the code to passthrough a USB device (flirc in my case) is as follows:
<hostdev mode='subsystem' type='usb' managed='no'> <source> <vendor id='0x20a0'/> <product id='0x0001'/> </source> </hostdev>
My question is what if you have multiple "like" USB devices to passthrough to multiple VMs. For example, I have 2 flircs and each is passed through to separate WIN8 VMs. The code above is not USB port specific (only vendor/product) so how can this be accomplished?
John
-
Made the decision a long time ago to drop support for IE7 and lower.
Hi Tom, should you add code to block access to IE7 and below? for example a windows that says IE8.0 or greater etc...
-- Sideband Samurai
IE users can just use chrome frame, you dont even need admin rights. Sadly though its being retired on Jan 2014.
Anyways, rather than forcing that as short term solution we might just be better off doing something like showing a message to IE7 and older peeps:
<!--[if lt IE 7]> <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> <![endif]-->
+1 Great Idea!
Can't this enhancement be suggested on github directly and Tom can choose to incorporate?
John
-
Is there a webgui version I can check on the webinterface?On the bottom right hand corner of the Main page.
As stated before...
unRAID™ webGui © Lime Technology | page author: limetech | page version: r3
-
Any concerns with these messages:
Aug 21 13:03:15 unRAID emhttp: returnFile: sendfile /usr/local/emhttp/plugins/webGui/js/jquery.jgrowl.js: Broken pipe Aug 21 13:03:15 unRAID emhttp: returnFile: sendfile /usr/local/emhttp/plugins/webGui/js/jquery.js: Broken pipe
-
I am going to remove the new webgui and go back to stock to see if the issue persists.
EDIT: Before I remove the new webgui, I am going to try and remove the VMWare Tools plugin. I went back to using that around the same time so there is a chance that may be the culprit.
Other than that, the only other things I am doing that are "non-standard" are: 1. running unRAID in a VM and 2. PXE booting unRAID. Does anyone see any issue with either (especially #2)?
John
There is an updated VMWare Tools plugin for the new WebGUI.
Yep...that's the one I am using.
-
I am going to remove the new webgui and go back to stock to see if the issue persists.
EDIT: Before I remove the new webgui, I am going to try and remove the VMWare Tools plugin. I went back to using that around the same time so there is a chance that may be the culprit.
Other than that, the only other things I am doing that are "non-standard" are: 1. running unRAID in a VM and 2. PXE booting unRAID. Does anyone see any issue with either (especially #2)?
John
-
Well, I resorted to hardbooting my unraid VM and less than 12 hours later the webgui has gone unrespoinsive again.
John
-
4 days after upgrading the webgui (R3) has gone unresponsive on me. I have tried to connect from 3 different machines (all IE).
Anyone else having this issue?
I tried the following and it produced a segfault...
Linux 3.9.6p-unRAID.root@unRAID:~# killall emhttp
root@unRAID:~# nohup /usr/local/sbin/emhttp &
[1] 2720
root@unRAID:~# nohup: ignoring input and appending output to `nohup.out'
[1]+ Segmentation fault (core dumped) nohup /usr/local/sbin/emhttp
root@unRAID:~#
John
-
Would this thread be the proper place for feature requests/suggestions specific to the webgui?
John
-
johnodon>> can you elaborate more on how to setup PXE booting for unraid?
what do you use for PXE image server?
what is your VM config?
I have just got my self a quad-core Opteron server from TAMs.
and will be building out a new VM server using EXSi 5.1
was thinking of going XenServer route but can not find much info on how to do it, and I am not good with Linux to attempt such a feat on my own :-)
I am currently running unRaid 5.0 beta13 and will be updating to 5.0 rc13 at the same time.
the idea is to end up with ESXi server running
1- pfsence VM to replace my router. will use the router as wireless access point only.
1- unRaid VM with my current array moved to it as is
the new server have 3 SAT2-MV8 Raid cards so one will be pass-through to unraid
I am not planning to go beyond 3 drives for now (free license) , if all is working good I will eventially get a plus for 7 drives total to fill up the card.
1- Linux Mint (unless some one here can give me better recommendation) VM to run SubNzb+sick beard+coach potato + transmission
I know you can run this on unraid but since I will have the VM lab running might as well separate tasks. also this will allow me more opportunity to meddle with all this programs more freely without worry of screwing up unraid setup.
1-possible VM for FOG server
1- PXE server (not now but some time in the future)
1- Windows (7) or ( VM for admin tasks and testing as well as transcoding/converting the videos to MKV format as needed.
any suggestions will be appreciated...
P.S. possible upgrades entail replacing the CPU with a pair of 6-core
and adding more RAM.
HDD a side from those in unRaid, of course will be added as they become available.
I'll take this into a different thread to avoid highlacking. Stay tuned...
John
Can't wait to see your write up!
http://lime-technology.com/forum/index.php?topic=27768.0
Again, not a true technical write-up on how to setup a PXE server but it should explain most of the required pieces.
John
-
johnodon>> can you elaborate more on how to setup PXE booting for unraid?
what do you use for PXE image server?
what is your VM config?
I have just got my self a quad-core Opteron server from TAMs.
and will be building out a new VM server using EXSi 5.1
was thinking of going XenServer route but can not find much info on how to do it, and I am not good with Linux to attempt such a feat on my own :-)
I am currently running unRaid 5.0 beta13 and will be updating to 5.0 rc13 at the same time.
the idea is to end up with ESXi server running
1- pfsence VM to replace my router. will use the router as wireless access point only.
1- unRaid VM with my current array moved to it as is
the new server have 3 SAT2-MV8 Raid cards so one will be pass-through to unraid
I am not planning to go beyond 3 drives for now (free license) , if all is working good I will eventially get a plus for 7 drives total to fill up the card.
1- Linux Mint (unless some one here can give me better recommendation) VM to run SubNzb+sick beard+coach potato + transmission
I know you can run this on unraid but since I will have the VM lab running might as well separate tasks. also this will allow me more opportunity to meddle with all this programs more freely without worry of screwing up unraid setup.
1-possible VM for FOG server
1- PXE server (not now but some time in the future)
1- Windows (7) or ( VM for admin tasks and testing as well as transcoding/converting the videos to MKV format as needed.
any suggestions will be appreciated...
P.S. possible upgrades entail replacing the CPU with a pair of 6-core
and adding more RAM.
HDD a side from those in unRaid, of course will be added as they become available.
I'll take this into a different thread to avoid highlacking. Stay tuned...
John
-
As much as I liked using a VMDK to boot unRAID, you guys should look into PXE booting. I am LOVING IT!!! Whenever an new version is released, all I have to do is replace the bzroot and bzimage files in my unraid TFTP folder and restart (much like updating your flash dive). Doesn't get any easier. If something barfs...just put the old files back.
Granted...it is not nearly as fast as booting from a VMDK (especially on an SSD as I was) but it is also very acceptable.
John
-
HAHA...I found the thread he referenced 2 mins after posting.
Thx BQ. I'm so tempted to try but I am at work right now. If it blows up I'm screwed...although that usually does not stop me.
John
-
X9SCM BIOS Updating
This one is nice and easy!
- Boot from the USB stick
- If you are currently on 1.1c or lower, type "AMI_1.BAT x9scm2.917" and hit enter. Be patient, it takes a few minutes to complete. After it has completed, reboot the PC.
- After reboot, type "AMI2.BAT" and hit enter. Note the lack of underscore, i.e. do NOT run AMI_2.BAT. AMI_1.BAT tells you this before you reboot in the previous step.
- If you are currently on 2.0a, type "AMI_2.BAT x9scm2.917" and hit enter. Be patient, it takes a few minutes to complete. After it has completed, reboot the PC.
- Enter the BIOS by pressing DEL at the POST screen and check all configurations as required. In my case, going from 1.1c to 2.0b disabled Intel VT-d and I had to re-enable it. I also had to re-disable all the PXE booting crap that I don't want and fix the boot order to boot off my ESXi USB stick.
- DONE!
QQ about flashing the MB BIOS...
Is it possible to do it over IPMI via Virtual Media? Been trying to find an answer and have struck out. I'm afraid that once the upgrade process starts it will kill the IPMI connection.
John
- Boot from the USB stick
[NOT SOLVED] USB Passthrough - Multiple "Like" Devices
in VM Engine (KVM)
Posted
It doesn't look like the flircs have serial numbers (unless I am looking in the wrong place)...