Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

centos + kvm - "unable to retrieve install.img"

1,422 views
Skip to first unread message

ian diddams

unread,
Jun 7, 2013, 7:41:49 AM6/7/13
to
dell r910 server
centos 6.3
kvm installed as per http://www.howtoforge.com/virtualization-with-kvm-on-a-centos-6.0-server

I needed a non-X based install for the guests and found this

http://sysadminman.net/blog/2011/kvm-virtualization-text-centos-guest-install-2098

The drives are h/w raided - 2 in a mirror for the boot disk, the rest in one large RAID 10 parttion, mounted on /datastore.

The main server is on 192.168.55.40/27

The centos 6.3 DVD iso is mounted on /mnt/centos6.3

The centos6.3 install.img file is located at
/datastore/software/centos6.3/images/install.img

I am using the following command

virt-install \
--debug \
-n box1 \
-r 1024 \
--vcpus=6 \
--os-variant=rhel6 \
--accelerate \
--nographics \
-v \
-l /mnt/centos6.3 \
-w bridge:br0 \
--disk path=/datastore/box1.img,size=20 \
-x "console=ttyS0"


This works fine - until I get to the "what type of mkedia conatins the installation image" question. Options are "Local CD/DVD, Hard Drive, NFS Directory, URL".

I have apache with docroot of /datastore/software.

The install asks me to provide the IPv$ - 192.168.55.48/27, g/w=192.168.55.33, dns = 192.168.59.23. (I do not add any IPv6 info)

When this is done I can ping that IP from another server on the same subnet

I use the URL http://192.168.55.40/centos6.3

I then get the error

Unable to retrieve
http://192.168.55.40/centos6.3/images/instal.img


From a command line, as any user (root, qemu, local user) however

$ wget http://192.168.55.40/centos6.3/images/install.img
--2013-06-07 12:39:15-- http://192.168.55.40/centos6.3/images/install.img
Connecting to 192.168.55.40:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 133255168 (127M) [application/octet-stream]
Saving to: “install.img”

100%[======================================>] 133,255,168 233M/s in 0.5s

2013-06-07 12:39:16 (233 MB/s) - “install.img” saved [133255168/133255168]


so clearly the apache webserver is happy providing the file.

I have googled fro similar errors and seen a lot of hits but noen with what appears to be any fox/workround.

Has anyone got any ideas how to solve this?

Or a an alternative non-graphical way to build a KVM guest !! (and better usenet groups if this is not appropriate)

cheers

ian

ian diddams

unread,
Jun 7, 2013, 10:57:12 AM6/7/13
to
... and neither does it work if I attempt to use

http://mirrors.manchester.icecolo.com/centos/6/os/images/install.img

although again a wget of that URL is successful.

Its clearly some "feature" of virt-install.

ian

ian diddams

unread,
Jun 10, 2013, 5:45:02 AM6/10/13
to
it turned out to be in the apache config after all..

it needed not justa "Listen" directive but a "NameVirtualHost " one. Even though there were no VirtualHosts configured and wget worked fine with the same URL.

whatever.


ian

0 new messages