1 Summary: Tool for converting a physical computer into a Ganeti instance
2 Name: ganeti-p2v-transfer
6 Group: Applications/System
7 Source0: https://ganeti.googlecode.com/files/%{name}-%{version}.tar.gz
8 # Source0-md5: c0333098304fa1868ffcaa82a942eba0
10 Patch1: kpartx-sync.patch
11 URL: https://code.google.com/p/ganeti/
12 BuildRequires: autoconf
13 BuildRequires: automake
14 BuildRequires: docutils
15 BuildRequires: rpmbuild(macros) >= 1.647
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 This is a tool for converting a physical computer into a ganeti
33 instance. It consists of two parts, a ganeti instance OS template that
34 allows the instance to be booted to receive the files, and a script
35 that is run on the source machine to make the transfer.
37 A design document is available in doc/design.rst that describes the
38 functioning of the system. This document will focus on getting the
39 system up and running, and the process for actually performing
40 physical-to-virtual transfers.
43 Summary: Source system transfer script.
44 Group: Applications/System
47 This script is run from the transfer OS to establish an SSH connection
48 with the bootstrap OS, mount the source filesystem(s), and copy
49 the data over to the target. It will prompt the user for credentials
50 as necessary to gain access to the bootstrap OS.
65 rm -rf $RPM_BUILD_ROOT
67 %{__make} install-source install-target \
68 DESTDIR=$RPM_BUILD_ROOT
71 %{__mv} $RPM_BUILD_ROOT%{_datadir}/ganeti/os/p2v-target/variants.list $RPM_BUILD_ROOT%{_sysconfdir}/ganeti/instance-p2v-target
72 ln -s %{_sysconfdir}/ganeti/instance-p2v-target//variants.list $RPM_BUILD_ROOT%{_datadir}/ganeti/os/p2v-target/variants.list
74 %{__rm} -r $RPM_BUILD_ROOT/%{_docdir}/%{name}
77 rm -rf $RPM_BUILD_ROOT
80 %defattr(644,root,root,755)
81 %doc NEWS README* doc/design.* doc/instance-p2v-target.*
82 %dir %{_sysconfdir}/ganeti/instance-p2v-target
83 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ganeti/instance-p2v-target/p2v-target.conf
84 %dir %{_sysconfdir}/ganeti/instance-p2v-target/fixes
85 %attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/fixes/10_fix_fstab
86 %attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/fixes/20_remove_persistent_rules
87 %attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/fixes/30_add_console_inittab
88 %attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/fixes/30_add_console_upstart
89 %attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/fixes/40_copy_hostname
90 %dir %{_sysconfdir}/ganeti/instance-p2v-target/fixes/fixlib
91 %{_sysconfdir}/ganeti/instance-p2v-target/fixes/fixlib/*.py*
92 %dir %{_sysconfdir}/ganeti/instance-p2v-target/hooks
93 %attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/hooks/clear-root-password
94 %attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/hooks/install-fixes
95 %attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/hooks/interfaces
96 %attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/hooks/ramboot
97 %attr(755,root,root) %{_sysconfdir}/ganeti/instance-p2v-target/hooks/xen-hvc0
98 %dir %{_sysconfdir}/ganeti/instance-p2v-target/variants
99 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ganeti/instance-p2v-target/variants/default.conf
100 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ganeti/instance-p2v-target/variants.list
101 %dir %{_datadir}/ganeti/os/p2v-target
102 %{_datadir}/ganeti/os/p2v-target/common.sh
103 %attr(755,root,root) %{_datadir}/ganeti/os/p2v-target/create
104 %attr(755,root,root) %{_datadir}/ganeti/os/p2v-target/export
105 %{_datadir}/ganeti/os/p2v-target/ganeti_api_version
106 %attr(755,root,root) %{_datadir}/ganeti/os/p2v-target/import
107 %attr(755,root,root) %{_datadir}/ganeti/os/p2v-target/rename
108 %{_datadir}/ganeti/os/p2v-target/variants.list
109 %attr(755,root,root) %{_sbindir}/make_ramboot_initrd.py
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_sbindir}/p2v_transfer.py