-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Fri, Feb 05, 2016 at 11:03:30AM +0100, Zrubi wrote:
> On 02/04/2016 04:16 PM, Marek Marczykowski-Górecki wrote:
>
> > Rpm/deb packages are available in repositories, for example: -
> >
http://yum.qubes-os.org/r3.1/current/vm/fc23 -
> >
http://deb.qubes-os.org/r3.1/vm jessie main
> >
> > Theoretically you can simply add such repository matching your
> > distribution and install qubes-core-agent and qubes-gui-agent
> > packages (in Fedora, those are named qubes-core-vm, qubes-gui-vm).
> > Haven't tried that, especially how that would work in HVM, but this
> > is basically what template-builder does.
>
> OK, Will try that first with a F23 HVM to see how it is works...
>
>
>
> Next step would be the usage of private.img - the template based HVM
>
> Is there any helper script to migrate/populate/mount the private.img
> to a template based HVM? - Just as the windows tools helps?
This is already handled by that package - it will populate private.img
on first startup. The only problem is that it expects /home.orig/user as a
source directory (which is created by template-builder as a copy of
/home/user).
So, you'll need to copy it manually.
> If not (what I guess) - any hints where to start?
>
> As I see the default PV solution is to mount the real image to /rw,
> and link the related directories from there...
> What script/service are responsible for creating the needed links?
> Does it depends on the partition schema of its templateVM?
Take a look at /usr/lib/qubes/init/mount-dirs.sh
Package qubes-core-agent also ships its own /etc/fstab.
One more thing - startup scripts (this time in initramfs) expect root
filesystem to be directly on /dev/xvda device, not first partition
(/dev/xvda1). You can probably tweak those scripts by using "pvgrub2"
boot method:
https://www.qubes-os.org/doc/managing-vm-kernel/
And adjust scripts in initramfs created this way (source files are in
/usr/lib/dracut/modules.d/90qubes-vm).
- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQEcBAEBCAAGBQJWtKIoAAoJENuP0xzK19cs/UUH/iVCxxgDMHa82QaYQFzYkUDa
L4MrEY9/98jtis9WA8klZgXlr1RUrS6qbD1YARKdKYQE4H5aWki56KLA88qq1YyA
ZKN1Q1A7fbgA6ZpM4MzKxHd970XBQEPpm/79ZfSz4qbActtU7Kk6D/zmkT9ZL+rm
XdflGrX+NpOOb6+iQHu7fxA9w8NbzgEm0gGpfenXma1XeHQDJ4LHdq3OxCTBmr/L
/isSfkWVUrt/jcaKhJiep/pagEHuztte5u6z+/z3Pe+1+po4eCJbCJExV/o7aVQB
uIocP1r11XsR/Or/uwLVuC59v8qEeVkW2NJrklVF3TliCe6gaEjQgehVmZiGPf0=
=Sm0/
-----END PGP SIGNATURE-----