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-users

RE: [Xen-users] FC3 domU using Xen 3.0

To: "'Daniel P. Berrange'" <berrange@xxxxxxxxxx>
Subject: RE: [Xen-users] FC3 domU using Xen 3.0
From: "Roger Lucas" <roger@xxxxxxxxxxxxx>
Date: Mon, 15 Jan 2007 20:13:55 -0000
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 15 Jan 2007 12:15:28 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070115192348.GG8625@xxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <e75c25020701150115s1001730fxdd59d4f65161c1c1@xxxxxxxxxxxxxx><5bb00b3f0701151114p6af9c3bfr63d1befa84be7e9@xxxxxxxxxxxxxx> <20070115192348.GG8625@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acc42tTxI6/p5ismSyGcyTYi+vbRUgABaQig
> > >Here's my config file:
> > >
> > >kernel ="/boot/vmlinuz-2.6.18-1.2869.fc6xen"
> > >#ramdisk = "/boot/initrd-2.6.18-1.2869.fc6xenU.img"
> > >memory = 256
> > >name = "mail"
> > >vif = ['mac=aa:00:00:00:00:01']
> > >disk =
> > >['file:/xen/mail/fedora.img,sda1,w','file:/xen/mail/swap1.img,sda2,w']
> >
> > I would not use file-based devices as block devices on production
> > systems. I heard people having a lot trouble with them.
> 
> File backed devices are fine provided you:
> 
>   1. Use the blktap async-io backend - eg,   tap:aio:  instead of file:
>   2. Pre-allocate the entire extent of the file - ie do NOT use a
>      sparse file - it has unpredictable performance characteristics,
>      and is unsafe if the host FS fills up.
> 
> > >root = "/dev/sda1"
> > >extra = "ro selinux=0 3"
> > >
> > >This is the error I get:
> > >VFS: Cannot open root device "sda1" or unknown-block(0,0)
> > >Please append a correct "root=" boot option
> > >Kernel panic - not syncing: VFS: Unable to mount root fs on
> > >unknown-block(0,0)
> >
> > Try using xvda, or add the scsi dik driver manually to the fedora
> > Initrd. I think fedora wants to work only with xvda drives in DomU...
> 
> Fedora will work with sda/hda devices, however, we strongly recommend
> you do NOT use them because its is practically 100% guarenteed support
> will be removed when Xen guest patches are merged upstream. So to future
> proof yourself only use the 'xvdN'  block devices in the guest.
> 
> > And, I'm not sure if fedora Xen Package can use the phy: block
> > devices. At least, every domain created with their virt-install tool
> > uses blocktap tap:aio for block device access.
> 
> You can use phy: if you're mapping in a physical device from the host.
> The virt-install choose will automatically choose eithe phy: or tap:aio:
> depending on whether the host side is a file or a block device. For
> fully-virt (HVM) guests it will use file: instead of tap:aio: since
> blktap is only meaningful for paravirt at this time.
> 

Can you explaina bit more about the "xvd" device type?

I am running Xen-3.0.4 on Ubuntu 6.10 with the Xen binary kernels and if I
use "xvda" rather than "hda", my Ubuntu DomU seems to run as well as if I
used "hda"....

The Xen manual for 3.0.4 on p16 recommends a configuration such as:

  disk = ['phy:your hard drive%d,sda1,w' % (base partition number + vmid),
'phy:your usr partition,sda6,r' ]

I have checked the Xen wiki, the PDF manual in the Xen source, "grep"d the
Xen 3.0.4 source as well as googled for "xen xvd".  I have found a few
references to "xvd" devices but nothing that explains why it exists or why
you should use it instead of "sda" or "hda"....

Can you offer any insight as to when/if xvda should be used instead of hda
or sda?

Thanks,

Roger


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