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

Re: [Xen-devel] [PATCH] Allow Xend to find device number for sdX or hdX with udev



On 14 Jan 2005, at 22:00, Anthony Liguori wrote:

Symptom:
When using a udev-based dom0, if you try to create a domU with a virtual
sda device and you do not have a local scsi device xm create fails.

Fix:
When using udev, only the device nodes needed are made.  The follow
patch changes Xend to return a device number based on:

http://www.lanana.org/docs/device-list/devices.txt

For sd and hd devices if stat() fails. It was tested against both 2.0.2
and 2.0.3.

Another solution is to tell udev to automatically create /dev/sda1 every time it gets started:

# mknod /etc/udev/devices b 8 1

When udev starts, all device files inside /etc/udev/devices are automatically copied to /dev, with no further configuration or triggering of hotplug or coldplug events.

NOTE: This is what I use for VMware, which needs a lot of /dev/vm* devices to function properly: I moved all VMware-specific device files into /etc/udev/devices so when udev starts, those files are copied back to /dev.



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel


 


Rackspace

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