flake VM: add additional /dev/vdb disk with empty ext4 FS #102

Merged
houkime merged 3 commits from vm-disk into master 2024-03-15 11:42:38 +02:00
Collaborator

Mounted at /volumes/vdb.

Mounted at `/volumes/vdb`.
houkime was assigned by alexoundos 2024-03-08 12:54:17 +02:00
inex was assigned by alexoundos 2024-03-08 12:54:17 +02:00
alexoundos added 2 commits 2024-03-08 12:54:17 +02:00
inex approved these changes 2024-03-08 13:22:31 +02:00
alexoundos requested review from houkime 2024-03-09 02:25:58 +02:00
houkime was unassigned by alexoundos 2024-03-09 02:26:01 +02:00
Poster
Collaborator

Note, that the disk device name (vdb) inside VM differs from what we have (sdb), when NixOS runs, say on Hetzner.

Note, that the disk device name (`vdb`) inside VM differs from what we have (`sdb`), when NixOS runs, say on Hetzner.
houkime requested changes 2024-03-13 15:04:28 +02:00
@ -139,0 +117,4 @@
nodes.machine = { lib, pkgs, ... }: {
# additional disk of size 1024 MiB with empty ext4 FS
virtualisation.emptyDiskImages = [ 1024 ];
virtualisation.fileSystems."/volumes/vdb" = {
Collaborator

For tests we will need 2 volumes mounted under /volumes
Root volume may be mounted there too, but @inex , do we mount root under /volumes in prod?
At the second volume only needs 200 megs tops, we will move a small service to there

For tests we will need 2 volumes mounted under /volumes Root volume may be mounted there too, but @inex , do we mount root under /volumes in prod? At the second volume only needs 200 megs tops, we will move a small service to there

No need to mount root there, because it is already mounted as /

No need to mount root there, because it is already mounted as `/`
Poster
Collaborator

For tests we will need 2 volumes mounted under /volumes

@houkime, done:

$ nix run -L "git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git?ref=vm-disk&rev=bddc6d18312c7ebdbf2b58be7e1aaa50876f0622#checks.x86_64-linux.default.driverInteractive" -- --no-interactive <(echo 'import time; machine.start(); time.sleep(1000000)')
> For tests we will need 2 volumes mounted under /volumes @houkime, done: ```console $ nix run -L "git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git?ref=vm-disk&rev=bddc6d18312c7ebdbf2b58be7e1aaa50876f0622#checks.x86_64-linux.default.driverInteractive" -- --no-interactive <(echo 'import time; machine.start(); time.sleep(1000000)') ```
alexoundos added 1 commit 2024-03-14 05:07:33 +02:00
houkime approved these changes 2024-03-15 11:39:23 +02:00
houkime merged commit d464f3b82d into master 2024-03-15 11:42:38 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: SelfPrivacy/selfprivacy-rest-api#102
There is no content yet.