Nixpkgs: parallels-guest.nix is broken

Created on 21 Nov 2017  Â·  13Comments  Â·  Source: NixOS/nixpkgs

Issue description

Configuring NixOS to use Parallels Tools is impossible.
https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/virtualisation/parallels-guest.nix

Steps to reproduce

  1. Install NixOS as a Parallels guest VM on Mac
  2. Add hardware.parallels.enable = true; to nix config and run nixos-rebuild switch
  3. Expect the following error
***
Please, place Parallels Tools for Linux image into Nix store
using either
  nix-store --add-fixed sha256 prl-tools-lin.iso
or
  nix-prefetch-url file://path/to/prl-tools-lin.iso

***
  1. Copy the prl-tools-lin.iso from the Mac /Applications folder into NixOS
  2. As advised, run one of the above commands to add the .iso file
  3. Re-run nixos-rebuild switch which (unexpectedly) repeats the same error in step 3

Technical details

 - system: `"x86_64-linux"`
 - host os: `Linux 4.9.61, NixOS, 17.09.2075.ac35504065 (Hummingbird)`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 1.11.15`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs`

Most helpful comment

still important to me

All 13 comments

Perhaps @nckx has some ideas ... ?

This value has to be updated with the output of nix-prefetch-url file://path/to/prl-tools-lin.iso (and the version should be updated too).

@orivej I assume you meant that I should be updating the pkgs/os-specific/linux/prl-tools/default.nix file? Where does this file exist on my NixOS?

I'm guessing this is a Mac thing, and I've never even used a Mac... I'm not quite sure why you thought I'd be able to help, but wish you the best of luck, @srid!

Sorry @nckx ... I think I should have instead tagged @lukeadams as he seems to be an user of it ... though git history shows that @abbradar originally created the file.

@orivej I located the file you must be referring to here: /nix/store/8nl96y7kw759aw7zlfxdck3bvrj95b31-nixos-17.09.2075.ac35504065/nixos/pkgs/os-specific/linux/prl-tools/default.nix but it is not editable. I wonder if you meant something else?

Take a look at https://nixos.org/nixpkgs/manual/#chap-quick-start and https://nixos.org/nixpkgs/manual/#idm140737318579552 on how to make changes to Nixpkgs. Basically for a one time fix, you obtain a copy of nixpkgs, edit the file in question, and do a nix-env -i or nix-build or nixos-rebuild switch -I nixpkgs=path/to/nixpkgs. I can't fix this issue without your help because I don't have access to prl-tools-lin.iso.

@srid My pr downloads prl-tools automatically, but I think it's only been
merged into master so far (so you would have to cherry pick it into your own 17.09 fork). What version of parallels are you using? With my
PR you can override the version in your configuration.nix using nixpkgs overlays so it downloads
the correct one – I'll probably post an example at some point.

On Fri, Nov 24, 2017, 18:55 Sridhar Ratnakumar notifications@github.com
wrote:

@orivej https://github.com/orivej I located the file you must be
referring to here:
/nix/store/8nl96y7kw759aw7zlfxdck3bvrj95b31-nixos-17.09.2075.ac35504065/nixos/pkgs/os-specific/linux/prl-tools/default.nix
but it is not editable. I wonder if you meant something else?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/NixOS/nixpkgs/issues/31882#issuecomment-346910176,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADWHbd0-YX9Aw1ibbgTRA_XU95SYREluks5s52WFgaJpZM4QlKwS
.

>

Luke Adams

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

still important to me

Is this fixed, any workaround?

Still waiting here too.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

langston-barrett picture langston-barrett  Â·  3Comments

matthiasbeyer picture matthiasbeyer  Â·  3Comments

lverns picture lverns  Â·  3Comments

ghost picture ghost  Â·  3Comments

yawnt picture yawnt  Â·  3Comments