[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Launching a Debian Xen Guest using a nfs://.../preseed.cfg fails -- Does required nfs:// support exist?



(originally posted @:
http://lists.alioth.debian.org/pipermail/pkg-xen-devel/2010-April/002731.html;
this list recommended as more appropriate ...)

Hi,

I'm (a Debian-noob) installing Debian as a Xen Guest on a non-Debian Xen host.

Using,

xm create \
 -c ./xm-debian.cfg \
 install=true \
 install-method="network" \
 install-mirror=ftp://ftp.us.debian.org/debian \
 install-arch=amd64 \
 install-suite=squeeze \
 install-kernel=./vmlinuz \
 install-ramdisk=./initrd.gz

I can get to the manual installer and stepwise do the install.

I'd like to setup a preseed-based autoinstall.

I've created a first/simple preseed file & made it available on an
nfs://  volume.

Reading @ (are there better / more recent docs?),

 http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg136362.html

suggests,

 " ... You can pass a NFS path in the form of nfs://$host/$path/$file
and network-preseed will mount the NFS share and copy the file to d-i
..."

I've tried adding both,

 install-extra="url=nfs://192.168.1.2/srv/preseed.cfg"

&

 install-extra="preseed/url=nfs://192.168.1.2/srv/preseed.cfg"

In both cases, at guest launch, I get no apparent error -- but, the
pressed file is
not found/used.

A helpful offlist comment from Phil H. got me looking in the right
direction, checking if nfs:// protocol actually exists:

  "I'd check that support for that protocol really exists first.  If you
flip to a shell (Ctrl-Alt-F2) when the url fails to do the trick, for
the nfs thing to work I'd assume that you'd need a fetch method file
called:

 /usr/lib/fetch-url/nfs"

I tried the (Ctrl-Alt-F2) within the Guest's Xen Console output ...
but, unfortunately, that only seems to work for my local machine; the
server Host & Guest are a remote, headless box :-/

Further advice,

" ... looking at Martin's patch:

 http://lists.debian.org/debian-boot/2006/01/msg00016.html

that's the old code that didn't rely on fetch_url, so if you want this
functionality the code that does the mounting in this patch would need
to be put into an nfs fetch-url method, as mentioned above. ..."

Suggests to my read that the required nfs-protocol support is NOT there -- yet.

So,to ask: *is* the required support to mount/access the preseed cfg
over nfs there, or not?

If so, what am I doing wrong?  If not, what info, if any, can I
provide to help get it in?

Thanks,

BenDJ


Reply to: