Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qemu: libiscsi support #95274

Merged
merged 2 commits into from Jan 17, 2021
Merged

qemu: libiscsi support #95274

merged 2 commits into from Jan 17, 2021

Conversation

misuzu
Copy link
Contributor

@misuzu misuzu commented Aug 12, 2020

Motivation for this change

Support for booting directly from iSCSI.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@risicle
Copy link
Contributor

risicle commented Sep 1, 2020

Think this'll need a rebase.

@misuzu
Copy link
Contributor Author

misuzu commented Sep 1, 2020

Think this'll need a rebase.

Done!

@risicle
Copy link
Contributor

risicle commented Sep 1, 2020

Builds on macos 10.14.

@ofborg build qemu

@SuperSandro2000
Copy link
Member

Please target master this is not a mass rebuild.

@misuzu misuzu changed the base branch from staging to master December 29, 2020 14:20
@misuzu
Copy link
Contributor Author

misuzu commented Dec 29, 2020

Please target master this is not a mass rebuild.

Done!

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch)
If you find some bugs or got suggestions for further things to search or run please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 95274 run on x86_64-darwin 1

11 packages marked as broken and skipped:
  • alpine-make-vm-image
  • cloud-init
  • cloud-utils
  • multibootusb
  • python37Packages.guestfs
  • python38Packages.guestfs
  • python39Packages.guestfs
  • qemu_xen
  • qemu_xen-light
  • qemu_xen_4_10
  • qemu_xen_4_10-light
4 packages failed to build and are new build failures:
6 packages built:
  • libiscsi
  • out-of-tree
  • qemu
  • qemu-utils
  • qemu_kvm
  • qemu_test
</details>
diff --git a/pkgs/development/python-modules/cot/default.nix b/pkgs/development/python-modules/cot/default.nix
index 89e26545d79..0c2bb961290 100644
--- a/pkgs/development/python-modules/cot/default.nix
+++ b/pkgs/development/python-modules/cot/default.nix
@@ -35,9 +35,10 @@ buildPythonPackage rec {
     "TestQCOW2"
     "TestRAW"
     "TestVMDKConversion"
+  ] ++ lib.optionals stdenv.isDarwin [
+    "test_serial_fixup_invalid_host"
   ];
 
-
   # argparse is part of the standardlib
   prePatch = ''
     substituteInPlace setup.py --replace "'argparse'," ""

@misuzu
Copy link
Contributor Author

misuzu commented Jan 17, 2021

This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch)
If you find some bugs or got suggestions for further things to search or run please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 95274 run on x86_64-darwin 1

11 packages marked as broken and skipped:
4 packages failed to build and are new build failures:

6 packages built:

It builds just fine on my machine.

$ uname -sr
Darwin 19.6.0
$ nixpkgs-review pr 95274
$ git -c fetch.prune=false fetch --force https://github.com/NixOS/nixpkgs master:refs/nixpkgs-review/0 pull/95274/head:refs/nixpkgs-review/1
$ git worktree add /Users/misuzu/.cache/nixpkgs-review/pr-95274-3/nixpkgs 5d9a3e2e5a05b979d3953eeeb1a8282b241a1f53
Preparing worktree (detached HEAD 5d9a3e2e5a0)
Updating files: 100% (24008/24008), done.
HEAD is now at 5d9a3e2e5a0 cargo-c: 0.7.0 -> 0.7.1
$ git merge --no-commit c5dd597870e90f2bf9a03c5a61517eab5c145740
Auto-merging pkgs/top-level/all-packages.nix
Auto-merging pkgs/applications/virtualization/qemu/default.nix
Automatic merge went well; stopped before committing as requested
$ nix --experimental-features nix-command build --no-link --keep-going --option build-use-sandbox relaxed -f /Users/misuzu/.cache/nixpkgs-review/pr-95274-3/build.nix

Link to currently reviewing PR:
https://github.com/NixOS/nixpkgs/pull/95274

11 packages marked as broken and skipped:
alpine-make-vm-image cloud-init cloud-utils multibootusb python37Packages.guestfs python38Packages.guestfs python39Packages.guestfs qemu_xen qemu_xen-light qemu_xen_4_10 qemu_xen_4_10-light

9 packages built:
cot libiscsi out-of-tree python37Packages.cot python39Packages.cot qemu qemu-utils qemu_kvm qemu_test

@SuperSandro2000
Copy link
Member

It builds just fine on my machine.

Do you have sandbox enabled?

@misuzu
Copy link
Contributor Author

misuzu commented Jan 17, 2021

It builds just fine on my machine.

Do you have sandbox enabled?

Yes. I have multi-user nix with explicitly enabled sandbox.

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch)
If you find some bugs or got suggestions for further things to search or run please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 95274 run on x86_64-linux 1

2 packages marked as broken and skipped:
  • linuxPackages_hardkernel_4_14.virtualbox
  • linuxPackages_hardkernel_latest.virtualbox
1 package blacklisted:
  • tests.nixos-functions.nixosTest-test
14 packages failed to build and are new build failures:
34 packages built:
  • alpine-make-vm-image
  • cloud-init
  • cloud-utils
  • cot (python38Packages.cot)
  • libguestfs
  • libiscsi
  • linuxPackages.virtualbox (linuxPackages_5_4.virtualbox)
  • linuxPackages_4_14.virtualbox
  • linuxPackages_4_19.virtualbox
  • linuxPackages_4_4.virtualbox
  • linuxPackages_4_9.virtualbox
  • linuxPackages_5_9.virtualbox
  • linuxPackages_hardened.virtualbox
  • linuxPackages_testing_bcachefs.virtualbox
  • linuxPackages_xen_dom0.virtualbox
  • linuxPackages_xen_dom0_hardened.virtualbox
  • multibootusb
  • open-watcom-bin
  • out-of-tree
  • python37Packages.cot
  • python37Packages.guestfs
  • python38Packages.guestfs
  • python39Packages.cot
  • python39Packages.guestfs
  • qemu
  • qemu-utils
  • qemu_kvm
  • qemu_test
  • qtemu
  • vagrant
  • virtualbox
  • virtualboxHardened
  • virtualboxHeadless
  • virtualboxWithExtpack

The following issues got detected with the above build packages.
Please fix at least the ones listed with your changed packages:

virtualboxHeadless:

Please consider this feature to be alpha.

A substituteInPlace with an unused --replace got detected:

substituteStream(): WARNING: pattern 'PSHCLFORMATDATA' doesn't match anything in file 'src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-x11-stubs.cpp'

Please check the offending substituteInPlace for typos or changes in source.

@misuzu
Copy link
Contributor Author

misuzu commented Jan 17, 2021

This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch)
If you find some bugs or got suggestions for further things to search or run please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 95274 run on x86_64-linux 1

2 packages marked as broken and skipped:
1 package blacklisted:
14 packages failed to build and are new build failures:
34 packages built:
The following issues got detected with the above build packages.
Please fix at least the ones listed with your changed packages:

virtualboxHeadless:

aqemu and virtualbox packages are already broken on master and unrelated to this change.

@SuperSandro2000 SuperSandro2000 merged commit 1afec60 into NixOS:master Jan 17, 2021
@misuzu misuzu deleted the qemu-iscsi branch April 22, 2021 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants