Repository navigation
Incus: read architecture, GPUs and pool space from the target remote - #308
Merged
Merged
Conversation
Contributor
Try this branchThe engine and the scripts resolve independently, so a production script can COMMUNITY_SCRIPTS_CORE_URL=https://raw.githubusercontent.com/community-scripts/core/fix/incus-remote-host-assumptions \
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/debian.sh)"Swap This PR touches Run a script from a fork as wellcurl -fsSL https://raw.githubusercontent.com/community-scripts/core/fix/incus-remote-host-assumptions/tools/run.sh |
bash -s -- https://raw.githubusercontent.com/YOU/DevScripts/your-branch ct/debian.sh \
https://raw.githubusercontent.com/community-scripts/core/fix/incus-remote-host-assumptionsNote that Useful flags while testing
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
βοΈ Description
This follows #306 and #307. Some host checks still looked at the machine running the script, when they should look at the Incus server the default remote points to.
arch_check,vm_archand_vm_import_local_imagenow use_cs_host_arch, which followsINCUS_SERVER_ARCH, instead ofuname -m/dpkg.arch_checkmoves afterpve_checkinvm_preflight, so the target is known when it runs.incus_detect_gpu_devicesreads GPUs fromincus info --resources(new_incus_target_gpus) instead of locallspciand DRM sysfs. The local/dev/nvidia*,/dev/ttyUSB*/ttyACM0and/dev/apex_0probes now run only forlocal._vm_pool_free_gibfalls back todfon the pool source only forlocal, the same guard as the container path inbackend.func:235.${STORAGE:-default}invm-core.funcandct_attach_volumenow use the newincus_default_storage_pool. It returns the default profile's root pool, or else the first pool.vm_resolve_storageuses it too.incus_target_is_localhelper.tests/incus-target.shcovers the GPU parser (NICs are skipped), the local/remote helper and the pool-space guard. The incus-* and vm-* tests pass locally.A matching PR in the Incus repo switches the image-arch selection in four VM scripts to
_cs_host_arch.π Related Issue
Follow-up to #306 / #307.
β Prerequisites (X in brackets)
API.txtwas updated to match.π οΈ Type of Change (X in brackets)
README,docs/,CONTRIBUTING.md, or other docs.π€ AI Assistance (X in brackets)
Generated by Claude Code