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
|