- Everything explicit calls (most flexibility)
POST /apis/kubevirt.io/v1alpha1/vms/defaults
POST /apis/kubevirt.io/v1alpha1/vms/store
# wait for a day
GET /apis/kubevirt.io/v1alpha1/vms/store/runtime
| #!/bin/bash | |
| # Usage: | |
| # | |
| # git clone git@github.com:openshift/hypershift.git | |
| # cd hypershift | |
| # curl -o kubevirtci https://gist.githubusercontent.com/rmohr/8324bfeea7d0823ca8cb76622eb76f56/raw/6956f7ff77d218c9060d685c88a7895747f8e0d9/kubevirt | |
| # chmod u+x kubevirtci | |
| # | |
| # ./kubevirtci up # start a cluster with kubevirt |
| # | |
| # This can be used to setup URI aliases for frequently | |
| # used connection URIs. Aliases may contain only the | |
| # characters a-Z, 0-9, _, -. | |
| # | |
| # Following the '=' may be any valid libvirt connection | |
| # URI, including arbitrary parameters | |
| #uri_aliases = [ | |
| # "hail=qemu+ssh://root@hail.cloud.example.com/system", |
| apiVersion: kubevirt.io/v1alpha3 | |
| kind: VirtualMachineInstance | |
| metadata: | |
| name: vmi-nocloud1 | |
| spec: | |
| domain: | |
| devices: | |
| disks: | |
| - disk: | |
| bus: virtio |
| {"component":"virt-launcher","level":"error","msg":"internal error: Unable to get DBus system bus connection: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory","pos":"virDBusGetSystemBus:108","subcomponent":"libvirt","thread":"45","timestamp":"2019-08-09T07:17:15.528000Z"} | |
| {"component":"virt-launcher","level":"error","msg":"internal error: Unable to get DBus system bus connection: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory","pos":"virDBusGetSystemBus:108","subcomponent":"libvirt","thread":"45","timestamp":"2019-08-09T07:17:16.423000Z"} | |
| {"component":"virt-launcher","level":"warning","msg":"DBus not available, disabling firewalld support in bridge_network_driver: internal error: Unable to get DBus system bus connection: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory","pos":"networkStateInitialize:761","subcomponent":"libvirt","thread":"45","timestamp":"2019-08-09T07:17:16.423000Z"} | |
| {"component":"virt-la |
| #!/bin/sh - | |
| #====================================================================================================================== | |
| # vim: softtabstop=4 shiftwidth=4 expandtab fenc=utf-8 spell spelllang=en cc=120 | |
| #====================================================================================================================== | |
| # | |
| # FILE: bootstrap-salt.sh | |
| # | |
| # DESCRIPTION: Bootstrap salt installation for various systems/distributions | |
| # | |
| # BUGS: https://github.com/saltstack/salt-bootstrap/issues |
| import pyudev | |
| context = pyudev.Context() | |
| monitor = pyudev.Monitor.from_netlink(context) | |
| monitor.filter_by(subsystem='cpu') | |
| for action, device in monitor: | |
| print('CPU %s went %s ' % (device.sys_path, action)) |
| # Inspired by https://github.com/OpenViX/enigma2/blob/master/lib/python/Components/Netlink.py | |
| import os | |
| import socket | |
| from collections import OrderedDict | |
| NETLINK_KOBJECT_UEVENT = 15 | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <assert.h> | |
| #include <string.h> | |
| #include <unistd.h> /* getpass */ | |
| #include <security/pam_appl.h> /* pam_start, pam_conv, pam_end, ... */ | |
| #define TRY(x) ret = (x); printf("PAM: %s\n", pam_strerror(handle, ret)); if (ret != PAM_SUCCESS) goto finally | |
| int test_conv(int num_msg, const struct pam_message **msg, |