qubes 4 partitioning/mount scheme

138 views
Skip to first unread message

haaber

unread,
Sep 9, 2017, 7:58:55 AM9/9/17
to qubes-users
Hello,

I have one 32G SSD and a large HDD. In my present Q3.2 installation I am
a bit unhappy with the mount scheme of qubes: indeed, /var/lib/qubes
contains all large data. I would prefer such folders at root level, such
as /appvms and /templatevms etc. But this is my taste.

In any case things are like they are in Q3.2. What bothers is the
question if the directory structure the same in Q4? It is somehow wicked
that one needs to know how Q4 will install in order to kow how to
partition the drives *before* installing it :))

So: could some Q4 user find this out for me please? Most probably 'ls
/var/lib/qubes' will suffice :)

Thank you, Bernhard

Yethal

unread,
Sep 10, 2017, 8:43:32 AM9/10/17
to qubes-users
Can't you just symlink the /var/lib/qubes folder to the secondary drive?

Unman

unread,
Sep 14, 2017, 6:03:47 PM9/14/17
to haaber, qubes-users
Hello Bernhard

In answer to your original question the directory structure is the same
in 4rc1.

unman

Marek Marczykowski-Górecki

unread,
Sep 15, 2017, 6:21:58 PM9/15/17
to Unman, haaber, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
But in default installation, LVM thin volumes are used, instead of
files for VM disk images ("all large data"). If you want to have it on
secondary drive, you need to put "LVM thin pool" there, instead of
/var/lib/qubes.

Additionally, Qubes 4.0 is more flexible about placing different VMs on
different disks - for example you can keep templates on one disk, and
AppVMs on another, without messy symlinks. There will be more
documentation about it later, but for now some commands for that (look
at their manual pages for details):

First configure additional LVM thin pool to your taste. Then register
it:

qvm-pool --add pool_name lvm_thin -o volume_group=vg_name,thin_pool=thin_pool_name
# pool_name is a freely chosen pool name
# vg_name is LVM volume group name
# thin_pool_name is LVM thin pool name

Now, you can create VMs in that pool:

qvm-create -P pool_name --label red vmname

If you want migrate existing VM there, it isn't possible directly, but
you can clone it to the pool, then remove the old one:

qvm-clone -P pool_name old_name new_name
qvm-remove old_name

If that was a template, or other VM referenced elsewhere (NetVM or
such), you need to adjust those referenced manually first. For example:

qvm-prefs appvm_based_on_old_name_template template new_name


In theory you can still use file-based disk images ("file" pool driver),
but it lack some features, so for example you won't be able to do
backups without shutting down a 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

iQEcBAEBCAAGBQJZvFJ+AAoJENuP0xzK19csrIIIAJNC6OB/lvw9WRAyr2Q6IRlO
JVEfxsnObZyqYrA+iCeGdbP1ONhsgbTncBlIRIe/AVaPOjbwoNaJF5jXdN2zPeLU
6h1idy1rKZCgiZYUjesth5CLAp0M48bZLNmzNY0kHrg4yoglSWEblVn2hWMPNWdt
95ffd+FWQYS6Cb3y1Y3UuOQUlwYsNbcTV2KDu8W/DVD1iTM4/OAY9rqyBdFs7Ha0
UEfthy7ayCAEIt/SYnuLrl/GnY61BtQiNt/w7tUkc9uqDn0jgJCHJSVvrigp1ERD
T2JTtRREO6YV2okE1iLG1EJ2Vbt9THxMYV+aVWidxGIjLPnUVtEr6wIJEAHZFCc=
=CoTr
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages