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] Installing via kickstart over NFS "Invalid file location

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Installing via kickstart over NFS "Invalid file location given: No such file ordirectory"
From: Tim Edwards <tedwards@xxxxxxxxx>
Date: Wed, 25 Mar 2009 14:03:26 +0100
Delivery-date: Wed, 25 Mar 2009 06:04:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49C90355.7020901@xxxxxxxxx>
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: <49C90355.7020901@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.19 (X11/20090114)
I'll answer my own question, the problem was due to Scientific Linux
have a slightly different directory structure in images/ in the
installation tree than the standard RHEL. Since support for finding the
boot image is hardcoded in virt-install/libvirt unless someone adds
specific support for SL it won't work. The workaround is to instead
specify the installation tree through the kickstart file.

However that brings me to the second problem. I removed --location and
replaced it with --cdrom pointing to the boot.iso. This worked fine but
the boot options specified with -x (to tell it where to find the
kickstart file + the network settings) were ignored. I ended up getting
it working by manually typing them in.

Tim

Tim Edwards wrote:
> Hi,
> 
> I'm trying to install a domU over kickstart using NFS (both to retrieve
> the kickstart file and to retrieve the install tree). I've tried a few
> different variations of the below command:
> virt-install --name sl43test --ram 4050 --file=/disk/sl43test.img
> --file-size=120 --os-variant=rhel4 --vnc
> --location=nfs://1.1.1.1:/monitorfs/operations/mirror/sl43/i386/ -x
> "text nfs:1.1.1.1:/monitorfs/operations/etc/kickstart.cfg/acinst4.ks
> ip=1.1.1.3 netmask=255.255.255.0 gateway=1.1.1.254 dns=1.1.1.10"
> 
> The error I get is:
> Invalid file location given: No such file or directory
> Domain installation may not have been
>  successful.  If it was, you can restart your domain
>  by running 'virsh start sl43test'; otherwise, please
>  restart your installation.
> Tue, 24 Mar 2009 15:24:27 ERROR    Invalid file location given: No such
> file ordirectory
> Traceback (most recent call last):
>   File "/usr/sbin/virt-install", line 560, in ?
>     main()
>   File "/usr/sbin/virt-install", line 492, in main
>     dom = guest.start_install(conscb, progresscb, wait=(not wait))
>   File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 820,
> in start_install
>     self._prepare_install(meter)
>   File "/usr/lib/python2.4/site-packages/virtinst/FullVirtGuest.py",
> line 245, in _prepare_install
>     distro = self.os_distro)
>   File "/usr/lib/python2.4/site-packages/virtinst/DistroManager.py",
> line 259, in prepare
>     self._prepare_cdrom(guest, distro, meter)
>   File "/usr/lib/python2.4/site-packages/virtinst/DistroManager.py",
> line 202, in _prepare_cdrom
>     arch = arch)
>   File "/usr/lib/python2.4/site-packages/virtinst/DistroManager.py",
> line 160, in acquireBootDisk
>     return store.acquireBootDisk(fetcher, progresscb)
>   File "/usr/lib/python2.4/site-packages/virtinst/OSDistro.py", line
> 126, in acquireBootDisk
>     return fetcher.acquireFile("images/boot.iso", progresscb)
>   File "/usr/lib/python2.4/site-packages/virtinst/ImageFetcher.py", line
> 131, in acquireFile
>     raise ValueError, _("Invalid file location given: ") + msg
> ValueError: Invalid file location given: No such file or directory
> 
> Tim
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users

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

<Prev in Thread] Current Thread [Next in Thread>