WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: Disk naming (Was Re: [Xen-devel] [PATCH] Guest boot loadersupport [1

To: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Subject: Re: Disk naming (Was Re: [Xen-devel] [PATCH] Guest boot loadersupport [1/2])
From: Gerd Knorr <kraxel@xxxxxxxxxxx>
Date: 14 Apr 2005 23:59:35 +0200
Cc: Philip R Auld <pauld@xxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 14 Apr 2005 22:05:06 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <A95E2296287EAD4EB592B5DEEFCE0E9D1E3B98@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: SUSE Labs, Berlin
References: <A95E2296287EAD4EB592B5DEEFCE0E9D1E3B98@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3
"Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx> writes:

> I don't think there's a huge problem with exposing vbd's as sdX/hdX
> within a guest. We used to have our own xdX device, but it just broke
> too much stuff, hence we hijacked had/sda.

Huh?  Really?  What exactly broke?

I can share a bit of experience with user mode linux again: UML uses
it's own major range for virtual block devices.  Making the suse
installer work within a UML machine was surprisingly easy.  The major
stumbling block was that parted had a hard-coded white-list for block
device major numbers, which didn't include #98 (the uml virtual block
device major), thus the installer didn't recognised the virtual disk
or refused to partition it (don't remember exactly).  The other issue
was that the device files in /dev didn't exist (should be easier these
days with udev ;).

Once these two points where fixed it worked just fine.  Well, there
still were some minor issues, like the installer being a bit confused
and printing a warning due to the fact that it hasn't found any PCI
IDE or SCSI storage controller.

The important bit is that you'll have to take care to use the usual
linux interfaces, naming schemes and so on.  If the virtual disks and
partitions show up in /proc/partitions and /sys/block correctly most
software will be happy.

I think we should have our own xd virtual block devices for xen and
use them by default.  It's cleaner, and probably also has less
problems when using virtual disks and iSCSI at the same time ;)

Using hd/sd instead probably is a useful option in some cases, I
wouldn't drop that altogether, but only use that if the user
explicitly asks for it.

  Gerd

-- 
#define printk(args...) fprintf(stderr, ## args)

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