TroubleShooting

Contents

Debugging oVirt Appliance firstboot

virsh start ovirt-appliance; virsh console ovirt-appliance
/root/kickstart-post.log
/var/log/cobbler-import.log
/var/log/ovirt-server-appliance-first-run.log
/var/log/ovirt-appliance-first-run.log
/var/log/ovirt-server/*
/var/log/ace/*

Mounting the oVirt Appliance Image

This procedure is useful for examining the appliance image and making modifications to it without needing to run the appliance.

mkdir -p /tmp/ovirt
nohup qemu-nbd <appliance_disk_image_file> &
modprobe nbd
nbd-client localhost 1024 /dev/nbd0
kpartx -a /dev/nbd0
mount /dev/mapper/nbd0p2 /tmp/ovirt
mount /dev/mapper/nbd0p1 /tmp/ovirt/boot
umount /tmp/ovirt/boot
umount /tmp/ovirt
kpartx -d /dev/nbd0
nbd-client -d /dev/nbd0

Enabling Serial Console for Older oVirt Appliances

sed -i -e '/kernel /s/$/ console=ttyS0,115200/' /tmp/ovirt/grub/grub.conf

Fixing i386 initrd Issue with oVirt Appliance in .95 Version

  1. Follow instructions above for mounting the appliance image
  2. Do a chroot, backup the initrd image and recreate it
chroot /tmp/ovirt
mv /boot/initrd-2.6.26.6-79.fc9.i686 /root
mkinitrd /boot/initrd-2.6.26.6-79.fc9.i686 2.6.26.6-79.fc9.i686
exit
  1. Follow instructions above for unmounting the appliance image
  2. boot the machine
virsh start ovirt-appliance
MediaWiki