Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Janne

Pages: [1]
1
Installation / Solution for CentOS 6.6 minimal KVM guest installation
« on: March 20, 2015, 04:07:12 PM »
Just a quick solution to a problem that I battled for quite for some time and there doesn't seem to be an answer to be found. Lets just call it giving something back to the community  :)

Problem:
KVM guest installation with --location: parameter and CentOS 6.6 minimal installation ISO doesn't work from just the command line interface.

Giving: No option 'kernel' in section: 'images-x86_64'
Noted as a bug in the minimal ISO since 2012 (and still going strong!): https://bugs.centos.org/view.php?id=5589

Solution
Need to edit by hand the .treeinfo file in the ISO itself and add a couple of lines.

Busted one:
Code: [Select]
[general]
family = CentOS
timestamp = 1414159790.06
variant =
totaldiscs = 1
version = 6.6
discnum = 1
packagedir =
arch = x86_64

[images-x86_64]

initrd = images/pxeboot/initrd.img

[images-xen]

initrd = images/pxeboot/initrd.img

[stage2]
mainimage = images/install.img
Repaired:
Code: [Select]
[general]
family = CentOS
timestamp = 1414159790.06
variant =
totaldiscs = 1
version = 6.6
discnum = 1
packagedir =
arch = x86_64

[images-x86_64]
kernel = images/pxeboot/vmlinuz
initrd = images/pxeboot/initrd.img

[images-xen]
kernel = images/pxeboot/vmlinuz
initrd = images/pxeboot/initrd.img

[stage2]
mainimage = images/install.img

One can just copy paste the repaired code, it's all good... The main thing is that
Code: [Select]
kernel = images/pxeboot/vmlinuz needs to be added under
Code: [Select]
[images-x86_64] and propably also under
Code: [Select]
[images-xen]. At least it didn't hurt my installation to have it in both.

How to get your hands on the file itself, I'll just put a link here.
http://wiki.centos.org/TipsAndTricks/VncHeadlessInstall
There you go...

It's totally off the subject, but with copy pasting that article one can quite easily extract the .treeinfo file from the ISO and after editing it put the hole thing back together and let 'er rip!
The file to be modified (.treeinfo) is located right in the root of the ISO, you can't miss it.

If someone has any better ideas please let us all know, I most definetly will loose the ISO after the installation and can't remember how to fix the situation in the future so please feel free to make a more hole some suggestion.

Pages: [1]