Skip to content

Instantly share code, notes, and snippets.

View thatch45's full-sized avatar

Thomas S Hatch thatch45

View GitHub Profile
[root@node10 ~]# guestmount -a /mnt/local/vm/jglazner01-dev.la.bo/disk.0 -m /dev/vda3 --rw /mnt/guestmount/
cp: missing file operand
Try `cp --help' for more information.
febootstrap-supermin-helper: ext2_make_initrd: copy kmods failed
libguestfs: error: external command failed, see earlier error messages
[root@node10 ~]# LIBGUESTFS_DEBUG=1 guestfish -a /mnt/local/vm/jglazner01-dev.la.bo/disk.0 -m /dev/vda3 edit /etc/fstab
new guestfs handle 0x215aa00
[00000ms] febootstrap-supermin-helper --verbose -f checksum '/usr/lib/guestfs/supermin.d' x86_64
supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, kernel = (null), initrd = (null), appliance = (null)
supermin helper [00000ms] inputs[0] = /usr/lib/guestfs/supermin.d
supermin helper [00008ms] finished creating kernel
supermin helper [00008ms] visiting /usr/lib/guestfs/supermin.d
supermin helper [00008ms] visiting /usr/lib/guestfs/supermin.d/base.img
supermin helper [00008ms] visiting /usr/lib/guestfs/supermin.d/daemon.img
supermin helper [00008ms] visiting /usr/lib/guestfs/supermin.d/hostfiles
From 5fa6a519cf924217d90addc12ea79bf79fc612e0 Mon Sep 17 00:00:00 2001
From: Thomas S Hatch <thatch45@gmail.com>
Date: Thu, 10 Mar 2011 12:18:39 -0700
Subject: [PATCH] Add support for gzipped kernel modules
---
helper/appliance.c | 12 ++++++++++--
helper/ext2initrd.c | 28 ++++++++++++++--------------
2 files changed, 24 insertions(+), 16 deletions(-)
[root@ragnarok ~]# LIBGUESTFS_DEBUG=1 guestmount -i --ro -a arch /mnt/guest/
new guestfs handle 0x24591a0
[00000ms] febootstrap-supermin-helper --verbose -f checksum '/usr/lib/guestfs/supermin.d' x86_64
supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, kernel = (null), initrd = (null), appliance = (null)
supermin helper [00000ms] inputs[0] = /usr/lib/guestfs/supermin.d
supermin helper [00002ms] finished creating kernel
supermin helper [00002ms] visiting /usr/lib/guestfs/supermin.d
supermin helper [00002ms] visiting /usr/lib/guestfs/supermin.d/base.img
supermin helper [00002ms] visiting /usr/lib/guestfs/supermin.d/daemon.img
supermin helper [00003ms] visiting /usr/lib/guestfs/supermin.d/hostfiles
[root@ragnarok ~]# LIBGUESTFS_DEBUG=1 guestmount -i --ro -a arch /mnt/guest/
new guestfs handle 0x24591a0
[00000ms] febootstrap-supermin-helper --verbose -f checksum '/usr/lib/guestfs/supermin.d' x86_64
supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, kernel = (null), initrd = (null), appliance = (null)
supermin helper [00000ms] inputs[0] = /usr/lib/guestfs/supermin.d
supermin helper [00002ms] finished creating kernel
supermin helper [00002ms] visiting /usr/lib/guestfs/supermin.d
supermin helper [00002ms] visiting /usr/lib/guestfs/supermin.d/base.img
supermin helper [00002ms] visiting /usr/lib/guestfs/supermin.d/daemon.img
supermin helper [00003ms] visiting /usr/lib/guestfs/supermin.d/hostfiles
/init: line 84: lvm: command not found
/init: line 85: lvm: command not found
/init: line 86: lvm: command not found
/init: line 87: ifconfig: command not found
/init: line 88: netstat: command not found
Module Size Used by
dm_mod 65167 0
virtio_balloon 4081 0
virtio_blk 4959 1
def _return_pub(self, ret):
'''
Return the data from the executed command to the master server
'''
log.info('Returning information for job: %(jid)s', ret)
context = zmq.Context()
socket = context.socket(zmq.REQ)
socket.connect(self.opts['master_uri'])
payload = {'enc': 'aes'}
load = {'return': ret['return'],
struct to compound:
nodegroups:
group1:
list:
- foo
- bar
- baz
glob:
- 'foo*'
@thatch45
thatch45 / http-dead.sls
Created February 16, 2012 05:24
States, dead + disabled
httpd:
service:
- dead
- enable: False
# The dead/running functions handles both the running process and boot time enable/disable via the enable option, if you
# don't want to manage the running process then just use the disable function.
@thatch45
thatch45 / cmd-watch.sls
Created February 16, 2012 19:58
watch a command
tincd --net=MPXVPN --generate-keys=4096:
cmd:
- run
- unless: test -f /etc/tinc/MPXVPN/rsa_key.priv
tinc:
service:
- running
- watch:
- cmd: tincd --net=MPXVPN --generate-keys=4096