This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/fish | |
set github_account "goneri" | |
#git clone [email protected]:ansible/ansible upstream | |
for i in a b c | |
set -x GIT_DIR $i/.git | |
git clone --shared --origin upstream upstream $i | |
git remote add goneri [email protected]:{goneri}/ansible.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansible-test units --tox --python 3.7 '.*vmware.*' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#freebsd | |
echo new_pw | pw mod user my_user -h 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import subprocess | |
from pathlib import Path | |
vmdk_files = [Path("vCenter-Server-Appliance.vmdk")] | |
while True: | |
new_file = Path("vCenter-Server-Appliance_%d.vmdk" % len(vmdk_files)) | |
if not new_file.exists(): | |
break |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gpt resizedisk ld0 | |
gpt resize -i 2 ld0 | |
reboot | |
dkctl ld0 makewedges | |
mount -ur / | |
resize_ffs -p -y -v /dev/rdk1 | |
fsck -fy /dev/rdk1 | |
reboot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -eux | |
MNT=new | |
FILE=new.img | |
VND=vnd0 | |
mkdir new | |
dd if=/dev/zero of=${FILE} bs=4096 count=1015200 progress=62000 | |
vnconfig ${VND} ${FILE} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
See: https://github.com/virt-lightning/freebsd-cloud-images |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Grab an image from http://ftp.freebsd.org/pub/FreeBSD/releases/VM-IMAGES/ | |
# Start it using QEMU, e.g: qemu-system-x86_64 -drive file=FreeBSD-13.0-CURRENT-amd64.qcow2 -net nic,model=virtio -net user -m 1G | |
# Login and fetch the script: | |
# fetch --no-verify-peer https://gist.githubusercontent.com/XXXXX | |
# sh cloudify.sh | |
# Done | |
export ASSUME_ALWAYS_YES=YES | |
cd /tmp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pkg install py27-cloud-init | |
# cd /usr/local/lib/python2.7/site-packages/cloudinit | |
# curl -L https://code.launchpad.net/~goneri/cloud-init/+git/cloud-init/+merge/364997/+preview-diff/867430/+files/preview.diff | patch -u -p2 | |
# Use the following branch: https://github.com/goneri/cloud-init/tree/freebsd_apply_network | |
# Add the blkid fake binary: | |
root@localhost:/mnt # cat /usr/local/bin/blkid | |
#!/bin/sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
virt-install --connect qemu:///system \ | |
-n esxi-65 -r 4096 \ | |
--vcpus=sockets=1,cores=2,threads=2 \ | |
--cpu host --disk path=/var/lib/libvirt/images/esxi-65.qcow2,size=30 \ | |
-c /home/goneri/Downloads/VMware-VMvisor-Installer-6.5.0.update01-5969303.x86_64.iso --os-type generic \ | |
--accelerate --network=bridge:virbr0,model=e1000 \ | |
--hvm --graphics vnc,listen=0.0.0.0 |