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
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
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
#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
#!/bin/bash | |
#For CentOS | |
echo "Hello OpenStack World. This is User-Data Test" | tee /root/hello.txt |
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
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
Oct 21 00:29:11 stack01 iscsid: iSCSI logger with pid=29419 started! | |
Oct 21 00:29:11 stack01 kernel: [ 1381.688611] Loading iSCSI transport class v2.0-870. | |
Oct 21 00:29:12 stack01 iscsid: iSCSI daemon with pid=29420 started! | |
Oct 21 00:29:13 stack01 kernel: [ 1382.999501] iscsi: registered transport (tcp) | |
Oct 21 00:29:13 stack01 kernel: [ 1383.256022] scsi2 : iSCSI Initiator over TCP/IP | |
Oct 21 00:29:13 stack01 kernel: [ 1383.762305] scsi 2:0:0:0: RAID IET Controller 0001 PQ: 0 ANSI: 5 | |
Oct 21 00:29:13 stack01 kernel: [ 1383.763668] scsi 2:0:0:0: Attached scsi generic sg0 type 12 | |
Oct 21 00:29:13 stack01 kernel: [ 1383.764556] scsi 2:0:0:1: Direct-Access IET VIRTUAL-DISK 0001 PQ: 0 ANSI: 5 | |
Oct 21 00:29:13 stack01 kernel: [ 1383.764771] sd 2:0:0:1: [sda] 2097152 512-byte logical blocks: (1.07 GB/1.00 GiB) | |
Oct 21 00:29:13 stack01 kernel: [ 1383.764905] sd 2:0:0:1: [sda] Write Protect is off |
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
rpm -ivh http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
rpm -ivh http://rpms.famillecollet.com/enterprise/6/remi/x86_64/remi-release-6.4-1.el6.remi.noarch.rpm | |
yum install redis git -y | |
chkconfig redis on | |
service redis start | |
curl https://raw.github.com/creationix/nvm/master/install.sh | sh | |
source ~/.nvm/nvm.sh | |
#node.jsの最新版をインストール | |
nvm install $(nvm ls-remote | tail -1 | awk '{print $1}') | |
#expressをインストール |
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
#ディレクトリ作成、移動 | |
mkdir centos_ssh | |
cd centos_ssh | |
#コンテナイメージ作成ファイルの作成 | |
vi Dockerfile | |
#choice container image | |
FROM centos |
OlderNewer