Skip to content

Instantly share code, notes, and snippets.

View ngtuna's full-sized avatar

Tuna ngtuna

View GitHub Profile
{
"zones": [
{
"name": "Sandbox-simulator",
"guestcidraddress": "10.1.0.0/16",
"dns1": "10.147.28.6",
"physical_networks": [
{
"broadcastdomainrange": "Zone",
"vlan": "100-200",
#!/usr/bin/env python
import sys
import XenAPI
from pprint import pprint
def main(sx):
vms = sx.VM.get_all()
real_vms = [ x for x in vms if not sx.VM.get_is_a_template(x)]
pprint ( [sx.VM.get_name_label(x) for x in real_vms] )
@ngtuna
ngtuna / cf-openstack.yml
Created July 21, 2014 05:22
cf-openstack.yml
---
name: cf-openstack
director_uuid: 24d60d8a-e839-4ef5-a41d-c86013f31c37
 
releases:
- name: cf
version: 175+dev.1
 
compilation:
workers: 6
@ngtuna
ngtuna / cf-aws.yml
Last active August 29, 2015 14:04
cf-aws.yml [success with CF-175]
---
name: cf-aws
director_uuid: 5b935d4f-b286-4dab-a92d-35217df6daa2
releases:
- name: cf
version: 175+dev.1
compilation:
workers: 6
@ngtuna
ngtuna / lucid.txt
Created August 4, 2014 05:34
Ubuntu Lucid
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.32-64-server (buildd@brownie) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1) ) #128-Ubuntu SMP Tue Jul 15 08:41:58 UTC 2014 (Ubuntu 2.6.32-64.128-server 2.6.32.63+drm33.26)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-2.6.32-64-server root=LABEL=cloudimg-rootfs ro console=ttyS0
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: 0000000000000000 - 000000000009bc00 (usable)
@ngtuna
ngtuna / centos.txt
Created August 4, 2014 05:36
Centos 6.5
Press any key to continue.
Press any key to continue.
Press any key to continue.
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-358.2.1.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Wed Mar 13 00:26:49 UTC 2013
Command line: ro root=/dev/mapper/vg_main-lv_root rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=uk LANG=en_GB rd_NO_MD console=ttyS0,115200 rd_LVM_LV=vg_main/lv_swap crashkernel=auto rd_LVM_LV=vg_main/lv_root SYSFONT=latarcyrheb-sun16 rd_NO_DM nomodeset
KERNEL supported cpus:
Intel GenuineIntel
AMD AuthenticAMD
@ngtuna
ngtuna / bosh-log-current
Created August 5, 2014 12:55
log from /var/vcap/bosh/log/current
2014-08-05_12:50:33.36813 #[13520] INFO: Starting agent 1.2427.0...
2014-08-05_12:50:33.36930 #[13520] INFO: Configuring agent...
2014-08-05_12:50:33.42418 #[13520] INFO: Configuring instance
2014-08-05_12:50:33.53988 #[13520] INFO: OpenStack user data: "{\"registry\":{\"endpoint\":\"http://admin:admin@localhost:25889\"},\"server\":{\"name\":\"vm-e5053348-49e4-45f1-8fe2-5405e48fdb56\"}}"
2014-08-05_12:50:33.57605 #[13520] INFO: failed to load infrastructure settings: Error requesting endpoint http://admin:admin@localhost:25889/instances/vm-e5053348-49e4-45f1-8fe2-5405e48fdb56/settings: #<Errno::ECONNREFUSED: Connection refused - connect(2) (http://localhost:25889)>
2014-08-05_12:50:33.59246 /var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.2427.0/lib/bosh_agent/settings.rb:52:in `rescue in load_from_cache': could neither load infrastructure settings nor cached settings from: /var/vcap/bosh/settings.json (Bosh::Agent::LoadSettingsError)
2014-08-05_12:50:33.59570 from /var/vcap/bosh/lib/ruby/gems/1.9.1
@ngtuna
ngtuna / bosh-bootstrap deploy
Created August 5, 2014 12:58
bosh-bootstrap deploy
Started deploy micro bosh > Uploading stemcellwdwdwdsq. Done (00:03:54)
Started deploy micro bosh > Creating VM from 0bb770ec-c19b-481f-967e-4aadc80b9e43s/usr/local/lib/ruby/gems/2.0.0/gems/httpclient-2.4.0/lib/httpclient/session.rb:805:in `initialize': Connection refused - connect(2) (http://localhost:25889) (Errno::ECONNREFUSED)
from /usr/local/lib/ruby/gems/2.0.0/gems/httpclient-2.4.0/lib/httpclient/session.rb:805:in `new'
from /usr/local/lib/ruby/gems/2.0.0/gems/httpclient-2.4.0/lib/httpclient/session.rb:805:in `create_socket'
from /usr/local/lib/ruby/gems/2.0.0/gems/httpclient-2.4.0/lib/httpclient/session.rb:752:in `block in connect'
from /usr/local/lib/ruby/2.0.0/timeout.rb:66:in `timeout'
from /usr/local/lib/ruby/2.0.0/timeout.rb:97:in `timeout'
from /usr/local/lib/ruby/gems/2.0.0/gems/httpclient-2.4.0/lib/httpclient/session.rb:751:in `connect'
from /usr/local/lib/ruby/gems/2.0.0/gems/httpclient-2.4.0/lib/httpclient/session.rb:609:in `query'
from /usr/local/lib/ruby/gems/2.0.0/gems/httpclient
@ngtuna
ngtuna / micro_bosh.yml
Created September 9, 2014 03:39
microbosh-openstack [success]
---
name: microbosh-openstack
logging:
level: debug
network:
type: manual
ip: 10.10.10.14
cloud_properties:
@ngtuna
ngtuna / cf.yml
Created September 11, 2014 08:41
cf ver.180 manifest with Openstack [unsuccessful]
---
name: cf
director_uuid: 1d139549-2856-4f2f-bcd3-c812a9fb16f0
releases:
- name: cf
version: 180
compilation:
workers: 6