Skip to content

Instantly share code, notes, and snippets.

@mz-bmcqueen
mz-bmcqueen / gist:4534869c13b3dee2a4bad1ee4269b918
Created January 3, 2018 20:58
waitfor hanging in virtualbox?
def printErr(_ctx, e):
pass
def machbyid(ctx, uuid):
mach = ctx['vb'].findMachine(uuid)
return mach
def checkwait(ctx, args):
session = None
@mz-bmcqueen
mz-bmcqueen / gist:baae15e5e330c2e55f5881feb8cf6274
Last active January 21, 2018 01:53
vboxmanage waiting for output
#VBoxManage guestcontrol clone77 -v run hanging?
#make a fifo for demo so i can read a fixed amount of text on the host from the guest
mkfifo /tmp/qqq
#generate a steady stream of text into a fifo on the guest
cat /dev/urandom | env LC_CTYPE=C tr -cd 'a-f0-9' | pv -L 10 -s 100 > /tmp/qqq
#test it within the guest. generated 100 bytes of simple test at a slow rate
#pv generates both stdout an stderr
@mz-bmcqueen
mz-bmcqueen / gist:528a6afbe94bb0e95c3cf8b4b6587571
Created November 20, 2017 21:32
virtualbox provider gives invalid literal int()
profile
virtualbox-test:
provider: virtualbox-config
clonefrom: secret_name_build-1-001_1510856073165_97291
# Optional
power_on: True
deploy: True
ssh_username: a_username
password: a_password