Bug 819465 - Support partial repositories for anaconda
Summary: Support partial repositories for anaconda
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: python-virtinst
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Cole Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-07 10:33 UTC by Kamil Páral
Modified: 2013-05-27 08:52 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-10-26 12:32:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 790348 0 unspecified CLOSED If specified repo= doesn't contain package repository, fall back to default online repos 2021-02-22 00:41:40 UTC

Internal Links: 790348

Description Kamil Páral 2012-05-07 10:33:10 UTC
Description of problem:
This is a "clone" of bug 790348. Anaconda developers stated that users should use repo= boot argument when providing a link to a full repository (including yum package repository), and stage2= boot argument when providing a link to a partial repository (without yum package repository).

Unfortunately virt-install always passes repo= arguments, so partial repositories don't work with it.

Partial repositories are used for testing Fedora development composes, or they can be used for PXE/VM spinning when you want to store just the anaconda installer locally, but not the whole yum repo.

Please find some way how to enable partial repository support inside anaconda. Some of possible ways were mentioned in bug 790348 comment 33. Another possible way is to talk to anaconda developers and convince them to change repo= behavior. But they don't seem to be inclined to go that way.

Version-Release number of selected component (if applicable):
python-virtinst-0.600.1-1.fc16.noarch

Steps to Reproduce:
1. virt-install --name Foo --ram 1024 --disk pool=default,size=10 --location http://dl.fedoraproject.org/pub/alt/stage/17.TC3/Fedora/i386/os/
(or use some another partial repository)

Comment 1 Cole Robinson 2012-10-26 12:32:24 UTC
Still not ideal for the reasons outlined here:

https://bugzilla.redhat.com/show_bug.cgi?id=790348#c21

But you can make it work with virt-install, probably want to turn it into a wrapper script though.

wget http://dl.fedoraproject.org/pub/alt/stage/18-Beta-TC6/Fedora/x86_64/os/images/pxeboot/initrd.img -O ~/.virtinst/boot/initrd.img
wget http://dl.fedoraproject.org/pub/alt/stage/18-Beta-TC6/Fedora/x86_64/os/images/pxeboot/vmlinuz -O ~/.virtinst/boot/vmlinuz

sudo virt-install --boot kernel=$HOME/.virtinst/boot/vmlinuz,initrd=$HOME/.virtinst/boot/initrd.img,kernel_args="stage2=http://dl.fedoraproject.org/pub/alt/stage/18-Beta-TC6/Fedora/x86_64/os/" --os-variant fedora17 ...

Closing as WONTFIX, but reopen if that workaround isn't sufficient and maybe we can figure something out.

Comment 2 Kamil Páral 2012-10-26 13:17:58 UTC
I believe anaconda in Fedora 18 now supports inst.repo= with incomplete repositories (just LiveOS/ directory, but no Packages/). They fall back to online repos in that case. If virt-install passes inst.repo= argument, then it should work seamlessly.

Comment 3 Cole Robinson 2012-10-26 13:35:18 UTC
indeed, --location seems to just work now when pointing to that URL


Note You need to log in before you can comment on or make changes to this bug.