Skip to content

Instantly share code, notes, and snippets.

View kikitux's full-sized avatar

Alvaro Miranda Aguilera kikitux

View GitHub Profile
public-yum-downloader.sh -h
-h|--help this screen
-a|--arch=<arch> architecture (ie. i386 or x86_64)
-R|--release=<release> release to download
-P|--path=<path> destination path of download (ie. /var/www/html)
-p|--proxy=<url> proxy (ie http://proxy:3128)
-r|--repo=<repo> manual repo download (ie. ol6_addons)
-m|--min minimal package download for LXC host
-u|--url=<url> local yum repo url (ie. http://mirandaa00)
-s|--src download source rpm
[root@vagrant-oracle65 ~]# rm -fr /var/cache/
[root@vagrant-oracle65 ~]# lxc-create -n mygentoo3 -t gentoo -- --autologin
lxc-create: No config file specified, using the default config /etc/lxc/default.conf
### set_default_arch: default arch/variant autodetect...
=> Got: arch=amd64 variant=amd64
Attempting to obtain an exclusive lock (timeout: 60 sec) named "cache-amd64-amd64"...
=> done.
=> Executing "do_all"
###### cache_setup(): doing cache preparation
{
"variables": {
"ssh_name": "root",
"ssh_pass": "root",
"hostname": "vagrant-oracle65",
"outputfile": "oracle65.box",
"rootfs" : "btrfs",
"swapsize": "6000",
"harddisk2_size": "32000",
"harddisk3_size": "32000",
$ head -n17 packer-vagrant-oracle65-install_crs_db.json
{
"variables": {
"ssh_name": "root",
"ssh_pass": "root",
"hostname": "vagrant-oracle65",
"outputfile": "oracle65.box",
"rootfs" : "ext4",
"swapsize": "6000",
"harddisk2_size": "32000",
reg query HKEY_CLASSES_ROOT\Installer\Products\ /s /f "VirtualBox" /t REG_SZ
HKEY_CLASSES_ROOT\Installer\Products\6E4CC65F4CFD78B4AB9E6C503C500EC5
ProductName REG_SZ Oracle VM VirtualBox 4.3.6
ProductIcon REG_SZ C:\Windows\Installer\{F56CC4E6-DFC4-4B87-BAE9-C605C305E05C}\IconVirtualBox
HKEY_CLASSES_ROOT\Installer\Products\6E4CC65F4CFD78B4AB9E6C503C500EC5\SourceList
PackageName REG_SZ VirtualBox-4.3.6-r91406-MultiArch_x86.msi
@kikitux
kikitux / make_bad.log
Last active August 29, 2015 14:07
make fedora-atomic issue
rm -f fedora-atomic-virtualbox.box
rm -rf box/output-virtualbox/
virtualbox output will be in this color.
Warnings for build 'virtualbox':

* A checksum type of 'none' was specified. Since ISO files are so big,
a checksum is highly recommended.

==> virtualbox: Downloading or copying ISO
@kikitux
kikitux / consulcheck.pl
Last active August 29, 2015 14:08 — forked from robn/consulcheck.pl
#!/usr/bin/env perl
use 5.014;
use warnings;
use strict;
use Consul;
use Sys::Hostname;
use Try::Tiny;
{
"variables": {
"aws_access_key": "",
"aws_secret_key": ""
},
"builders": [
{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
2014/11/09 19:03:41 Packer Version: 0.7.1
2014/11/09 19:03:41 Packer Target OS/Arch: darwin amd64
2014/11/09 19:03:41 Built with Go Version: go1.3.1
2014/11/09 19:03:41 [DEBUG] Discoverd plugin: amazon-chroot = /Users/kikitux/bin/packer-builder-amazon-chroot
2014/11/09 19:03:41 [DEBUG] Discoverd plugin: amazon-ebs = /Users/kikitux/bin/packer-builder-amazon-ebs
2014/11/09 19:03:41 [DEBUG] Discoverd plugin: amazon-instance = /Users/kikitux/bin/packer-builder-amazon-instance
2014/11/09 19:03:41 [DEBUG] Discoverd plugin: digitalocean = /Users/kikitux/bin/packer-builder-digitalocean
2014/11/09 19:03:41 [DEBUG] Discoverd plugin: docker = /Users/kikitux/bin/packer-builder-docker
2014/11/09 19:03:41 [DEBUG] Discoverd plugin: googlecompute = /Users/kikitux/bin/packer-builder-googlecompute
2014/11/09 19:03:41 [DEBUG] Discoverd plugin: null = /Users/kikitux/bin/packer-builder-null
@kikitux
kikitux / -
Last active August 29, 2015 14:20
KVM box
trusty64-kvm-20140418.box: gzip compressed data, from Unix, last modified: Fri Apr 18 19:04:15 2014