Mailing List Archive

Xen device support
All,

I have just got my hands dirty on Xen and had a few questions.

1. Is it possible to connect virtual CD-ROM/Floppy devices to Xen. I don't
see such parameters on the web page:
http://www.cl.cam.ac.uk/Research/SRG/netos/xen/readmes/user/user.html#SECTION03210000000000000000

2. In the disk configuration, we specify how devices on the host appear
inside the guest. Something like [phy:/dev/sda1,/dev/hda1,w'] means that the
logical device /dev/sda1 appears as the logical device /dev/hda1 insode the
Xen guest.

Is it possible for Xen itself to detect the preexisting partitions (which we
have created from domain 0) on the device we are trying to connect.
Something like:

[phy:/dev/sda,/dev/hda, 'w'], just mapping some device to a virtual physical
device on guest. The ghuest OS be able to detect the partitions drawn on
/dev/sda from domain 0
I tried but does't seem to work.

a. The device would appear as /dev/hda0 and not as /dev/hda.
b. fdisk even shows the partitions on the /dev/hda0, but /dev file system
doesn't have any corresponding devices.

Essentially, we seem to be talking more on the logical drives on the guest
(a higher level abstraction when compared to full virtualization as VMware
or virtual PC would do).

Looking forward to replies.

Arijit
Re: Xen device support [ In reply to ]
On Thu, 26 May 2005, Arijit Ganguly wrote:

> Is it possible for Xen itself to detect the preexisting partitions
> (which we have created from domain 0) on the device we are trying
> to connect. Something like:
>
> [phy:/dev/sda,/dev/hda, 'w'], just mapping some device to a virtual
> physical device on guest. The ghuest OS be able to detect the
> partitions drawn on /dev/sda from domain 0 I tried but does't seem
> to work.

http://bugzilla.xensource.com/cgi-bin/bugzilla/show_bug.cgi?id=43

> a. The device would appear as /dev/hda0 and not as /dev/hda.
> b. fdisk even shows the partitions on the /dev/hda0, but /dev file system
> doesn't have any corresponding devices.

It does seem to find the first partition, just doesnt scan for any
others.

I'd like to be able to assign whole disks to domU's and have domU's
handle partitioning particularly so that Linux extX fs labels aren't
visible to the dom0. And to simplify management of disks.

regards,
--
Paul Jakma paul@clubi.ie paul@jakma.org Key ID: 64A2FF6A
Fortune:
If you find a solution and become attached to it, the solution may become
your next problem.

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
RE: Xen device support [ In reply to ]
> I'd like to be able to assign whole disks to domU's and have
> domU's handle partitioning particularly so that Linux extX fs
> labels aren't visible to the dom0. And to simplify management
> of disks.

I thought Vincent had this working again (it needed to be ported from
2.4 to 2.6).

Have you tried Xen 2.0.6 or the unstable tree?

Thanks,
Ian

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
RE: Xen device support [ In reply to ]
On Sat, 28 May 2005, Ian Pratt wrote:

> I thought Vincent had this working again (it needed to be ported
> from 2.4 to 2.6).
>
> Have you tried Xen 2.0.6 or the unstable tree?

This was with 'unstable' as provided by the packages in the FC4
development tree.

regards,
--
Paul Jakma paul@clubi.ie paul@jakma.org Key ID: 64A2FF6A
Fortune:
Another such victory over the Romans, and we are undone.
-- Pyrrhus

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
RE: Xen device support [ In reply to ]
On Sat, 28 May 2005, Ian Pratt wrote:

> Have you tried Xen 2.0.6 or the unstable tree?

I just tried with the latest FC4dev xenU kernel:

Linux version 2.6.11-1.1363_FC4xenU
(bhcompile@porky.build.redhat.com) (gcc version 4.0.0 20050519 (Red
Hat 4.0.0-8)) #1 SMP Wed May 25 20:20:47 EDT 2005

still the same:

xen_blk: Initialising virtual block device driver
hda:<6>xen_net: Initialising virtual ethernet driver.
hda1 < >

disk = [ 'phy:VG01/dom_allevil_lv,hda,w']

#disk = [ 'phy:VG01/dom_allevil_lv,hda,w',
# 'phy:mapper/dom_allevil_lv1,hda1,w',
# 'phy:mapper/dom_allevil_lv2,hda2,w',
# 'phy:mapper/dom_allevil_lv5,hda5,w' ]

If I reverse the commenting of above 'disk' entries, it works.

regards,
--
Paul Jakma paul@clubi.ie paul@jakma.org Key ID: 64A2FF6A
Fortune:
To thine own self be true. (If not that, at least make some money.)

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
Re: Xen device support [ In reply to ]
On Sat, May 28, 2005 at 07:51:47PM +0100, Ian Pratt wrote:
> > I'd like to be able to assign whole disks to domU's and have
> > domU's handle partitioning particularly so that Linux extX fs
> > labels aren't visible to the dom0. And to simplify management
> > of disks.
>
> I thought Vincent had this working again (it needed to be ported from
> 2.4 to 2.6).

it definitely used to worked. I'll try with latest unstable

--
Vincent Hanquez

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