~paelzer/uvtool:emu-riscv64-extra

Last commit made on 2023-12-14
Get this branch:
git clone -b emu-riscv64-extra https://git.launchpad.net/~paelzer/uvtool
Only Christian Ehrhardt  can upload to this branch. If you are Christian Ehrhardt  please log in for upload directions.

Branch merges

Branch information

Name:
emu-riscv64-extra
Repository:
lp:~paelzer/uvtool

Recent commits

d5893f7... by Christian Ehrhardt 

Split emulation from needing an external kernel

With the addition of riscv64 we have a case that is using
emulation, but actually having a fine bootloader.

Splitting up the detection allows to boot properly the kernel on the
image/disk and furthermore to run it without root (which otherwise
would be needed to mount and extract the guest kernel on the host).

Signed-off-by: Christian Ehrhardt <email address hidden>

f9cea97... by adamretter

Address code-review from Robie Basak

3f85e9f... by adamretter

Add support for emulation of RISC-V 64 via quemu and kvm.

35dc66e... by Thibf

uvtool/wait: Wait for login to be ready

Following LP: #2013403, cloud-init now prevent login until the system
is fully provisioned, which create a situation where we can connect to
ssh but not login.

This fix it by capturing exit code and retrying if a specific exit code
occurs.

We don't enable ssh retries for other kind of errors.

BugLink: https://bugs.launchpad.net/bugs/2039441
Signed-off-by: Thibault Ferrante <email address hidden>

f5bc1e6... by Andrei Gherzan

uvtool: Refactor libvirt connection usage

uvtool assumes the qemu system daemon for its subcommands. This change
makes that easier to maintain using a definition for the libvirt URI.

Related to: https://bugs.launchpad.net/uvtool/+bug/2002530

Signed-off-by: Andrei Gherzan <email address hidden>

a88d59d... by Andrei Gherzan

uvtool: Force virsh for the qemu system daemon

When uvtool creates a VM, it uses the qemu system daemon connection.
This commit forces the list command to use the same connection no matter
the local configuration. This makes create/list command consistent.

Fixes: https://bugs.launchpad.net/uvtool/+bug/2002530

Signed-off-by: Andrei Gherzan <email address hidden>

5408862... by Andrei Gherzan

uvtool: Clarify comment for the list command

Using the virsh wrapper has the disadvantage of not taking into
consideration libvirt configuration we assume (for example using the
system daemon for the libvirt qemu driver/hypervisor.

Also, given that uvtool tends to be used as a shim over libvirt,
filtering the list output wouldn't be very helpful.

This commit clarifies the above and marks a todo to turn this into a
better native implementation.

Related to: https://bugs.launchpad.net/uvtool/+bug/2002530

Signed-off-by: Andrei Gherzan <email address hidden>

1289606... by Lena Voytek

Swap simplestreams test comments to allowlist for inclusive naming

1aae2d4... by Robie Basak

Fix typo in exception description string

c774bc7... by Christian Ehrhardt 

uvtool: switch ip guessing to libvirt-python

This allows to drop plenty of complex code and dependencies
and at the same time is not affected by all the snap path-munging.

Signed-off-by: Christian Ehrhardt <email address hidden>