ISO modification with additional RPM for NIC
-
@stormi could you maybe advise what I'm doing wrong?
-
@stormi is just back today, I'll come back to you soon
-
@olivierlambert Thanks.
-
I haven't forgotten you, but have been busy. Still need help?
-
@stormi Hi, some help is welcome
Still havenโt found a solutions.
-
Do you absolutely need all in one ISO? Otherwise there's a rather simple solution with an unmodified ISO + a driver ISO. We even already provide one: https://updates.xcp-ng.org/isos/drivers/8.x/
-
@stormi I thought itโs convenient to have all in one as itโs easy for installation. But I can check this options as well. So you recommend to extract the iso to a separate USB drive and load drivers from there?
-
Yes, without any network connectivity available, that's the main option.
Regarding modifying the installation ISO, you'd need two things:
- modify install.img to put the driver in it. That's the easiest part and you can use https://github.com/xcp-ng/xcp/tree/master/scripts/iso-remaster (see the example script in
samples/
). We still need to update the online docs to mention this option (ping @yann). This will give you network connectivity during the installation, but won't install the driver on the system. - install the driver on the target system. If I had done things right, you could just add the RPM in a directory and modify an XML file. However I have not done this right so it's not possible at the moment. There are several options, but I think the simplest is:
- add the RPM in Packages/ and regenerate the repodata + modify the installer code in install.img so that it installs it (look up 'xcp-ng-deps' and add the package name next to it)
- modify install.img to put the driver in it. That's the easiest part and you can use https://github.com/xcp-ng/xcp/tree/master/scripts/iso-remaster (see the example script in
-
@stormi Iโll be back on Wednesday (just short holiday now), Iโll try your advice and see how it works
-
Hi, I've recently tackled the same issue and can confirm @stormi's steps are enough to get things running. I have built the installimg using https://github.com/xcp-ng/create-install-image, and included the mellanox driver by modifying
packages.lst
.echo "mellanox-mlnxen-alt" >> configs/8.2/packages.lst
I then modified the
/opt/xensource/installer/repository.py
python script to include:< _targets = ['xcp-ng-deps'] --- > _targets = ['xcp-ng-deps', 'mellanox-mlnxen-alt']
Such created ISO provides
mellanox-mlnxen-alt
in both the installer and the destination system. -
Excellent news! I suppose we should document it somewhere, ping @thomas-dkmt
-
Also note that there is a simpler approach if you don't need an "all-in-one" ISO image: driver disks.
You can build driver disks using https://github.com/xcp-ng/driver-disks and load them during the installation.
You can also ask us to provide driver disks for alternate drivers for which we haven't built them yet. We make them available on https://mirrors.xcp-ng.org/isos/drivers/8.x/...
That's also something we need to document in the official docs. It's mentioned in the release notes for 8.3 but not in other sections of the documentation.
-
The initial reason we've chosen to create an "all-in-one" ISO image was to simplify further configuration of an automated installation with PXE / Answerfile.
We tried driver disks before, though in our special case of
mellanox-mlnxen-alt
and hardware without any other NICs, I believe it always ends up requiring manual intervention. I haven't found a way to load the driver disk in the installer that is not connected to the network.I think, even though my approach requires a bit more effort, it can still prove useful in some cases.