Skip to content

Instantly share code, notes, and snippets.

@chashtag
chashtag / run.tpl
Last active May 6, 2025 12:07 — forked from efrecon/run.tpl
`docker inspect` template to regenerate the `docker run` command that created a container -- forked to modify for use with podlet
run \
--name {{printf "%q" .Name}} \
{{- with .HostConfig}}
{{- if .Privileged}}
--privileged \
{{- end}}
{{- if .AutoRemove}}
--rm \
{{- end}}
{{- if .Runtime}}
@chashtag
chashtag / 51_nested_in_vmware
Last active February 10, 2021 17:31 — forked from RabidCicada/51_nested_in_vmware
Before running 'hosted-engine --deploy', Put this file in /usr/libexec/vdsm/hooks/before_vm_start/51_nested_in_vmware on the ovirt node
#!/usr/bin/python
import os
import hooking
from ovirt_hosted_engine_setup import constants as ohostedcons
class NestedInVMWareHook(object):
@chashtag
chashtag / hosted_engine_custom.env
Created February 10, 2021 17:29 — forked from RabidCicada/hosted_engine_custom.env
Before running 'hosted-engine --deploy', Put this in /etc/ovirt-hosted-engine-setup.env.d/hosted-engine-custom.env. Edit to replace <LOCATION OF QEMUWRAPPER>
export LIBGUESTFS_HV=<LOCATION OF QEMUWRAPPER>/qemu-wrapper.sh