Go to file
2011-03-02 12:25:04 +01:00
appmenus Make templatevm's appmenus to start programs as root 2010-10-04 17:54:45 +02:00
base_rpms the fedorize_image script 2010-06-19 02:27:12 +02:00
clean_images Merge branch 'cleanup_image' of git://qubes-os.org/rafal/template-builder 2010-09-30 17:32:55 +02:00
keys the fedorize_image script 2010-06-19 02:27:12 +02:00
mnt Initial public commit. 2010-04-06 00:25:37 +02:00
netvm Use xterm instead of konsole in netvm appmenus 2010-10-04 12:38:15 +02:00
qubeized_images Initial public commit. 2010-04-06 00:25:37 +02:00
rpm Initial public commit. 2010-04-06 00:25:37 +02:00
rpms_3rd_party Keep 3rd party RPMs in the repo 2010-09-23 00:53:55 +02:00
rpms_to_install_appvm_x64 Create /home and /usr/local symlinks on the template's root fs 2010-10-04 19:59:11 +02:00
rpms_to_install_netvm_x64 Update kernel and qubes packages for template and netvm 2010-10-01 15:41:39 +02:00
template Make templatevm's appmenus to start programs as root 2010-10-04 17:54:45 +02:00
vm_conf_files use snapshot device in template to make it updatable with running appvms 2011-02-26 23:38:25 +01:00
vm_initramfs_patches Add "modprobe xenblk" to qubes_cow_setup.sh 2010-07-21 17:03:22 +02:00
vm_kernels_appvm_x64 Update kernel and qubes packages for template and netvm 2010-10-01 15:41:39 +02:00
vm_kernels_netvm_x64 Update kernel and qubes packages for template and netvm 2010-10-01 15:41:39 +02:00
.gitignore Add backup files to gitignore 2011-03-02 12:25:04 +01:00
add_3rd_party_software.sh Keep 3rd party RPMs in the repo 2010-09-23 00:53:55 +02:00
appvm.buildlog appvm version 1.1.3 2010-06-30 13:03:23 +02:00
build_netvm_rpm Initial public commit. 2010-04-06 00:25:37 +02:00
build_template_rpm Initial public commit. 2010-04-06 00:25:37 +02:00
cleanup_image Add cleanup_image script 2010-09-17 18:08:12 +02:00
create_apps_for_netvm.sh Initial public commit. 2010-04-06 00:25:37 +02:00
create_apps_for_templatevm.sh Initial public commit. 2010-04-06 00:25:37 +02:00
create_apps_templates_for_netvm.sh Initial public commit. 2010-04-06 00:25:37 +02:00
create_apps_templates_for_templatevm.sh Make templatevm's appmenus to start programs as root 2010-10-04 17:54:45 +02:00
create_apps_templates.sh Initial public commit. 2010-04-06 00:25:37 +02:00
dispvm-dotfiles.tbz dispvm-dotfiles.tbz updated 2010-07-30 16:41:38 +02:00
fedorize_image fedorize_image: use -y for yum 2010-10-01 15:39:00 +02:00
mount_root.sh Initial public commit. 2010-04-06 00:25:37 +02:00
netvm.spec {template,netvm}.spec: use own vm_kernels_{appvm, netvm} directory 2010-06-19 02:27:25 +02:00
qubeize_image_appvm Create /home and /usr/local symlinks on the template's root fs 2010-10-04 19:59:11 +02:00
qubeize_image_netvm qubes_image: split into *_appvm and *_netvm 2010-06-19 02:27:25 +02:00
README qubeize_image_appvm: call cleanup_image automatically at the end 2010-10-04 19:19:18 +02:00
rpms_to_install_appvm qubes_image: split into *_appvm and *_netvm 2010-06-19 02:27:25 +02:00
rpms_to_install_netvm qubes_image: split into *_appvm and *_netvm 2010-06-19 02:27:25 +02:00
templates.spec template: remove previous appmenus in pre script 2010-10-01 15:40:01 +02:00
TODO Initial public commit. 2010-04-06 00:25:37 +02:00
version_appvm version 1.1.7-appvm 2010-10-04 20:07:01 +02:00
version_netvm netvm-1.1.6b 2010-10-04 12:38:24 +02:00
vm_kernels_appvm {template,netvm}.spec: use own vm_kernels_{appvm, netvm} directory 2010-06-19 02:27:25 +02:00
vm_kernels_netvm {template,netvm}.spec: use own vm_kernels_{appvm, netvm} directory 2010-06-19 02:27:25 +02:00

The Template Builder
======================

(applies also to the netvm builder)

1) First, create a clean image of Fedora Linux install. You can use the fedoraize_image
script for this:

fedorize_image <image> <file-with-packets-lists>

NOTE: The fedorize_image script can be also used to update an image -- it
automatically assumes the update mode if the <image> already exists.

The fedorize image takes care about creating proper partition table, that
contains root and swap partitions, to create the initial rpm database, and
install some core packages.

We assume that the image will have a two-partition layout:

img1 <--- the root fs (/)
img2 <--- the swap

2) Update symlinks in rpms_to_install_XXX/ so that they point to the current version
of Qubes-specific rpms to install you want to use (e.g. qubes-gui-vm, etc).

3) Now, you can "qubeize" the image. This must be done as root. E.g.:

# ./qubeize_image <img> <template-name>

4) Make sure the symlinks in vm_kernels_XXX/ point to correct kernel and initramfs
files you want to use for the template:

4a) In order to prepare a patched initramfs file, use the
patch_appvm_initramfs.sh program that is installed as part of
qubes-core-dom0.rpm:

# /usr/lib/qubes/patch_appvm_initramfs.sh \
	<original_initrafms> \
	 <filename_for_patched_initramfs> \
	 /abs_path/vm-initramfs-patches/qubes_cow_setup.sh 


5) Finally, build the Template RPM (do it as normal user, not root), e.g.: 

$./build_rpm <name>

The resulting rpm is stored in rpm/noarch directory.