Title: ConfigDrive iso generation not working · Issue #11622 · apache/cloudstack · GitHub
Open Graph Title: ConfigDrive iso generation not working · Issue #11622 · apache/cloudstack
X Title: ConfigDrive iso generation not working · Issue #11622 · apache/cloudstack
Description: problem On RHEL 9.6 we are having the same issues described here: #10864 According to this, the host needs to have one of the following /usr/bin/genisoimage, /usr/bin/mkisofs, /usr/local/bin/mkisofs the first two are present in RHEL 9.6 ...
Open Graph Description: problem On RHEL 9.6 we are having the same issues described here: #10864 According to this, the host needs to have one of the following /usr/bin/genisoimage, /usr/bin/mkisofs, /usr/local/bin/mkisof...
X Description: problem On RHEL 9.6 we are having the same issues described here: #10864 According to this, the host needs to have one of the following /usr/bin/genisoimage, /usr/bin/mkisofs, /usr/local/bin/mkisof...
Opengraph URL: https://github.com/apache/cloudstack/issues/11622
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ConfigDrive iso generation not working","articleBody":"### problem\n\nOn RHEL 9.6 we are having the same issues described here: https://github.com/apache/cloudstack/discussions/10864\n\nAccording to [this](https://github.com/apache/cloudstack/blob/b46e29dc677c0fcdc62768d53f02cc6854f0cea8/engine/storage/configdrive/src/main/java/org/apache/cloudstack/storage/configdrive/ConfigDriveBuilder.java#L214), the host needs to have one of the following `/usr/bin/genisoimage, /usr/bin/mkisofs, /usr/local/bin/mkisofs` the first two are present in RHEL 9.6 but ultimately, as symlinks to `xorriso`, See:\n\ngenisoimage:\n\n\n```\n# ls -lat /usr/bin/genisoimage\nlrwxrwxrwx. 1 root root 37 Sep 12 09:26 /usr/bin/genisoimage -\u003e /etc/alternatives/mkisofs-genisoimage\n# ls -lat /etc/alternatives/mkisofs-genisoimage\nlrwxrwxrwx. 1 root root 18 Aug 7 14:55 /etc/alternatives/mkisofs-genisoimage -\u003e /usr/bin/xorrisofs\n# ls -lat /usr/bin/xorrisofs\nlrwxrwxrwx. 1 root root 7 Jan 15 2025 /usr/bin/xorrisofs -\u003e xorriso\n```\n\nmkisofs:\n\n```\n# ls -lat /usr/bin/mkisofs\nlrwxrwxrwx. 1 root root 25 Aug 7 14:55 /usr/bin/mkisofs -\u003e /etc/alternatives/mkisofs\n# ls -lat /etc/alternatives/mkisofs\nlrwxrwxrwx. 1 root root 18 Aug 7 14:55 /etc/alternatives/mkisofs -\u003e /usr/bin/xorrisofs\n# ls -lat /usr/bin/xorrisofs\nlrwxrwxrwx. 1 root root 7 Jan 15 2025 /usr/bin/xorrisofs -\u003e xorriso\n```\n\n```\n#update-alternatives --display mkisofs\nmkisofs - status is auto.\n link currently points to /usr/bin/xorrisofs\n/usr/bin/xorrisofs - priority 50\n follower mkisofs-genisoimage: /usr/bin/xorrisofs\n follower mkisofs-genisoimageman: /usr/share/man/man1/xorrisofs.1.gz\n follower mkisofs-mkisofsman: /usr/share/man/man1/xorrisofs.1.gz\nCurrent `best' version is /usr/bin/xorrisofs.\n```\n \nif I rename those two binaries I get the error: \"Cannot create iso for config drive using any know tool. Known paths [/usr/bin/genisoimage, /usr/bin/mkisofs, /usr/local/bin/mkisofs]\" (as per code above). Meaning the check is done correctly.\n \nI also tested manually to create an iso with genisoimage using the flags CloudStack wants to use and that works (to prove that `genisoimage` actually works)\n\n`/usr/bin/genisoimage -o /tmp/configdrive-test.iso -ldots -allow-lowercase -allow-multidot -cache-inodes -l -quiet -J -r -V config-2 /tmp/configdrive-test`\n\nI am not a programmer, but it seems that the [this](https://github.com/apache/cloudstack/blob/46e29dc677c0fcdc62768d53f02cc6854f0cea8/engine/storage/configdrive/src/main/java/org/apache/cloudstack/storage/configdrive/ConfigDriveBuilder.java#L234) is returning `/usr/bin/xorriso` which does not support directly the `mkisofs` style flags, one needs to pass the `mkisofs` flags like so: `xorriso -as mkisofs`.\n\n### versions\n\nCloudStack 4.20.1 on KVM\n\n### The steps to reproduce the bug\n\nSee above\n\n\n### What to do about it?\n\nPerhaps improve the code how the iso generation tool is detected (should not follow symlinks)?","author":{"url":"https://github.com/returntrip","@type":"Person","name":"returntrip"},"datePublished":"2025-09-12T06:49:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/11622/cloudstack/issues/11622"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2ab3eef7-7729-3ce5-7806-380188b27dee |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AEBA:90996:18FC808:2402B75:6A4F78FA |
| html-safe-nonce | c35b1280527d7690428ce2781c868546b3a0596b11dccdc6eb460a9f6a69e99c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUJBOjkwOTk2OjE4RkM4MDg6MjQwMkI3NTo2QTRGNzhGQSIsInZpc2l0b3JfaWQiOiI3MTQ5ODEzOTE3NDkyOTM0OTA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8f723221ad2baa39c661e7e42920bcef2f397e2d005b6358948f66b8851054f5 |
| hovercard-subject-tag | issue:3409123372 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/cloudstack/11622/issue_layout |
| twitter:image | https://opengraph.githubassets.com/155e4555691ab724f0b054855ec57051ad496233449db7fbf94beccf5c16589b/apache/cloudstack/issues/11622 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/155e4555691ab724f0b054855ec57051ad496233449db7fbf94beccf5c16589b/apache/cloudstack/issues/11622 |
| og:image:alt | problem On RHEL 9.6 we are having the same issues described here: #10864 According to this, the host needs to have one of the following /usr/bin/genisoimage, /usr/bin/mkisofs, /usr/local/bin/mkisof... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | returntrip |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/cloudstack git https://github.com/apache/cloudstack.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 9759448 |
| octolytics-dimension-repository_nwo | apache/cloudstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9759448 |
| octolytics-dimension-repository_network_root_nwo | apache/cloudstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width