Cole Robinson
48ba2883e5
virtinst: break out kernel/initrd vol upload to its own file
2016-06-17 07:52:42 -04:00
Cole Robinson
dbb057d095
virtinst: Move initrdinject handling to its own file
2016-06-17 07:52:42 -04:00
Cole Robinson
f4dfb6de9d
Fix recent pylint/pep8 output
2016-04-18 16:42:12 -04:00
Pavel Hrdina
4c3e7969c6
virt-install: concatenate all extra-args argument
...
So far we used only the last --extra-args argument from virt-install
command line, but it makes more sense to use all occurrences of
--extra-args and pass them to kernel.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2016-03-18 03:28:17 +01:00
Cole Robinson
697164f2e5
virtinst: Centralize urlgrabber meter lookup
...
We will eventually want to drop this dep since it's basically dead
upstream, this is a small step in that direction
2015-09-06 15:09:44 -04:00
Cole Robinson
bfa5762d9e
guest: Add install cdrom in set_defaults, not start_install (bz 1220180)
...
Fixes weirdness when using addhardware wizard for a customized VM,
and makes the code easier to follow anyways.
2015-06-06 17:02:20 -04:00
Cole Robinson
bd9ab2d5b5
osdict: Add toplevel OSDB as API entry point
...
Makes code more readable, and lazy loading simpler.
2015-04-04 12:06:41 -04:00
Cole Robinson
838d7f015c
tests: Drop a bunch of redundant xmlconfig tests
...
These are mostly covered by clitests. Keep the important ones around
for code coverage.
2014-12-09 13:19:56 -05:00
Cole Robinson
210ab4d8e0
devicedisk: Add set_vol_install
...
And use it in places where we don't need set_create_storage
2014-12-05 21:49:10 -05:00
Cole Robinson
eb7612356e
virtinst: Switch to relative imports, fix cyclic import warnings
2014-09-12 16:28:38 -04:00
Chen Hanxiao
61eadad354
distroinstaller: fix a typo
...
s/prepartions/preparations
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
2014-09-11 11:08:22 +08:00
Cole Robinson
d9ca950acb
distroinstaller: Don't attempt distro detection for remote CDROMs
...
We shouldn't access the local disk in this case
2014-09-07 16:16:39 -04:00
Cole Robinson
d8d6af55e5
distroinstaller: Cache fetcher and distro store lookups
...
Since we already determine the distro store ahead of time via
check_location and detect_distro, cache the result in the installer
class to save us some network traffic.
2014-09-07 14:40:09 -04:00
Cole Robinson
a8843e5807
virtinst: Remove redundant LiveCDInstaller
...
DistroInstaller can basically do the same thing. This also gives us distro
detection when using virt-install --livecd
2014-09-07 13:42:56 -04:00
Cole Robinson
1247e8d43e
installer: Don't needlessly pass around scratchdir
2014-09-07 13:35:34 -04:00
Cole Robinson
a722eeac78
virt-install: Enable libosinfo detection for --cdrom
...
This streamlines virt-manager and virt-install implementations, requiring
installer.distro_detect to be called if we want distro detection. As
a side effect, we now get CDROM detection for free.
2014-09-07 12:20:26 -04:00
Cole Robinson
95f8b4c6b0
distroinstaller: Fix https:// installs
2014-09-06 15:08:40 -04:00
Cole Robinson
196ff823b3
Fix warnings with latest pep8
2014-05-02 10:20:59 -04:00
Giuseppe Scrivano
6f52478b19
virtinst: DistroInstaller uses libosinfo detection first
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2014-03-26 16:12:13 +01:00
Cole Robinson
797afb3b27
virt-install: Fix --location iso again, and test it (bz 1071513)
2014-03-06 12:46:46 -05:00
Cole Robinson
bd15cd3d6e
distroinstaller: Fix volume upload with latest libvirt bindings (bz 1058720)
2014-01-28 10:00:06 -05:00
Cole Robinson
7f66926721
Fix first time remote URL installs from virt-manager (bz 1049852)
...
On first run, the remote URL install handling creates a storage pool
for /var/lib/libvirt/boot on the remote host. After this, it clears
the VirtualConnection's object cache, so the next time all pools are
fetched, it returns an accurate list.
However that clear_cache call wasn't propagated up to virt-manager's
cache. Add a new cb to fix it.
2014-01-18 14:57:39 -05:00
Cole Robinson
d38d019aeb
distroinstaller: Make each media type explicit
2014-01-11 16:10:38 -05:00
Cole Robinson
0c80c69918
installer: Drop needless property redirection
2014-01-11 15:28:21 -05:00
Cole Robinson
eb33bd34e7
Misc improvements to some debug messages
2013-11-09 18:17:29 -05:00
Giuseppe Scrivano
2a040ccd17
mass update: remove double spaces from comments
...
Updated by this script:
find -name '*.py' -exec sed -i "s|^\(#.*[^.?\!]\) \(.*[^#]\)$|\1 \2|g" \{\} \;
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2013-10-28 17:22:31 +01:00
Giuseppe Scrivano
0df75c7603
headers: update "Red Hat, Inc." copyright for the year 2013
...
Ensure that any file touched by a @redhat.com author in 2013 has an
updated copyright header.
The files were updated using the build-aux/update-copyright gnulib
script and manually added where the copyright line wasn't present.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2013-10-28 17:22:26 +01:00
Cole Robinson
56b9f6187b
Streamline support checks
...
Just use one function check_support
2013-10-06 10:08:04 -04:00
Cole Robinson
34c502560f
storage: Drop unused static function
...
This allows us to simplify the parameters for find_free_name
2013-09-30 16:22:12 -04:00
Cole Robinson
c5f5d5ad9d
urlfetcher: Clean up APIs for fetching URL media
2013-09-26 14:28:13 -04:00
Cole Robinson
8ba600a8e7
virt-install: Fix --location nfs:// (bz 1011177)
2013-09-23 21:23:36 -04:00
Cole Robinson
a6d92c7001
Drop a lot of usage of utility XML functions
2013-09-22 17:34:53 -04:00
Cole Robinson
aff0ddb259
Use XMLBuilder for Storage object handling
...
Simplify the API a bunch while we are at it, add tests, etc.
2013-09-20 10:00:08 -04:00
Cole Robinson
018fcbbb4a
distroinstaller: Support --initrd-inject for RHEL4 (bz 866608)
...
RHEL4 kernels are gzip'd ext2 images, so unzip it, use debugfs to inject
files, and zip it back up. Based on shell code from Patrick J. LoPresti.
2013-09-02 16:10:28 -04:00
Cole Robinson
c426d5a16f
Guest: Drop os_type, just use single os_variant
...
Internally the distinction hasn't been valuable for a long time,
so simplify the API here.
2013-08-11 12:39:36 -04:00
Cole Robinson
952708f509
virtinst: Rename most files to be more sensible
...
- Lower case everything
- Virtual... -> device...
- A few other similar bits
2013-08-09 08:54:39 -04:00