Changes between Version 6 and Version 7 of StickMounting


Ignore:
Timestamp:
Feb 6, 2012 10:10:32 AM (16 months ago)
Author:
joanna
Comment:

Updated for Beta 3

Legend:

Unmodified
Added
Removed
Modified
  • StickMounting

    v6 v7  
    1 This requires qubes-core-appvm-1.0.1 of higher. 
     1In Qubes Beta 3 a new tool, ```qvm-block``` has been introduced that makes mounting USB devices to any user AppVM very easy, no matter which actual VM is handling the USB controller (those can be assigned using the  [AssigningDevices qvm-pci command]). 
     2 
     3In order to assign a USB disk to a VM, follow these steps: 
    24 
    35 1. Insert your USB stick. 
    46 
    57 2. In Dom0 konsole (running as normal user) do: 
     8 {{{ 
     9 qvm-block -l 
     10 }}} 
    611 
    7 {{{ 
    8 xl block-attach <vmname> phy:/dev/sdb1 xvdi w 
    9 }}} 
     12 This will list available block devices connected to any USB controller in your system, no matter in which VM this controller is hosted. The name of the VM hosting the USB controller is displayed before the colon in the  device name. The string after the colon is the name of the device used within the VM. 
    1013 
    11 This assumes that your stick is seen by Dom0 kernel as '''/dev/sdb''' and you're mounting its first partition, so '''/dev/sdb1''' (the usual case); "w" means read/write, if you not want that, use "r" for read only. 
     14 3. Connect the device, e.g.:  
     15 {{{ 
     16 qvm-block -a dom0:sda personal 
     17 }}} 
    1218 
    13 This will attach the device as "/dev/xvdi" in VM. You can also choose different name (eg. xvdj) to connect multiple devices, but the others (not xvdi) will require mounting from cmdline in VM... 
     19 This will attach the device as "/dev/xvdi" in VM. 
    1420 
    1521 3. Open Nautilus file manager in the AppVM. Your stick should be visible in the "Places" panel on the left. Just click on the device. 
     
    1925 5. Back to Dom0 konsole -- in order to unmount the stick do the following: 
    2026 
    21 {{{ 
    22 xl block-detach <vmname> xvdi 
    23 }}} 
     27 {{{ 
     28 qvm-block -d <device> <vmname> 
     29 }}} 
    2430 
    2531 6. You can remove the device. 
    2632 
    27 Needless to say, we will be adding support for USB mounting to our GUI Qubes Manager so that the user will not need to use console in Dom0 -- just click a button. Coming soon, stay tuned! 
     33 In the next release this will get integrated into the Qubes GUI manager...