公告版位

目前日期文章:201509 (8)

瀏覽方式: 標題列表 簡短摘要

1. Create a new account "Cloud-user"
# adduser Cloud-user

2. Add "Cloud-user" into sudo(sudoers) list.
# usermod -a -G sudo Cloud-user

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

今天假設我們先安裝SSH的Daemon:
# sudo apt-get install openssh-server

安裝sysv-rc-conf package, 用來設定Daemon開機與關機時, Service的啟動與閉關:
# sudo apt-get install sysv-rc-conf

設定在所有Run Level開機時皆自動開啟SSH Daemon:
# sudo update-rc.d -f ssh defaults

設定在所有Run Level開機時皆不開啟SSH Daemon:
# sudo update-rc.d -f ssh remove

設定只在Run Level 2~5自動啟動SSH Daemon, 而開機啟動順位為80 (數值愈大愈晚啟動):
# sudo update-rc.d ssh start 80 2 3 4 5

設定在Run Level 0, 1, 6時自動關閉SSH Daemon, 而關閉順位為20 (數值愈小愈早關閉):
# sudo update-rc.d ssh stop 20 0 1 6

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

1. We are going to get a key pair (ex: OpenStack.pem).
    (You can get Mirantis OpenStack key pair on Fuel's /root/.ssh/id_rsa)
    The key pair is below,

putty_filezilla_keypair_01.png  



2. Download PuTTYgen. (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html)

3. Open PuTTYgen, type "Conversions" --> type "Import key" --> import your key pair (ex: OpenStack.pem)

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

1. Upload images (raw or qcow2) into OpenStack Controller by using key-pair.
example:
# scp -i <key-pair path> CentOS7.qcow2 root@<Controller IP>:~/

OR

# scp -i <key-pair path> CentOS7.raw root@<Controller IP>:~/

 

2. Login OpenStack Controller by using key-pair.
example:# ssh -i <key-pair path> root@<Controller IP>

3. Upload images into OpenStack Glance,

For QCOW2 image:
# glance image-create --name=<Image Display Name> \
    --disk-format=qcow2 --is-public true \
    --container-format=bare \
    --min-disk <DISK_GB> \
    --min-ram <DISK_RAM> \
    --file ~/CentOS7.qcow2 \
    --progress

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

1. Convert an image from QCOW2 to RAW
# qemu-img convert -f qcow2 -O raw \
    ~/CentOS-7-x86_64.qcow2 \
    ~/CentOS-7-x86_64.raw

2. Convert an image from RAW to QCOW2
# qemu-img convert -f raw -O qcow2 \
    ~/CentOS-7-x86_64.raw \
    ~/CentOS-7-x86_64.qcow2

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

1. Create a user (msmuser) for LSI MSM login
# adduser --shell /usr/sbin/nologin --gid 0 --no-create-home msmuser

2. Due to Mirantis OpenStack default root can't login for using password, and only use key pair. For system security, we configure a account/password to SSH login only.
# vim /etc/ssh/sshd_config
--------------------------------
......
......
......
......
......
......
Match User msmuser
PasswordAuthentication yes
--------------------------------

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

1. LSI MSM package.

2. Unzip .zip file, and then tar .tar.gz file.
# unzip XX.XX.XX.XX_Linux_MSM.zip
# tar zxvf MSM_linux_x64_installer-XX.XX.XX-XX.tar.gz

3. Install alien to covert .rpm, the reference is below,
How to install alien to convert .rpm on OpenStack (Ubuntu 12.04)

4. Going to MSM folder.# cd disk

5. Convert all .rpm files
# alien --scripts *.rpm

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

1. Backup config
# mv /etc/apt/sources.list /etc/apt/bak.sources.list

2. You can generate sources.list config (Reference: http://repogen.simplylinux.ch/index.php)
# vim /etc/apt/sources.list
---------------------------------------------
###### Ubuntu Main Repos
deb http://tw.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
---------------------------------------------

3. Configure DNS
# vim /etc/resolv.conf
---------------------------------------------
nameserver 8.8.8.8
---------------------------------------------

4. Install alien package
# apt-get update
# apt-get install alien

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()