share usb harddrive to kvm

Discussion in 'Proxmox VE 1.x: Installation and configuration' started by ressel, Dec 13, 2010.

  1. ressel

    ressel Member

    Joined:
    Mar 7, 2010
    Messages:
    69
    Likes Received:
    0
    Hello,

    Is there a possible way to share a harddrive to a Windows KVM ?
    i got a usb harddrive connected to my proxmox server, is it possible to see it from my windows kvm so that i can read/write files to this disc?

    I have tried share it with hostusb direct, but the windows machine gives me a bsod.
     
  2. udo

    udo Well-Known Member
    Proxmox VE Subscriber

    Joined:
    Apr 22, 2009
    Messages:
    5,605
    Likes Received:
    136
    Hi,
    what's about
    ide1: /dev/sdc
    or similiar. Doesn't work this?

    Udo
     
  3. greenvomit8

    greenvomit8 Member

    Joined:
    Jul 31, 2012
    Messages:
    34
    Likes Received:
    0
    Hi Udo
    I have a USB 3.0 device connected to the Proxmox host
    I added ide1: /dev/sdc to the VM config file as suggested and could see the drive in Windows 2003.
    I even managed to get USB 3.0 speeds out of it which which is great.
    However, as it is a USB drive I'd like to use it in Windows as a removable drive.
    When I go into the properties for the USB drive 'Optimize for quick removal' is 'greyed' out. See attached image.
    Is there another way I can edit the vm config file so that the drive is detected by Windows as a removable drive? Screen Shot 2014-06-30 at 5.36.02 pm.png
     
  4. greenvomit8

    greenvomit8 Member

    Joined:
    Jul 31, 2012
    Messages:
    34
    Likes Received:
    0
    I found a workaround and note that I am running Proxmox VE 3.2
    Amended vm config file to virtio1: /dev/sdc
    Could then 'Optimize for quick removal'.
    After safely ejecting drive in Windows, the Windows VM would continue to run.
    However, if VM is shutdown there is a proxmox error on VM start up if USB drive is disconnected.
    As I am only needing to do this on occasions, for now I will just # the config entry and only use it when I need to connect the USB drive to the VM.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice