Skip to content

Instantly share code, notes, and snippets.

View hagix9's full-sized avatar

Shiro Hagihara hagix9

  • Fulltrust.inc
  • 7F Matsugaya 2-23-4 Matsugaya Taito-ku Tokyo-to
View GitHub Profile
wget http://cloud-images.ubuntu.com/wily/current/wily-server-cloudimg-amd64-root.tar.gz
openstack image create \
--public \
--container-format=bare \
--disk-format=raw \
--property architecture="x86_64" \
--property hypervisor_type=lxc \
--file wily-server-cloudimg-amd64-root.tar.gz \
ubuntu1510-lxc
2015-12-15 10:27:27.276 2606 ERROR neutron.agent.linux.utils [-]
Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'fip-0063dea4-9cd1-4036-bb31-bb327387433f', 'arping', '-A', '-I', 'fg-d2624342-30', '-c', '3', '-w', '4.5', '192.168.122.152']
Exit code: 2
Stdin:
Stdout:
Stderr: bind: Cannot assign requested address
2015-12-15 10:27:27.282 2606 ERROR neutron.agent.linux.ip_lib [-] Failed sending gratuitous ARP to 192.168.122.152 on fg-d2624342-30 in namespace fip-0063dea4-9cd1-4036-bb31-bb327387433f
2015-12-15 10:27:27.282 2606 ERROR neutron.agent.linux.ip_lib Traceback (most recent call last):
2015-12-15 10:27:27.282 2606 ERROR neutron.agent.linux.ip_lib File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 927, in _arping
#demo-openstack
sudo -i
mkdir -p /opt/virt/kvm
wget -N http://oss.fulltrust.co.jp/disk_images/STACK01.img -P /opt/virt/kvm
wget -N http://oss.fulltrust.co.jp/disk_images/stack01.kvm -P /opt/virt/kvm
virsh define /opt/virt/kvm/stack01.kvm
virsh start STACK01
uvt-kvm Ubuntuで簡単に仮想マシンを利用するコマンド
1. インストール
apt-get -y install uvtool
2. イメージの用意
uvt-simplestreams-libvirt sync arch=amd64
単品の場合は
uvt-simplestreams-libvirt sync release=trusty arch=amd64
root@stack01 ~(keystone)# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
neutron-openvswi-INPUT all -- anywhere anywhere
nova-api-INPUT all -- anywhere anywhere
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT udp -- anywhere anywhere udp dpt:bootps
ACCEPT tcp -- anywhere anywhere tcp dpt:bootps
1.CoreOSのダウンロード
mkdir -p /opt/virt/kvm/ ; cd /opt/virt/kvm/
wget http://alpha.release.core-os.net/amd64-usr/current/coreos_production_qemu_image.img.bz2 -O - | bzcat > core01.img
#wget http://beta.release.core-os.net/amd64-usr/current/coreos_production_qemu_image.img.bz2 -O - | bzcat > core01.img
#wget http://stable.release.core-os.net/amd64-usr/current/coreos_production_qemu_image.img.bz2 -O - | bzcat > core01.img
2.XMLの作成
vi core01.xml
<domain type='kvm'>
<name>coreos01</name>
@hagix9
hagix9 / gist:7625243
Created November 24, 2013 09:39
Docker 0.6.7
description "Docker daemon"
start on filesystem and started lxc-net
stop on runlevel [!2345]
respawn
script
DOCKER=/usr/bin/$UPSTART_JOB
DOCKER_OPTS=
@hagix9
hagix9 / gist:7449596
Last active December 28, 2015 05:28
Docker WebUI
sed 's@/usr/bin/docker -d@/usr/bin/docker -d -H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock@' /etc/init/docker.conf
docker run -p 8000:8000 shipyard/shipyard
Username: admin Password: shipyard
なんか微妙
https://github.com/dotcloud/docker/wiki/Public-docker-images
@hagix9
hagix9 / gist:7379685
Last active December 27, 2015 19:49
めも
#Saucy Image create
#saucy install
sudo debootstrap saucy saucy > /dev/null
#useradd
UBUNTU_USER=ubuntu
UBUNTU_PASSWORD=ubuntu
chroot saucy useradd --create-home -s /bin/bash $UBUNTU_USER
chroot saucy adduser $UBUNTU_USER sudo
echo "$UBUNTU_USER:$UBUNTU_PASSWORD" | chroot saucy chpasswd
@hagix9
hagix9 / gist:7363276
Last active December 29, 2023 07:05
DevStack localrc
#export OS_USERNAME=admin
#export OS_PASSWORD=password
#export OS_TENANT_NAME=demo
#export OS_AUTH_URL=http://192.168.10.50:5000/v2.0
#export OS_AUTH_STRATEGY=keystone
# Common
DEST=/opt/stack
#OFFLINE=true
## the ip of ovs bridge br-phy is 192.168.10.50