Re: [kiwi] Digest for kiwi-images@googlegroups.com - 6 updates in 2 topics

56 views
Skip to first unread message

austin new

unread,
Sep 10, 2024, 1:57:07 PM9/10/24
to kiwi-...@googlegroups.com
okay, thank you to the answers. trying to use in ubuntu24.04v attached a config file.

Also Iuse to install kiwi sudo apt install kiwi, current version: kiwi is already the newest version (9.25.22-1ubuntu1). Please let me know the steps to update latest version.

sudo /usr/bin/kiwi-ng system build --description build-tests/x86/ubuntu/test-image-live-disk/ --set-repo obs://Virtualization:Appliances:Builder/xUbuntu_24.04 --target-dir /tmp/kiwi_ubuntu/

I get:
[ INFO    ]: 12:55:00 | --> jing: stderr: (no output on stderr), stdout: /var/tmp/kiwi_xslt-ovvrccl0: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   ]: 12:55:00 | KiwiDescriptionInvalid: Failed to validate schema and/or schematron rules. Use --debug for more details



On Tue, Sep 10, 2024 at 5:23 AM <kiwi-...@googlegroups.com> wrote:
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.
ubuntu24.04test.txt

Marcus Schäfer

unread,
Sep 11, 2024, 9:55:29 AM9/11/24
to kiwi-...@googlegroups.com
Hi,

> Also Iuse to install kiwi sudo apt install kiwi, current version: kiwi
> is already the newest version (9.25.22-1ubuntu1). Please let me know
> the steps to update latest version.

Yeah the maintainer of kiwi at Ubuntu told me that he will update
to a newer version soon.

You can use add-apt-repository with the following repo:

https://download.opensuse.org/repositories/Virtualization:/Appliances:/Builder/xUbuntu_24.04/

and from there install python3-kiwi
signature.asc

austin new

unread,
Sep 12, 2024, 12:55:43 PM9/12/24
to kiwi
Hi,
Thanks for the info. I've tried adding the repo. Getting these issues : Err:6 http://download.opensuse.org/repositories/Virtualization:/Appliances:/Builder/xUbuntu_24.04_x86_64 noble Release
  404  Not Found [IP: 195.135.223.226 80]

I cannot add it. Install the python3-kiwi. Is any solutions to resolve these errors. Thanks.

austin new

unread,
Sep 12, 2024, 4:44:38 PM9/12/24
to kiwi-...@googlegroups.com
Hello,
Tried with kiwi-test-image-live-disk.x86_64-2.22.4-Disk-Build148.1.install.iso image. Looks like it does server version. Is the login/passwd is root/root? It's not working. Please share login details. Thanks.



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
-------------------------------------------------------

Marcus Schäfer

unread,
Sep 13, 2024, 4:39:19 AM9/13/24
to kiwi-...@googlegroups.com
Hi,

> Hello,
> Tried
> with kiwi-test-image-live-disk.x86_64-2.22.4-Disk-Build148.1.install.is
> o image. Looks like it does server version. Is the login/passwd is
> root/root? It's not working. Please share login details. Thanks.

The login credentials for all test images are root/linux

Sorry we should really add that information to the docs.
I will do so
signature.asc

austin new

unread,
Sep 13, 2024, 12:59:51 PM9/13/24
to kiwi-...@googlegroups.com
Sure, thank you. It worked. Is there an option to check the installation process? It's just long waited then show the shell to login. 

 

--
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.
Reply all
Reply to author
Forward
0 new messages