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] DomU image file on NFS Storage

To: Antonio Colin <dftonywhite@xxxxxxxxxxx>
Subject: Re: [Xen-users] DomU image file on NFS Storage
From: Mark Pryor <tlviewer@xxxxxxxxx>
Date: Sat, 8 Oct 2011 18:31:41 -0700 (PDT)
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sat, 08 Oct 2011 18:32:53 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1318123901; bh=7Mf37Z75qwOEm+B9IxOX4cd/xZI+jLT8voUT7+uUHA0=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ey4oQ4PNNKJYI95Ar7vjMfM5hgpadqmTcXQa0PqxFu0dthF8rpE5iAJTRbNhUz0NvzHGY/jgFo5xGT7ufr++x5ho2O1rxNFDQsyMFz6CU2qy/fj+3nW9zPaefbiIzxLxJ0Fur+f2SewQLvtUPOpxWORYC+DgtE+q0FmGY+clGOs=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=s0C9vsumyerdOEQzMT31XOyxBNqwCaZjA1MBpUdoq6MI+k84omANdwhbbnN+YE81Ywh6fl/SsxGAO40ZaAql+ljc+MqkfciTzi1PahF69ZBOdVnA2wt2vvhFaDMSQveBdwWKxcpH25ZHoga+1XXXKEGmq81z1PXNWD7+ImsXUsI=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <SNT114-W5557D74526111B7398717BA6FF0@xxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <SNT114-W5557D74526111B7398717BA6FF0@xxxxxxx>
Reply-to: Mark Pryor <tlviewer@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx




________________________________
From: Antonio Colin <dftonywhite@xxxxxxxxxxx>
To: Xen Users List <xen-users@xxxxxxxxxxxxxxxxxxx>
Sent: Friday, October 7, 2011 10:02 PM
Subject: [Xen-users] DomU image file on NFS Storage



Hi everyone,

I have created a CentOS4 PV on a Xen host contained in a *.img file. Now I want 
to store that image file
on a NFS server. Does anyone have a config.sxp file example and want to share 
it on a pastebin service?

I have put the *.img on an NFS server, then mounted the img using #mount -o 
loop image.img /mnt/centos
and then exported it to the xen host but it does not work since the DomU kernel 
does not have Root NFS support.

How can I do instead to read directly from the xen host the *.img file stored 
in the NFS server, I think it would
look like: nfs_root = "/mnt/images/centos/image.img".

** This does not work at all, it ends up with a kernel panic on console.

kernel = "/mnt/images/centos/boot/vmlinuz-2.6.9-89.ELxenU"
ramdisk = "/mnt/images/centos/boot/initrd-2.6.9-89.ELxenU.img"
memory = 512
name = "centos4"
vcpus = 1
vif = ['']
dhcp = "dhcp"
ip = "192.168.1.100"
netmask  = "255.255.255.0"
gateway  = "192.168.1.254"
hostname = "centos4"
nfs_root = "/mnt/images/centos/"
nfs_server = "192.168.1.98"
root = "/dev/root"
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'restart'


I would really appreciate one example or config option.
Regards,
Tony.
---------------

Here are the snips from an SL6 domU booting from nfsroot. The dom0 is OpenSuSE 
with xen 4.1.1


http://paste.ubuntu.com/704618/


this took me 3 days to get working. The kernel rebuild with config changes was 
tough until
I gave up on rpm build and went with traditional Make.

All the NFS options were passed via 

extra = ""

-- 

Mark

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