lp:~paelzer/uvtool

Get this repository:
git clone https://git.launchpad.net/~paelzer/uvtool
Only Christian Ehrhardt  can upload to this repository. If you are Christian Ehrhardt  please log in for upload directions.

Branches

Name Last Modified Last Commit
emu-riscv64-extra 2023-12-14 12:08:37 UTC
Split emulation from needing an external kernel

Author: Christian Ehrhardt 
Author Date: 2023-12-14 12:08:37 UTC

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 <christian.ehrhardt@canonical.com>

fips-forbids-dsa 2021-07-19 09:26:08 UTC
tolerate if some key types can't be created (LP: #1936473)

Author: Christian Ehrhardt 
Author Date: 2021-07-16 07:26:21 UTC

tolerate if some key types can't be created (LP: #1936473)

For example in FIPS mode we otherwise abort with
DSA keys are not allowed in FIPS mode^M
Traceback (most recent call last):
  File "/usr/bin/uvt-kvm", line 35, in <module>
    uvtool.libvirt.kvm.main_cli_wrapper(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/kvm.py", line 861, in main_cli_wrapper
    main(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/kvm.py", line 856, in main
    args.func(parser, args)
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/kvm.py", line 643, in main_create
    ssh_host_keys, ssh_known_hosts = uvtool.ssh.generate_ssh_host_keys()
  File "/usr/lib/python2.7/dist-packages/uvtool/ssh.py", line 50, in generate_ssh_host_keys
    _keygen(key_type, private_path)
  File "/usr/lib/python2.7/dist-packages/uvtool/ssh.py", line 34, in _keygen
    '-C', 'root@localhost'
  File "/usr/lib/python2.7/subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ssh-keygen', '-q', '-f', '/tmp/uvt-kvm.sshtmpVhmPlF/dsa', '-N', '', '-t', 'dsa', '-C', 'root@localhost']' returned non-zero exit status 255

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>

improve-ipdetection 2021-06-01 11:42:42 UTC
uvtool: switch ip guessing to libvirt-python

Author: Christian Ehrhardt 
Author Date: 2021-05-21 07:23:05 UTC

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 <christian.ehrhardt@canonical.com>

snap-uvtool-for-checkbox 2021-06-01 11:06:39 UTC
snap: use non-accounted name test-snapd-uvtool

Author: Christian Ehrhardt 
Author Date: 2021-06-01 11:06:39 UTC

snap: use non-accounted name test-snapd-uvtool

There is a snap namespace that is not going into the statistics so that
automated self-tests are not polluting the numbers e.g. showing this as
a "hot app" on the store after a night of automated tests.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>

lp-1869185-host-model 2020-05-13 15:46:51 UTC
man: TIL more about apostrophes

Author: Christian Ehrhardt 
Author Date: 2020-05-13 15:46:51 UTC

man: TIL more about apostrophes

uvt-improvements-eoan 2019-10-23 15:46:29 UTC
py3fixup: avoid new UnboundLocalError

Author: Christian Ehrhardt 
Author Date: 2019-10-23 15:46:29 UTC

py3fixup: avoid new UnboundLocalError

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>

add-qxl-as-default 2019-03-07 09:17:01 UTC
template (x86): add spice graphics backend

Author: Christian Ehrhardt 
Author Date: 2019-03-07 09:17:01 UTC

template (x86): add spice graphics backend

In addition to the classic VNC backend add a spice backend to allow
leveraging more benefits of the QXL driver in the guest.

That allows users to upgrade their uvtool guest to a full Desktop and
get some meaningful performance. If they later on add the qxl.ko from
linux-modules-extra they even will get KMS and more extra features.

This will use the same "local only" mechanism that VNC uses to avoid
opening up to the world too much.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>

specify-machine-type 2018-07-16 10:29:41 UTC
man: describe implications and defaults of --machine-type

Author: Christian Ehrhardt 
Author Date: 2018-07-16 10:29:08 UTC

man: describe implications and defaults of --machine-type

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>

fix-arm-template 2018-02-08 12:32:58 UTC
fix arm template nvram path

Author: Christian Ehrhardt 
Author Date: 2018-02-08 12:32:58 UTC

fix arm template nvram path

The body of that element defines a path where the per-guest custom copy
should be stored.
That has two issues:
 1. multiple guests would clash
 2. the path could be not writable by default

Fortunately if just not specified at all libvirt will make sane
defaults.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>

option-to-get-host-passthrough 2018-01-09 14:16:54 UTC
kvm: add --host-passthrough option

Author: Christian Ehrhardt 
Author Date: 2018-01-09 14:16:54 UTC

kvm: add --host-passthrough option

This allows users of uvtool to easily change from the compatibility
focused default cpu type to host-passthrough which will expose as much
as possible to the guest.

Anything in between is too specific for uvtool and can be setup via
libvirt after creating the guest.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>

simplify-s390x-template 2017-11-22 07:54:09 UTC
template-s390x: drop non supported cpu features

Author: Christian Ehrhardt 
Author Date: 2017-11-22 07:54:09 UTC

template-s390x: drop non supported cpu features

This does not cause any issues, but apic, pae and such are just not
existant on s390x. So there might be a case in the future were having
these int he template becomes a problem, therefore remove them now.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>

per-arch-templates-onmaster 2017-11-15 08:43:06 UTC
kvm: fix and explain the usage of undefineFlags

Author: Christian Ehrhardt 
Author Date: 2017-11-15 08:43:06 UTC

kvm: fix and explain the usage of undefineFlags

TL;DR - undefineFlags(libvirt.VIR_DOMAIN_UNDEFINE_NVRAM) makes sure we
can actually undefine aarch64 guests which have nvram.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>

per-arch-templates 2017-10-18 12:22:40 UTC
changelog: template per host architecture (LP: #1452016)

Author: Christian Ehrhardt 
Author Date: 2017-09-29 16:30:22 UTC

changelog: template per host architecture (LP: #1452016)

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>

fix-libvirt-dependency 2017-05-31 05:44:09 UTC
define alternatives for libvirt dependencies

Author: Christian Ehrhardt 
Author Date: 2017-05-31 05:44:09 UTC

define alternatives for libvirt dependencies

To ease backporting make the old libvirt-bin an alternative
to the new packages.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>

per-arch-template 2017-03-28 13:42:41 UTC
--image-arch to override arch for default template

Author: Christian Ehrhardt 
Author Date: 2017-03-28 13:42:41 UTC

--image-arch to override arch for default template

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>

115 of 15 results
This repository contains Public information 
Everyone can see this information.