clalancette / oz

Automated installation for guest images
GNU Lesser General Public License v2.1
310 stars 129 forks source link

CentOS 6.3 example fails with minimal ISO #79

Closed lorin closed 9 years ago

lorin commented 11 years ago

When I try to install the CentOS 6.3 example tdl, the installation gets stuck at the following screen:

centos63_x86_64-1364956014 43

It works fine if I use CentOS-6.3-x86_64-bin-DVD1.iso instead of CentOS-6.3-x86_64-minimal.iso.

I recommend changing the example wiki page (would be happy to do this myself), although I'd like to get confirmation from somebody else first that this is a problem with the example and not my setup.

clalancette commented 11 years ago

Sorry I never commented on this; I think I just forgot.

It's an interesting problem. I'm not sure I've ever tried the -minimal; I'll give it a whirl. If it turns out we just can't use it, then I'll add some code to detect the situation during setup and abort early.

Thanks for the report, and sorry about the delay.

ghost commented 11 years ago

I get an exception when trying to create a image from minimal iso using "oz-install -d3 -u centos-i386.tdl -x cento-i386-libvirt.xml":

Collection Setup Setting up guestfs handle for centos-min-i386 Adding disk image /var/lib/libvirt/images/centos-min-i386.dsk Launching guestfs Inspecting guest OS Traceback (most recent call last): File "/home/leonspencer/virt/oz-0.11.0/oz-install", line 172, in guest.customize(libvirt_xml) File "/home/leonspencer/virt/oz-0.11.0/oz/RedHat.py", line 1216, in customize return self._internal_customize(libvirt_xml, "mod_only") File "/home/leonspencer/virt/oz-0.11.0/oz/RedHat.py", line 1174, in _internal_customize self._collect_setup(modified_xml) File "/home/leonspencer/virt/oz-0.11.0/oz/RedHat.py", line 391, in _collect_setup g_handle = self._guestfs_handle_setup(libvirt_xml) File "/home/leonspencer/virt/oz-0.11.0/oz/Guest.py", line 1068, in _guestfs_handle_setup raise oz.OzException.OzException("No operating systems found on the disk") oz.OzException.OzException: No operating systems found on the disk

clalancette commented 11 years ago

Hm. Well, for the original issue reported here, I did indeed confirm that there is something weird with the CentOS minimal disks. It ends up looking for a package collection that doesn't exist, and that causes the error. At the very least I need to update the documentation, and I should be able to do better than that by detecting the situation and throwing an error early on.

As for the second problem, I'm honestly not sure what is going on there. Did you use the minimal CD to do the installation to begin with? If so, I'm surprised you got as far as you did. Can you open a new issue, and paste the entire output from oz-install? That might help in tracking it down.

ghost commented 11 years ago

Sure thing

harmw commented 10 years ago

You could use the following in your kickstart:

%packages --nobase

clalancette commented 9 years ago

The last comment is exactly right; --nobase on the %packages section fixes it. That also seems to work with RHEL-6, so I've now committed a fix for this. Sorry it's taken so long!