Package Details: cloud-hypervisor 42.0-1

Git Clone URL: https://aur.archlinux.org/cloud-hypervisor.git (read-only, click to copy)
Package Base: cloud-hypervisor
Description: A Virtual Machine Monitor for modern Cloud workloads
Upstream URL: https://github.com/cloud-hypervisor/cloud-hypervisor
Licenses: Apache:2.0
Submitter: zer0def
Maintainer: gdamjan
Last Packager: gdamjan
Votes: 4
Popularity: 0.000000
First Submitted: 2019-12-18 23:57 (UTC)
Last Updated: 2024-10-30 19:49 (UTC)

Dependencies (3)

Required by (3)

Sources (1)

Latest Comments

AveryFreeman commented on 2023-11-19 20:58 (UTC) (edited on 2023-11-26 18:39 (UTC) by AveryFreeman)

I'm trying to build the package with dbus API support, so I modified the PKGBUILD slightly:

# $HOME/.cache/paru/clone/cloud-hypervisor/PKGBUILD

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  sed -i 's|mshv = |# mshv = |g' Cargo.toml
  sed -i 's|sev_snp|# sev_snp|g' Cargo.toml
  sudo cargo build --release --all-features -j $(nproc)
  sudo cargo tests --all
}

I noticed about half of the integration tests would fail without root access. Any recommendations for a more graceful solution than sudo?

Here's a list of features in the .toml file:

[features]
default = ["kvm", "io_uring"]
dbus_api = ["zbus", "vmm/dbus_api"]
dhat-heap = ["dhat"] # For heap profiling
guest_debug = ["vmm/guest_debug"]
io_uring = ["vmm/io_uring"]
kvm = ["vmm/kvm"]
# mshv = ["vmm/mshv"]               # for Windows
# sev_snp = ["vmm/sev_snp", "mshv"] # only AMD CPUs on Windows
tdx = ["vmm/tdx"]                   # only Intel CPUs
tracing = ["vmm/tracing", "tracer/tracing"]

People with AMD processors should also comment-out the tdx feature in Cargo.toml if building with --all-features, as it is Intel-only.

zer0def commented on 2020-12-12 06:02 (UTC)

Sorry for the late bump, things have been rowdy and release note remarks on migrating off the vhost-user-fs backend to a separate project made me hesitate and want to double-check repercussions. It still may end up causing issues, but the hypervisor itself looks to be working just fine.

gdamjan commented on 2020-11-03 01:43 (UTC)

The package should depend on qemu-headless (which is also provided by qemu).

And even then, it should probably be an optdepends, since the requirement is fully optional.

rageltman commented on 2020-10-27 00:01 (UTC)

This build is failing due to a missing revision in the vm-memory repo:

[2020-10-26T22:21:54.644Z]   -> Extracting v0.10.0.tar.gz with bsdtar
[2020-10-26T22:21:54.644Z] ==> Starting build()...
[2020-10-26T22:21:54.644Z]     Updating git repository `https://github.com/cloud-hypervisor/vm-memory`
[2020-10-26T22:21:54.644Z] error: failed to resolve patches for `https://github.com/rust-lang/crates.io-index`
[2020-10-26T22:21:54.644Z] 
[2020-10-26T22:21:54.644Z] Caused by:
[2020-10-26T22:21:54.644Z]   failed to load source for dependency `vm-memory`
[2020-10-26T22:21:54.644Z] 
[2020-10-26T22:21:54.644Z] Caused by:
[2020-10-26T22:21:54.644Z]   Unable to update https://github.com/cloud-hypervisor/vm-memory?branch=ch#b28148d2
[2020-10-26T22:21:54.644Z] 
[2020-10-26T22:21:54.644Z] Caused by:
[2020-10-26T22:21:54.644Z]   object not found - no match for id (b28148d201b464acdef3124116ea43bb645cfd2f); class=Odb (9); code=NotFound (-3)
[2020-10-26T22:21:54.644Z] ==> ERROR: A failure occurred in build().
[2020-10-26T22:21:54.644Z]     Aborting...
script returned exit code 255