Mic92 / vmsh

Shell into a virtualized linux, with your own tools
https://vmsh.thalheim.io
MIT License
141 stars 7 forks source link

Flake doesn't build #205

Closed yu-re-ka closed 3 years ago

yu-re-ka commented 3 years ago

First it claims the cargoSha256 is incorrect:

[nix-shell:~/proj/vmsh]$ nix build --experimental-features "nix-command flakes" .#vmsh
building '/nix/store/lqv2xc740rfjz2w8p0h1nxr9h9dk3iy9-vmsh-vendor.tar.gz.drv'...
hash mismatch in fixed-output derivation '/nix/store/wjff1ypvpmp1hshfwkcj6aa9isr36sbp-vmsh-vendor.tar.gz':
  wanted: sha256:0xv36zw5iivyk1zhaj4ysar7xrx8q2majm94cly7inyrwfq9fjq8
  got:    sha256:0gs602abg1akm705mpwzh15cxfvspqcblxmpcp8ffl3drjlzj9ra
cannot build derivation '/nix/store/ar6bvr18d4n16gwg711bslbbf00ja39q-vmsh.drv': 1 dependencies couldn't be built
error: build of '/nix/store/ar6bvr18d4n16gwg711bslbbf00ja39q-vmsh.drv' failed

[nix-shell:~/proj/vmsh]$

When I fix that:


[nix-shell:~/proj/vmsh]$ nix build --experimental-features "nix-command flakes" .#vmsh
warning: Git tree '/home/yuka/proj/vmsh' is dirty
building '/nix/store/7kk2lmbspfljrsav97lnn1as2w0wq83p-vmsh.drv'...
builder for '/nix/store/7kk2lmbspfljrsav97lnn1as2w0wq83p-vmsh.drv' failed with exit code 101; last 10 log lines:
    failed to load source for dependency `vm-virtio`

  Caused by:
    Unable to update https://github.com/Mic92/vm-virtio.git?rev=8a8270924ad691232f9f9b3157e66fddd7ba9975#8a827092

  Caused by:
    failed to create directory `/homeless-shelter/.cargo/git/db/vm-virtio-da01ad425960001a`

  Caused by:
    Permission denied (os error 13)
error: build of '/nix/store/7kk2lmbspfljrsav97lnn1as2w0wq83p-vmsh.drv' failed

[nix-shell:~/proj/vmsh]$
Mic92 commented 3 years ago

Yeah. We need to switch away from naersk...

yu-re-ka commented 3 years ago

The packaging currently committed in the repository doesn't use Naersk. This is with normal rustPlatform.buildRustPackage...

Mic92 commented 3 years ago

Fixed in https://github.com/Mic92/vmsh/pull/207/commits/d47deaa2f4be74b76bf98d76f1534272ba851d9f Note that at the moment vmsh is still a bit work in progress. We mainly tested it so far on qemu and now look into other hypervisors. The console ouput is not bidirectional at the moment. However stay tuned for updates!