[Ovirt-devel] Adding hosts to the hardware pool

Laurent Monnoye ktf000 at gmail.com
Thu Jun 25 19:56:46 UTC 2009


cobbler-import output:

# cobbler-import
+ set -e
+ for dir in '$ksdir/*'
+ ova=/var/www/cobbler/ks_mirror/brol/.treeinfo.ova
+ '[' '!' -f /var/www/cobbler/ks_mirror/brol/.treeinfo.ova ']'
+ echo 'Skipping /var/www/cobbler/ks_mirror/brol, no
/var/www/cobbler/ks_mirror/brol/.treeinfo.ova file present'
Skipping /var/www/cobbler/ks_mirror/brol, no
/var/www/cobbler/ks_mirror/brol/.treeinfo.ova file present
+ continue
+ for dir in '$ksdir/*'
+ ova=/var/www/cobbler/ks_mirror/config/.treeinfo.ova
+ '[' '!' -f /var/www/cobbler/ks_mirror/config/.treeinfo.ova ']'
+ echo 'Skipping /var/www/cobbler/ks_mirror/config, no
/var/www/cobbler/ks_mirror/config/.treeinfo.ova file present'
Skipping /var/www/cobbler/ks_mirror/config, no
/var/www/cobbler/ks_mirror/config/.treeinfo.ova file present
+ continue
+ for dir in '$ksdir/*'
+ ova=/var/www/cobbler/ks_mirror/Fedora-11-x86_64-DVD/.treeinfo.ova
+ '[' '!' -f /var/www/cobbler/ks_mirror/Fedora-11-x86_64-DVD/.treeinfo.ova
']'
+ echo 'Skipping /var/www/cobbler/ks_mirror/Fedora-11-x86_64-DVD, no
/var/www/cobbler/ks_mirror/Fedora-11-x86_64-DVD/.treeinfo.ova file present'
Skipping /var/www/cobbler/ks_mirror/Fedora-11-x86_64-DVD, no
/var/www/cobbler/ks_mirror/Fedora-11-x86_64-DVD/.treeinfo.ova file present
+ continue
+ for dir in '$ksdir/*'
+ ova=/var/www/cobbler/ks_mirror/ovirt-node/.treeinfo.ova
+ '[' '!' -f /var/www/cobbler/ks_mirror/ovirt-node/.treeinfo.ova ']'
+ echo 'Skipping /var/www/cobbler/ks_mirror/ovirt-node, no
/var/www/cobbler/ks_mirror/ovirt-node/.treeinfo.ova file present'
Skipping /var/www/cobbler/ks_mirror/ovirt-node, no
/var/www/cobbler/ks_mirror/ovirt-node/.treeinfo.ova file present
+ continue
++ rpm -q --qf '%{arch}' ovirt-node-image
+ node_arch=x86_64
+ node_dir=/usr/share/ovirt-node-image
+ cobbler distro add --name=oVirt-Node-x86_64 --arch=x86_64
--initrd=/usr/share/ovirt-node-image/tftpboot/initrd0.img
--kernel=/usr/share/ovirt-node-image/tftpboot/vmlinuz0
'--kopts=rootflags=loop root=/ovirt-node-image.iso rootfstype=iso9660 ro
console=tty0 console=ttyS0,115200n8'
+ cobbler profile add --name=oVirt-Node-x86_64 --distro=oVirt-Node-x86_64
+ cobbler system add --netboot-enabled=1 --profile=oVirt-Node-x86_64
--name=node3 --mac=00:16:3e:12:34:57
+ cobbler system add --netboot-enabled=1 --profile=oVirt-Node-x86_64
--name=node4 --mac=00:16:3e:12:34:58 '--kopts=ovirt_init=scsi
ovirt_local_boot'
+ cobbler system add --netboot-enabled=1 --profile=oVirt-Node-x86_64
--name=node5 --mac=00:16:3e:12:34:59 --kopts=ovirt_init=scsi
+ sed -i -e '/kernel /a \\tIPAPPEND 2' /etc/cobbler/pxe/pxesystem.template
+ sed -i -e 's/^ONTIMEOUT.*/ONTIMEOUT oVirt-Node-x86_64/'
/etc/cobbler/pxe/pxedefault.template
+ service cobblerd restart
Stopping cobbler daemon:                                   [  OK  ]
Starting cobbler daemon:                                   [  OK  ]
+ cobbler sync

Here's what I have under /usr/share/ovirt-node-image:

# ls -l /usr/share/ovirt-node-image
total 68388
drwxr-xr-x 2 root root     4096 2009-06-24 11:56 manifests
-rw-r--r-- 1 root root 69947392 2009-06-05 14:44 ovirt-node-image.iso
drwxr-xr-x 3 root root     4096 2009-06-25 12:43 tftpboot
# ls -l /usr/share/ovirt-node-image/tftpboot
total 7052
-rw-r--r-- 9 root root 4537334 2009-06-25 08:46 initrd0.img
-rw-r--r-- 1 root root   14716 2009-06-24 11:56 pxelinux.0
drwxr-xr-x 2 root root    4096 2009-06-25 12:13 pxelinux.cfg
-r--r--r-- 9 root root 2644128 2009-06-25 08:46 vmlinuz0

I've tried to boot that new profile "oVirt-Node-x86_64". This time I don't
get the error message anymore. The system just hangs at the end (see console
output attached). Is that expected?

> Are you building from the next branch or a released version?

standard 0.96. I just installed everything with yum.

> ovirt-node-image.iso should be under /usr/share/ovirt-node-image but in
the pxe case it's actually embedded in the initrd0.img file

How come initrd0.img is so much smaller than the iso, then?



On Thu, Jun 25, 2009 at 9:25 PM, Joey Boggs <jboggs at redhat.com> wrote:

>  On 06/25/2009 03:00 PM, Laurent Monnoye wrote:
>
> > Looks like you're missing a few options on the append line, add them in
> like:
> > ro rootflags=loop text rootfstype=iso9660 root=/ovirt-node-image.iso
>
> I just added these parameters but with no success, same problem (I see them
> on the console, so they are indeed being picked up).
>
> On the server, where should ovirt-node-image.iso be located? Maybe that's
> my problem.
>
> Where are those parameters documented as part of the oVirt installation
> guide? Did I miss them in the doc?
>
> Thanks a lot for your help, much appreciated!!!
>
> L-
>
> On Thu, Jun 25, 2009 at 8:03 PM, Joey Boggs <jboggs at redhat.com> wrote:
>
>> On 06/25/2009 11:06 AM, Laurent Monnoye wrote:
>>
>>> LABEL sark4
>>>        kernel /images/ovirt4/vmlinuz0
>>>        MENU LABEL sark4
>>>        append initrd=/images/ovirt4/initrd0.img ksdevice=bootif lang=
>>>  kssendmac text  ks=http://192.168.66.1/cblr/svc/op/ks/profile/sark4
>>>        ipappend 2
>>>
>>
>>  Looks like you're missing a few options on the append line, add them in
>> like:
>>
>>
>> ro rootflags=loop text rootfstype=iso9660 root=/ovirt-node-image.iso
>>
>>
>> LABEL sark4
>>        kernel /images/ovirt4/vmlinuz0
>>        MENU LABEL sark4
>>         append initrd=/images/ovirt4/initrd0.img ksdevice=bootif lang=
>>  kssendmac text  ks=http://192.168.66.1/cblr/svc/op/ks/profile/sark4 ro
>> rootflags=loop text rootfstype=iso9660 root=/ovirt-node-image.iso
>>        ipappend 2
>>
>
>
> ovirt-node-image.iso should be under /usr/share/ovirt-node-image but in the
> pxe case it's actually embedded in the initrd0.img file.  Im guessing some
> things are out of sync, I'd try running the cobbler-import command which
> should setup a cobbler profile for you named oVirt-Node-Image-$arch if that
> command fails capture the output for us. If it succeeds verify if there are
> any files under /usr/share/ovirt-node-image/tftpboot
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20090625/4704e4be/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: console_output2.jpg
Type: image/jpeg
Size: 103753 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20090625/4704e4be/attachment.jpg>


More information about the ovirt-devel mailing list