2011年12月27日 星期二

Quantum + Openstack(Diablo)

Follow http://wiki.openstack.org/QuantumOVSDemo instructions
The nova services(api, scheduler, network, compute...) and quantum server+client can run up easily.
Note:
After installed needed packages and downloaded all source.
Before ./nova-quantum run, we need
1. create volumes group 'nova-volumes'
2. check glance version, needed 'glance_2011.3~rc' and 'python-glance_2011.3~rc'
3. check dnsmasq version

Demo:
exe "./nova-quantum run, that will generate 10 screens."
switch to screen 10 "test",
exe "python sqo.py create-network net1:net2"
exe "python sqo.py create s1=net1,net2"
then generate a vm with 2 interface, eth0 belong to net1 and get ip 10.0.0.2/24,
eth1 belong to net2 and get ip 10.0.1.2/24

2011年12月25日 星期日

msyql grant

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'nova' WITH GRANT OPTION;
FLUSH PRIVILEGES;

2011年12月22日 星期四

libvirt Qos

<devices>
    <interface type='network'>
      <source network='default'/>
      <target dev='vnet0'/>
      <bandwidth>
        <inbound average='1000' peak='5000' burst='1024'/>
        <outbound average='128' peak='256' burst='256'/>
      </bandwidth>
    </interface>
  <devices>
http://libvirt.org/formatdomain.html#elementsNICSTargetOverride
more example look for /etc/libvirt/nwfilter/

2011年12月18日 星期日

screenrc

#
# ~/.screenrc
#

startup_message off

#  ..screen.....Ctrl-Z......Ctrl-Z... Ctrl-Z z.
#escape ^Zz

# ..... 1024 ..
#defscrollback 1024

# ..............
hardstatus on
hardstatus alwayslastline
hardstatus string "%{.bW}%-w%{.rY}%n %t%{-}%+w %=%{..G} %H(%l) %{..Y} %Y/%m/%d %c:%s "

# ......
vbell off

# . Ctrl-Z w . Ctrl-Z Ctrl-W ......
#bind w windowlist -b

2011年12月4日 星期日

/etc/apt/sources.list

deb http://ftp.isu.edu.tw/pub/Linux/Ubuntu/ubuntu oneiric-updates main restricted universe multiverse
deb http://ftp.isu.edu.tw/pub/Linux/Ubuntu/ubuntu oneiric main universe multiverse restricted
deb http://ftp.isu.edu.tw/pub/Linux/Ubuntu/ubuntu oneiric-backports main universe multiverse restricted
deb http://ftp.isu.edu.tw/pub/Linux/Ubuntu/ubuntu oneiric-proposed main universe multiverse restricted
deb http://ftp.isu.edu.tw/pub/Linux/Ubuntu/ubuntu oneiric-security main restricted universe multiverse

deb-src http://ftp.isu.edu.tw/pub/Linux/Ubuntu/ubuntu oneiric-updates main restricted universe multiverse
deb-src http://ftp.isu.edu.tw/pub/Linux/Ubuntu/ubuntu oneiric main universe multiverse restricted
deb-src http://ftp.isu.edu.tw/pub/Linux/Ubuntu/ubuntu oneiric-backports main universe multiverse restricted
deb-src http://ftp.isu.edu.tw/pub/Linux/Ubuntu/ubuntu oneiric-proposed main universe multiverse restricted
deb-src http://ftp.isu.edu.tw/pub/Linux/Ubuntu/ubuntu oneiric-security main restricted universe multiverse

/etc/resolv.conf
nameserver 10.243.16.11
nameserver 10.243.17.11

kgdb

--0313-- ken 不好意思 请教一下 之前你有交过我 在没有coredump的情况下 可以用gdb直接载入ko.debug, 然后dis -l register_bcache, 我记得使用方式是不是这样, 不过我现在dis -l出现错误^^" [root@...