Re: [qubes-users] Problems connecting usb flash drive to any vm

2016-11-25 Thread zxeben
> Have you changed the devices assigned to sys-usb? If so, it's possible you're 
> running into a pci_strictreset issue here? Try running this in dom0 (but 
> before you do, make sure you understand the risks [1]):
> 
> $ qvm-prefs -s sys-usb pci_strictreset false
> 
> Then try starting sys-usb again:
> 
> $ qvm-start sys-usb
> 
> Let us know if there are any useful error messages.
I ran both and got:
Traceback (most recent call last):
   File "/usr/bin/qvm-start", line 136, in 
 main()
   File "/usr/bin/qvm-start", line 120 in main
  xid = vm.start(verbose=options.verbose, 
preparing_dvm=options.preparing_dvm, start_guid=not options.noguid, 
notify_function=tray_notify_generic if options.tray else None)
   File "/usr/lib64/python2.7/site-packages/qubes/modules/005QubesNetVm.py", 
line 122 in start
  xid=super(QubesNetVm, self),start(**kwargs)
   File "/user/lib64/python2.7/site-packages/qubes/moduels/000QubesVm.py", line 
1958, in start nd.detach()
   File "/usr/lib64lpython2.7/site-packages/libvert.py", line 5249, in detach
  in ret == -1: raise libvertError ('verNodeDevicesDetach() failed')
libvert.libvertError: Requested operation is not valid: PCI device :00:10.0 
is in use by driver xenlight, domain sys-net
(Note I typed this, so there may be errors in the transcription)

If I shutdown the sys-net VM then sys-usb boots. Of course this also means that 
sys-net fails to boot with the same error message. Now when I attach a flash 
drive it automatically connects to sys-usb, instead of sys-net. How do I stop 
sys-net from trying to request driver access? As long as sys-usb is active, I 
am not able to boot any other VM. Everything fails silently.

> Did you mean "sys-usb" instead of "sys-net"? (If not, the description you've 
> provided of your overall setup is inconsistent. Please clarify it.) 

I did mean sys-net. When the sys-usb VM is not booted and I have attach a usb 
flash drive, I get a notification in the upper right hand corner saying 
"Attached new device to sys-net /dev/sda". If I exit all VM's and boot the 
sys-usb VM then it attaches to the sys-usb VM.

qvm-block -l gives:
sys-usb:sda Flash_Dis () 7 GiB
sys-usb:sda1 Flash_Disk (CHINA) 7 GiB.

I was mounting wrong... "sudo mount -t vfat /dev/sda1 /mnt/removable/" works 
(sda1 not sda). However, the folder is empty. I checked on my other laptop and 
the flash drive is neither empty nor broken.

Thanks for your help!

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/8e9d7748-6fd0-4ca7-95b0-76b69b9ff061%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Problems connecting usb flash drive to any vm

2016-11-25 Thread zxeben
When I first installed Qubes (3.2), I could attach and detach block devices 
without errors and mount flash drives in VM's. I wanted to use my external 
keyboard with my laptop so followed the steps in the guide 
(https://www.qubes-os.org/doc/usb/) for "Creating and Using a USB qube" (using 
the management stack) and "How to use a USB keyboard".

However, the generated sys-usb Qube fails to boot and detaching a USB flash 
drive using the VM Manager always give me a blank window with the text 
"Houston, we have a problem..." and freezes the VM Manager. After a few seconds 
of trying to close the blank window I get "This window might be busy and is not 
responding. Do you want to terminate the application?". After I restart the VM 
Manager the USB device is still shows as attached. If I restart the VM with the 
attached USB device it gives me another error "AssertionError: This is most 
likely a bug in the Qubes Manager" and the VM is killed. (Note I did this with 
a DisposableVM). 

The above happens even if I attach and then immediately detach the USB block 
device.

After plugging in the USB flash drive to my laptop, but not attaching it to any 
VM the USB flash drive is visible to sys-net with "fdisk -l", but mounting 
fails with "wrong fs type" even though I mount it with "-t vfat" and fdisk 
shows the USB flash drive is FAT32. If I attache the USB flash drive to any 
other VM "fdisk -l" does not show any attached flash drive.

I am currently in China, so I cannot reach google with the laptop running Qubes 
until I get a socks proxy set up and tor is block in China (any bridges I have 
tried are quickly blocked).

Any help would be helpful. Let me know what logs would be useful to post (I am 
still very new to Qubes).

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/feca37ec-61db-4b4d-a66c-30aada27994d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.