- Boxbuild questions - 3 Updates
- hello, we try to use kiwi-ng for Ubuntu versions - 3 Updates
Sven Wölfel <woelfe...@gmail.com>: Sep 09 11:46PM -0700
Hi,
> Let me know if you can find the issue that way
Not yet but thank you for the information.
> I'm pretty sure this has come up before, but to actually configure the
> proxy, you need to configure NetworkManager. The environment variable
> version does not work.
It is news to me, I was under the impression boxbuild would solve the issue
with kiwi and building images behind a proxy.
So in order to make a proxy build work I always have to drop in to the
debug terminal?
Since it is for testing now it is not a real issue but for a production
environment this is not really working.
Anyway I tried to create a simple pac file that redirects all outgoing
traffic over the proxy and placed it in the boxroot/etc directory, so it
will be copied to the build vm.
function FindProxyForURL(url, host) {
// Exclude localhost
if (
isPlainHostName(host) ||
isInNet(dnsResolve(host), "127.0.0.0", "255.255.255.0")
)
return "DIRECT";
else return "PROXY <proxyurl>:<port>";
I then start the build process and wait for the build to fail in order to
get thrown into the debug terminal session.
There I get the NM connection UID with "nmcli c show" and edit it with
nmcli c e <UID>. This drops me in the NM edit shell.
From here I just use " set proxy.method auto" and "set proxy.pac-script
file:///etc/proxy.pac", save the connection with "save" and the connection
should be using the created pac file.
I then re-initiate the build with run_kiwi but the problem remains, kiwi
can not talk to the repository server over the proxy.
Did I miss something?
Regards
Sven
Neal Gompa schrieb am Montag, 9. September 2024 um 10:15:14 UTC+2:
Marcus Schäfer <marcus....@gmail.com>: Sep 10 09:52AM +0200
Hi,
> > version does not work.
> It is news to me, I was under the impression boxbuild would solve the
> issue with kiwi and building images behind a proxy.
boxbuild allows you to run the build in an isolated environment.
We provide a number of boxes which usually are good enough to
run the build. However, depending on network constraints or
other limitations not known to us, there are situations for
which our box setup is not suitable.
In such a case the current process of debugging helps to identify
what needs to change in order to successfuly build. Once this is
clear there is either a mechanic to pre-setup the box to fullfil
the requirement or in the worst case you build your own box together
with our help.
On a personal note. For a real production build I would always
clone the used box as we provide it into a private space such
that you are decoupled from changes and can decide yourself
when to add changes to this isolated environment.
Let's hope we find the connection issue soon.
Regards,
Marcus
--
Public Key available via: https://keybase.io/marcus_schaefer/key.asc
keybase search marcus_schaefer
Sven Wölfel <woelfe...@gmail.com>: Sep 10 01:17AM -0700
Hi,
thank you for the offer. In a real productive scenario I would probably
prefer to use a package mirror in our local network to eliminate the proxy
alltogether. But since I'm not sure if our apt-cacher has a glitch or if it
is a problem with the kiwi config I tried to use upstream servers to
eliminate the possibility of a faulty apt-cache.
Sorry if you misunderstood my comment, I was just referring to this issue
and the discussion of it:
https://github.com/OSInside/kiwi/issues/2234
There is was stated that the kiwi way of configuring a proxy only worked
fine for Suse based systems and boxbuild (probably) solves this issue. As
it stands now it seems it does not.
I'm a bit stuck now. I have no idea how to verify if the altered NM
connection is used by the kiwi build or if there is an issue with it.
I know that proxy environments are a niche case but I would still prefer
kiwi-ng to be able to handle a proxy connection directly instead of relying
on a buildvm to solve this. Just my two cents, I know this is easier said
then done. As Neal pointed out, there is no standardized way of handling
proxy connections in linux.
Regards
Marcus schrieb am Dienstag, 10. September 2024 um 09:52:45 UTC+2:
austin new <austi...@gmail.com>: Sep 09 07:09PM -0500
It's getting these issues. Please let me know my resolutions asap. Urgent.
thanks.
The cmd to use:
*sudo kiwi-ng --type iso system build --description
build-tests/x86/ubuntu/test-image-live-disk/ --set-repo
obs://Virtualization:Appliances:Builder/xUbuntu_23.04 --target-dir
/tmp/kiwi_ubuntu*
, stdout: /var/tmp/kiwi_xslt-utfnlu1k:49:124: error: attribute
"architectures" not allowed here; expected attribute "components",
"customize", "distribution", "imageinclude", "imageonly",
"package_gpgcheck", "password", "profiles", "sourcetype",
"use_for_bootstrap" or "username"
[ ERROR ]: 18:33:20 | KiwiDescriptionInvalid: Failed to validate schema
and/or schematron rules. Use --debug for more details
Sven Wölfel <woelfe...@gmail.com>: Sep 09 11:14PM -0700
Would you mind sharing the config you are trying to build? It seems you put
the attribute "architectures" in the repository tag which, to my knowledge,
does not belong there.
austi...@gmail.com schrieb am Dienstag, 10. September 2024 um 02:09:22
UTC+2:
Marcus Schäfer <marcus....@gmail.com>: Sep 10 09:58AM +0200
Hi,
> "use_for_bootstrap" or "username"
> [ ERROR ]: 18:33:20 | KiwiDescriptionInvalid: Failed to validate
> schema and/or schematron rules. Use --debug for more details
We added the "architectures" attribute recently to kiwi. See here:
https://github.com/OSInside/kiwi/pull/2640
As you are referencing one of our build integration tests in
"build-tests/x86/ubuntu/test-image-live-disk", this new attribute
was also set here for integration testing.
This means you need to update your "sudo kiwi-ng" to the
latest kiwi version >= v10.1.7 and that will make your build to
work again. You can fetch the package either from pip or from:
https://build.opensuse.org/project/show/Virtualization:Appliances:Builder
If this is not an option please remove the "architectures"
attribute from the description
Regards,
Marcus
--
Public Key available via: https://keybase.io/marcus_schaefer/key.asc
keybase search marcus_schaefer
-------------------------------------------------------
Marcus Schäfer Brunnenweg 18
Tel: +49 7562 905437 D-88260 Argenbühl
Germany
-------------------------------------------------------
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to kiwi-images...@googlegroups.com.
Regards,
Marcus
--
Public Key available via: https://keybase.io/marcus_schaefer/key.asc
keybase search marcus_schaefer
Regards,
Marcus
--
Public Key available via: https://keybase.io/marcus_schaefer/key.asc
keybase search marcus_schaefer
-------------------------------------------------------
Marcus Schäfer Brunnenweg 18
Tel: +49 7562 905437 D-88260 Argenbühl
Germany
-------------------------------------------------------
--
You received this message because you are subscribed to a topic in the Google Groups "kiwi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kiwi-images/RZMtly4zbzs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kiwi-images...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kiwi-images/ZuP6MJCIr371q4Ms%40asterix.