Mailinglist Archive: yast-devel (25 mails)

< Previous Next >
Re: [yast-devel] Simplifying QEMU installations: virt-installer
  • From: Stefan Hundhammer <shundhammer@xxxxxxx>
  • Date: Mon, 21 Sep 2015 11:07:39 +0200
  • Message-id: <55FFC8DB.7090207@suse.de>
Am 17.09.2015 um 18:43 schrieb Roberto Angelino:
> Do you have to have the ISOs on local disk?
> Is that what this variable is: vm.iso_dir????

This is how it's designed. But come to think of it, if you don't want to use find_iso() to locate the latest ISO matching a pattern, you might as well specify an HTTP URL:

vm.iso_dir = ""
vm.iso = "http://download.myserver.com/suse/openSUSE-13.2-x86_64.iso";

(untested, but IMHO it should work - just give it a try)

The rationale for using find_iso() is to let it use the latest matching ISO automatically without having to change the scripts all the time. Of course, it helps that the ISOs are named (by pure coincicence) so they can be sorted by filename:

*-Beta1*.iso
*-Beta2*.iso
*-Beta3*.iso
*-RC1*.iso
*-RC2*.iso

(it fails with a *-GM*.iso)

Also, when I make my custom ISOs (which is common for us YaST developers since we need to test changed packages in the inst-sys), I create a driver update disk (DUD) from my custom-built RPMs, then integrate that DUD into the latest Beta (or RC) ISO with "mksusecd". I name my ISOS something like

*-zzz-HuHa*.iso

so they are sorted AFTER the official ones, so my custom-built ISO has preference for testing.

When I want to switch back to the official Beta or RC ISOs, I simply move my custom-built ISOs out of the way (to a subdirectory); that's also why find_iso() does not descend into any subdirectories.

But if you don't need or want all that, feel free to use a HTTP URL. It might be a bit slower to fetch it from a remote location than from your local hard disk, though.


> Also it do an install of the iso or just sets up the VM and then
> you boot it and it goes in its merry way?

It all ends in a call to virt-install (part of the libvirt tools), which in turn starts QEMU with an installation from the specified ISO:


https://github.com/shundhammer/virt-installer/blob/master/src/virt-installer.rb#L158

See also
man virt-install


If you have any more questions, feel free to ask.


Kind regards
--
Stefan Hundhammer <shundhammer@xxxxxxx>
YaST Developer

SUSE Linux GmbH
GF: Felix Imendörffer, Jane Smithard, Graham Norton; HRB 21284 (AG Nürnberg)
Maxfeldstr. 5, 90409 Nürnberg, Germany

--
Stefan Hundhammer <shundhammer@xxxxxxx>
YaST Developer

SUSE Linux GmbH
GF: Felix Imendörffer, Jane Smithard, Graham Norton; HRB 21284 (AG Nürnberg)
Maxfeldstr. 5, 90409 Nürnberg, Germany
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >