[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Problems with attaching block device to DomU



> I am running Xen on Ubuntu. I am trying to attach a block device(usb pen
> drive) to domU. When i plug in my pen drive, it gets attached to dom0 on
> /dev/sdb1. I executed the command
> xm block-attach 3 phy:/dev/sdb1 /dev/sdc ro (3 is the guest vm's id)
>
> i get the error.
> Error: Device 2080 (vbd) could not be connected.
> Device /dev/sdb1 is mounted in the privileged domain,
> and so cannot be mounted by a guest.
>
> Where am i going wrong? Is the command correct in the first place?

The pendrive has probably been automatically mounted by Ubuntu.  If you 
unmount it you'll be able to export it to the guest safely...

It's probably mounted as /media/usbdisk or similar.

Cheers,
Mark


-- 
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.