Hi,
On Fri, 21 Mar 2014 10:53:43 +0100
Olivier Médoc <
o_m...@yahoo.fr> wrote:
> Hello,
>
> As I seen that David Steinn Geirsson is working on a debian template,
> I think it could be good to share our tips on building/converting OSs
> and Agents based on apt/.deb.
>
> For instance, we tried to convert a livecd based on ubuntu to a Qubes
> template. What we have done so far:
> - Create linux-template-builder scripts that initialize the system by:
> 1/ Extracting the squashfs from the ISO
> 2/ Mount the squashfs
> 3/ Copy the content of the squashfs on INSTALLDIR (using cp -r
> -p)
>
> On the linux-template-builder side, we wanted to use ubiquity to
> install the template, but it is GUI based and it crash with dbus
> errors. For this reason, we just copied the whole squashfs content.
> Is there any console mode for ubiquity ?
As others have said, the best (and canonical) way of installing
debian-based distros from a running linux system is to use debootstrap.
It's also much easier.
I haven't started on any template building scripts yet, my first
priority is to get the qubes integration stuff packaged and working in
HVM. After that's done, building the template should be fairly easy.
>
> - Try to convert qubes agents and make them work in a HVM where the
> ISO has been installed:
> 1/ Attempts to convert fc18 agents packages using Alien: FAILED
> 2/ Attempts to extract archlinux agents packages in / using tar:
> TODO
>
> We are now waiting because david has apparently some results. David,
> did you managed to make qrexec work ? How did you installed the
> agents ? Have you any debian build scripts ?
I do indeed. Your mail gave me the needed push to at least publish what
I have currently working. :)
You can find the packaging in git here:
http://www.dsg.is/qubes/
Currently working, at least to some extent (in some cases I've skipped
parts from the packaging for now):
core-vchan-xen
linux-kernel
linux-utils
core-agent-linux
gui-common
These repositories should all have GPG signed tags signed using the
attached key (not the same key I use for signing mail). The key ID
should be should be 254F1EA0644CF100.
Installing the first four should get you working qrexec after enabling
it from dom0:
qvm-prefs -s <vmname> qrexec_installed True
For the VM, I have a clean minimal install of debian in a HVM.
Use the username 'user' when installing the system and add NOPASSWD to
sudoers as some of the qubes scripts depend on that. Add /proc/xen
mount to your fstab:
xen /proc/xen xenfs defaults 0 0
You'll also have to set a static network configuration for now.
Some stuff I want to fix in the future:
* Split packages into seperate lib, dev and util packages. Currently
it's one qubes repo = one package.
* Get rid of all the remaining lintian warnings.
* Verify Depends and Build-depends are correct - probably missing some
stuff still.
* Write helper scripts for ifupdown to set correct network
configuration from xenstore
Right now, my primary goal is to get the GUI stuff working. My time for
working on this is limited though, so any help would be appreciated.
Best,
Davíð