TroubleShooting
Contents |
[edit]
Debugging oVirt Appliance firstboot
- Starting with version .96 of oVirt the Appliance is configured to support serial console by default. If you are using an older version of oVirt you will need to follow the instructions below for enabling serial console.
- start with serial console
virsh start ovirt-appliance; virsh console ovirt-appliance
- capture the serial console output and check following log files in the 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/*
[edit]
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.
- Mount the image
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
- Edit the appliance image
- Unmount the image
umount /tmp/ovirt/boot umount /tmp/ovirt kpartx -d /dev/nbd0 nbd-client -d /dev/nbd0
[edit]
Enabling Serial Console for Older oVirt Appliances
- Follow the above procedure for Mounting the oVirt Appliance Image
- In the step labeled "Edit the appliance image" run the following command:
sed -i -e '/kernel /s/$/ console=ttyS0,115200/' /tmp/ovirt/grub/grub.conf
[edit]
Fixing i386 initrd Issue with oVirt Appliance in .95 Version
- Follow instructions above for mounting the appliance image
- 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
- Follow instructions above for unmounting the appliance image
- boot the machine
virsh start ovirt-appliance

