[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [MirageOS-devel] Errors trying the "block" example with Mirage 2.0+ and Xen 4.4
Hi,
On Tue, Jan 20, 2015 at 2:29 PM, Raphael 'kena' Poss <r.poss@xxxxxx> wrote:
On Unix the natural way to name a file or disk image is through a filesystem path. In a minimal VM implementation there isn't a filesystem so paths don't work; instead disks are attached to virtual slot numbers (usually integers) on some virtual bus. On Xen, PV disks are attached to a single virtual bus. Xen was originally created to run PV Linux guests and it was convenient to base the slot numbers on the Linux device/major numbers, hence the convention became that the "first" commonly-used slot was numbered "51712" and corresponded to "/dev/xvda" in the guest. The goal was that the config file setting in dom0 would say "xvda" and the VM would agree and use "/dev/xvda". Clearly this is a bit old-fashioned now; we have more guest types than PV Linux and guest kernels can call their disk whatever they want anyway. Your string "xvda1" is being interpreted by this code in mirage-block-xen: the code will accept options including - a virtual slot number (e.g. 51712) on the "Xen PV" bus - a virtual slot number converted to a linux-style string (e.g. "xvda") I agree this is very clunky. I think we need a better way to identify our disks. The toolstacks (the things which start the VMs) don't provide a link between the filename on the host and the slot number. In fact many service providers would prefer not to leak filesystem paths into untrusted VMs at all. So I think we should avoid using paths to identify disks. I believe Windows completely ignores the virtual slot number and relies on labels contained *within* the disks. Perhaps we should insist that all our disks have a trivial partition table with a unique "Disk identity"?[1] This implies we would need to extend the mirage tool to prepare the disk images and fill in the identify string? Cheers, Dave Â
Dave Scott
_______________________________________________ MirageOS-devel mailing list MirageOS-devel@xxxxxxxxxxxxxxxxxxxx http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |