Re: [Nix-dev] nixops virtualbox disk size
There is also virtualization.diskSize. Hmm, sorry for misinformation. Although the name sounds quite universal, it is used only with qemu. It certainly works when writing tests that run in qemu VM. virtualisation.memorySize is used even in virtualbox tests but no diskSize. Virtualbox seems to require virtualbox.baseImageSize so it is a shame that it is not unified. I would recommend to git clone nixpkgs repository and grep through and read a bit of nix package files to get the idea, how things are configured. ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] nixops virtualbox disk size
I don't use nixops but after looking in the repo i found this: https://github.com/NixOS/nixops/blob/master/nix/virtualbox.nix#L42 So it should be: virtualbox.disks.mydisk = { port=1; size=123123123; }; Hope this works. On Tue, Jun 16, 2015 at 8:56 PM, Richard Wallace rwall...@thewallacepack.net wrote: Where should that be configured? In the examples in the manual https://nixos.org/nixops/manual/#idm140737319351408 I tried adding it in trivial.nix as 'virtualbox.baseImageSize = 50G;' and tried adding it to trivial-vbox.nix as 'deployment.virtualbox.baseImageSize = 50G;' and neither seemed to have an affect. On Tue, Jun 16, 2015 at 11:25 AM, Joel Moberg joel.mob...@gmail.com wrote: There is, config.virtualbox.baseImageSize, defined here: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/vir tualbox-image.nix#L13 https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/virtualbox-image.nix#L13 ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] nixops virtualbox disk size
You are going to have to build a custom image I think, maybe you can use the prebuilt, and resize it, look futher down the page here https://github.com/NixOS/nixops/blob/master/nix/virtualbox.nix#L132 . It looks like the main disk have to be on port 0. So if you would have virtualbox.disks.disk1 = { port=0; baseImage=${pkgs.richards-image}/image-name.vdi; }; If you build a custom image, I think the command is something along: nix-build ~/nixpkgs-repo/nixos/release.nix -A config.system.build.virtualBoxImage -I nixos-config=path-to-nixos-config But the best is maybe to create a declaration for this, then you can look more into nixos/release.nix and modules ... virtualbox.nix. On Tue, Jun 16, 2015 at 9:12 PM, Richard Wallace rwall...@thewallacepack.net wrote: Unfortunately, that just creates an additional disk and is not used as the root partition or for the /nix/store. If I could figure out how to get it used for either of those that option would work great, but I haven't been able to do that yet. On Tue, Jun 16, 2015 at 12:06 PM, Joel Moberg joel.mob...@gmail.com wrote: I don't use nixops but after looking in the repo i found this: https://github.com/NixOS/nixops/blob/master/nix/virtualbox.nix#L42 So it should be: virtualbox.disks.mydisk = { port=1; size=123123123; }; Hope this works. On Tue, Jun 16, 2015 at 8:56 PM, Richard Wallace rwall...@thewallacepack.net wrote: Where should that be configured? In the examples in the manual https://nixos.org/nixops/manual/#idm140737319351408 I tried adding it in trivial.nix as 'virtualbox.baseImageSize = 50G;' and tried adding it to trivial-vbox.nix as 'deployment.virtualbox.baseImageSize = 50G;' and neither seemed to have an affect. On Tue, Jun 16, 2015 at 11:25 AM, Joel Moberg joel.mob...@gmail.com wrote: There is, config.virtualbox.baseImageSize, defined here: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/vir tualbox-image.nix#L13 https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/virtualbox-image.nix#L13 ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] nixops virtualbox disk size
Where should that be configured? In the examples in the manual https://nixos.org/nixops/manual/#idm140737319351408 I tried adding it in trivial.nix as 'virtualbox.baseImageSize = 50G;' and tried adding it to trivial-vbox.nix as 'deployment.virtualbox.baseImageSize = 50G;' and neither seemed to have an affect. On Tue, Jun 16, 2015 at 11:25 AM, Joel Moberg joel.mob...@gmail.com wrote: There is, config.virtualbox.baseImageSize, defined here: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/vir tualbox-image.nix#L13 ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] nixops virtualbox disk size
There is, config.virtualbox.baseImageSize, defined here: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/vir tualbox-image.nix#L13 ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] nixops virtualbox disk size
There is also virtualization.diskSize. ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] nixops virtualbox disk size
Unfortunately, that just creates an additional disk and is not used as the root partition or for the /nix/store. If I could figure out how to get it used for either of those that option would work great, but I haven't been able to do that yet. On Tue, Jun 16, 2015 at 12:06 PM, Joel Moberg joel.mob...@gmail.com wrote: I don't use nixops but after looking in the repo i found this: https://github.com/NixOS/nixops/blob/master/nix/virtualbox.nix#L42 So it should be: virtualbox.disks.mydisk = { port=1; size=123123123; }; Hope this works. On Tue, Jun 16, 2015 at 8:56 PM, Richard Wallace rwall...@thewallacepack.net wrote: Where should that be configured? In the examples in the manual https://nixos.org/nixops/manual/#idm140737319351408 I tried adding it in trivial.nix as 'virtualbox.baseImageSize = 50G;' and tried adding it to trivial-vbox.nix as 'deployment.virtualbox.baseImageSize = 50G;' and neither seemed to have an affect. On Tue, Jun 16, 2015 at 11:25 AM, Joel Moberg joel.mob...@gmail.com wrote: There is, config.virtualbox.baseImageSize, defined here: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/vir tualbox-image.nix#L13 https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/virtualbox-image.nix#L13 ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] nixops virtualbox disk size
How would that be used here? On Tue, Jun 16, 2015 at 1:09 PM, Tomas Hlavaty t...@logand.com wrote: There is also virtualization.diskSize. ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
[Nix-dev] nixops virtualbox disk size
I'm trying to use nixops to deploy a service to VirtualBox (and eventually ec2). This service requires a very large /nix/store - it depends on a very large number of Haskell packages. During the deploy, I eventually see hiplambda exporting path ‘/nix/store/5a1flswypn2dsgdb4kcjv5f64811yshz-gnutls-3.3.15’ hiplambda exporting path ‘/nix/store/qa0sig9jnf0hp3n79z0n41xq6jdliszy-haskell-wl-pprint-extras-3.5.0.5’ hiplambda exporting path ‘/nix/store/5gpy13mqaqwfm13fbrbp1g6i52hhwidv-haskell-HaTeX-3.16.1.1’ hiplambda exporting path ‘/nix/store/cl2hziivsfs4sikbgigi29wzf1b4ydjb-haskell-hmatrix-0.16.1.5’ hiplambda error: preallocating file of 143861 bytes: No space left on device hiplambda exporting path ‘/nix/store/68j53bfhqja7pbwmxwjrl85244i3lsn3-haskell-hmatrix-repa-0.1.2.1’ hiplambda copying 120 missing paths (756.15 MiB) to ‘root@192.168.56.102 ’... hiplambda writing to file: Broken pipe at /nix/store/xf667rba4zrg3iwfl7hn8caf2kjjwn4a-nix-1.9pre4153_b64988b/lib/perl5/site_perl/5.20.2/x86_64-linux-thread-multi/Nix/CopyClosure.pm line 44. error: command ‘['nix-copy-closure', '--to', 'root@192.168.56.102', u'/nix/store/l3khfds5fdmflfrxbk65np5qdy3q0xsd-nixos-15.06pre-git']’ failed on machine ‘hiplambda’ (exit code 32) Sure enough, the root partition is filled up $ nixops ssh hiplambda -d hiplambda connecting to 192.168.56.102... Last login: Mon Jun 15 05:25:55 2015 from 192.168.56.1 [root@hiplambda:~]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/disk/by-label/nixos 10189112 10152408 0 100% / devtmpfs2027120202712 0% /dev tmpfs 1013544 3028 1010516 1% /run tmpfs 20270880 2027088 0% /dev/shm tmpfs 2027088 340 2026748 1% /var/setuid-wrappers tmpfs 20270880 2027088 0% /sys/fs/cgroup tmpfs 4054200405420 0% /run/user/0 Is there a way I can have nixops use a larger sized disk for the root partition? I'm assuming that the 10GB size is from the NixOS vdi. I can use the deployment.virtualbox.disks to create another disk, but I don't see a way to use that for /nix/store. Am I going to have to resort to doing it manually after the initial creation fails? Thanks, Rich ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev