This file contains 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
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 |
This file contains 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
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 |
This file contains 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
#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 |
This file contains 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
uvt-kvm Ubuntuで簡単に仮想マシンを利用するコマンド | |
1. インストール | |
apt-get -y install uvtool | |
2. イメージの用意 | |
uvt-simplestreams-libvirt sync arch=amd64 | |
単品の場合は | |
uvt-simplestreams-libvirt sync release=trusty arch=amd64 |
This file contains 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
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 |
This file contains 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
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> |
This file contains 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
description "Docker daemon" | |
start on filesystem and started lxc-net | |
stop on runlevel [!2345] | |
respawn | |
script | |
DOCKER=/usr/bin/$UPSTART_JOB | |
DOCKER_OPTS= |
This file contains 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
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 |
This file contains 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
#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 |
This file contains 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
#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 |
NewerOlder