[fedora-virt] Is it possible to automatically swap CD during Fedora install in KVM?

Li Ming lili at redhat.com
Tue Mar 16 02:20:18 UTC 2010


On 03/16/2010 01:30 AM, James Laska wrote:
> On Mon, 2010-03-15 at 08:55 +0000, Richard W.M. Jones wrote:
>> On Fri, Mar 12, 2010 at 01:42:20PM +0800, Li Ming wrote:
>>> Great, it works here too. I also find this command also works :):
>>> virsh # attach-disk vmname /path/to/new/CD2.iso hdc --type cdrom
>>
>> For my own interest, how is your script going to detect that anaconda
>> is prompting for the next CD?
>
> We have a script called 'minimon' [1] that is initiated during %pre of
> an install and monitors different sources of information during an
> install.  Feedback is sent over XMLRPC to a MinomonServer [2]
>
> We don't yet have the logic in place to detect and act on a disk space,
> but I suspect it will involve detecting the following event from
> anaconda.log, and making the suggestion noted in a previous mail.
>
>   17:11:13,274 INFO anaconda: switching from media #1 to #2 for
> Packages/vim-enhanced-7.2.359-1.fc13.x86_64.rpm
>
> Thanks,
> James
>
> [1]
> http://git.fedorahosted.org/git/autoqa.git?p=autoqa.git;a=blob_plain;f=tests/rats_install/minimon;hb=HEAD
> [2]
> http://git.fedorahosted.org/git/autoqa.git?p=autoqa.git;a=blob_plain;f=tests/rats_install/minimon.py;hb=HEAD
>

If we can get the /tmp/anaconda.log or output of tty3(you can send 
Ctrl+Alt+F3 to see the output),just search for "switching from media",if 
find this word,it's the time for swap CD.But get the /tmp/anaconda.log 
in non-network environment is a challenge,we still have no answer. As 
James mentioned above, we can use minimon script to do this in network 
environment.

Thanks
Liam


More information about the virt mailing list