4 August 2016

Enable Nested (Intel VT-x or AMD-V) Virtualization for Virtual Machine on VMware ESXi

เป็นการเปิด VT ให้กับ Virtual Machine บน VMware ESXi Host ครับ กรณีที่เราต้องเอา Guest Virtual Machine ไปทำ Virtual Machine บน Guest VM อีกที หลายชั้นเลย ^^

มีสองทางเลือก

1. file .vmx of Virtual Machine, add line:
vhv.enable = "true" 

2. add vhv.allow = "TRUE"  to /etc/vmware/config of your Physical ESXi host:
vhv.enable = "true" 

1 August 2016

[ISSUE] Failed to allocate the network(s), not rescheduling, Spawning new instances is fail OpenStack


Problem : 

When trying to Create new instances on OpenStack is fail.

Error Message:

Failed to allocate the network(s), not rescheduling.

Fixed and Solution: 


vi /etc/nova/nova.conf

#Fail instance boot if vif plugging fails
vif_plugging_is_fatal = False

#Number of seconds to wait for neutron vif
vif_plugging_timeout = 0

Referent URL:

https://ask.openstack.org/en/question/54531/failed-to-allocate-the-networks-not-rescheduling/
https://ask.openstack.org/en/question/26938/virtualinterfacecreateexception-virtual-interface-creation-failed/
https://ask.openstack.org/en/question/57342/spawning-new-instances-fails-to-allocate-the-network/

23 July 2016

Change Name Network Interface on CentOS 7

วิธีการเปลี่ยนชื่อ Network Interface บน CentOS 7 นะคับ

เริ่มจากปัญหาก่อน CentOS version 7 นั้นไซร้ ชื่อ Network Interface แลดูจำอยากจุง ดูจากข้างล่างครับ

[root@localhost ~]# ip link
1: lo:  mtu 65536 qdisc noqueue state UNKNOWN mode DEFAU                                 LT
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eno16777736:  mtu 1500 qdisc pfifo_fast st                                 ate UP mode DEFAULT qlen 1000
    link/ether 00:0c:29:f4:fc:ef brd ff:ff:ff:ff:ff:ff
3: eno33554960:  mtu 1500 qdisc pfifo_fast st                                 ate UP mode DEFAULT qlen 1000
    link/ether 00:0c:29:f4:fc:f9 brd ff:ff:ff:ff:ff:ff
4: eno50332184:  mtu 1500 qdisc pfifo_fast st                                 ate UP mode DEFAULT qlen 1000
    link/ether 00:0c:29:f4:fc:03 brd ff:ff:ff:ff:ff:ff
[root@localhost ~]#

1. ให้ทำการแก้ Grub Configure โดยการเพิ่ม "net.ifnames=0 biosdevname=0" เพื่อปิดการทำงานของโปรแกรม เข้าไปแล้ว จากนั้นทำการ Regenerate GRUB Configuration

 vi /etc/default/grub
[root@localhost ~]# cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet net.ifnames=0 biosdevname=0"
GRUB_DISABLE_RECOVERY="true"
[root@localhost ~]#
[root@localhost ~]#  grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-327.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-327.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-c03712fe3ce846b192279eaaa8531bc0
Found initrd image: /boot/initramfs-0-rescue-c03712fe3ce846b192279eaaa8531bc0.img
done
[root@localhost ~]#

5 July 2016

OpenStack Mitaka All-in-one with PackStack on CentOS7


        PackStack คือ เครื่องมือไว้สำหรับทำ Proof of Concept Cloud ซึ่งเราสามารถ Deploy OpenStack ใน Node เดียวได้แบบ All In One หรือจะแยก Compute Node และ Network Node ออกมา ก็ได้แบบง่ายๆ

เน้นย้ำว่า Proof of Concept (POC) Cloud Computing นะแบบง่ายๆ

อ่านเพิ่มเติม https://www.rdoproject.org/install/quickstart/

ลงมือ Configuration และทำการ Installation ครับ

Configure Hostname
[root@controller01 ~]# cat /etc/hosts
127.0.0.1      localhost   localhost.localdomain
192.168.1.10 controller01 controller01.example.com
[root@controller01 ~]# 
[root@controller01 ~]# hostnamectl
   Static hostname: controller01.example.com
-------------------- hidden output--------------------------------------
      Architecture: x86-64
[root@controller01 ~]#

Disable NetworkManager and SELinux Services
[root@controller01 ~]# systemctl stop NetworkManager
[root@controller01 ~]# systemctl disable NetworkManager
[root@controller01 ~]# setenforce 0
[root@controller01 ~]# sed -i 's/enforcing/permissive/' /etc/selinux/config

Static IP Address
TYPE="Ethernet"
BOOTPROTO="static"
IPADDR=192.168.1.10
PREFIX=24
GATEWAY=192.168.1.1
DNS1=192.168.1.1
NAME="eth1"
DEVICE="eth1"
ONBOOT="yes"

Setup RDO repositories
[root@controller01 ~]# yum -y install centos-release-openstack-mitaka epel-release

4 July 2016

ISSUE CentOS 7 Minimal does not detect any network devices on VMware Workstation

จากที่ทำการติดตั้ง CentOS 7 เสร็จแล้ว ผมทำการ Add NIC Card เพิ่มบน VM แล้ว Boot OS เข้าไป ไม่เจอ Interface Network ตัวใหม่ มันหายไปไส?

1. ลองใช้ Command ดู Network Interface

ip link show



2. ลองดู PCI แล้วจะเห็นว่า Device เป็น AMD นะจ๊ะ

lspci -k