• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            八葉草

            學(xué)習(xí)資料記錄

            proxmox ve 2.2 elastix2.3模板制作

            安裝好proxmox ve 2.2
            ssh 到 proxmox ve

            apt-get -y update
            apt-get -y makedev
            apt-get -y install build-essential make pve-headers-`uname -r`
            cd /usr/src/
            wget http://downloads.digium.com/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
            tar zxfv dahdi-linux-complete-current.tar.gz
            cd dahdi-linux-complete-*
            make all
            make install
            make config
            mkdir /etc/asterisk
            service dahdi start
            dahdi_genconf
            vi /etc/dahdi/modules 全部加#號(hào)注釋

            sed -i 's|ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length|ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp|' /etc/vz/vz.conf
            /etc/init.d/vz restart

            //禁用ipv6
            /boot/grub/grub.cfg 中 linux   /vmlinuz-2.6.32-16-pve root=/dev/mapper/pve-root ro  quiet 替換成 linux   /vmlinuz-2.6.32-16-pve root=/dev/mapper/pve-root ro  ipv6.disable=1 quiet


            在elastix2.3機(jī)器上 參考 http://wiki.openvz.org/Creating_a_CentOS_5.0_Template

            First, create a file called /tmp/exclude and add the following lines to it:

            .bash_history

            lost+found

            /dev/*

            /mnt/*

            /tmp/*

            /proc/*

            /sys/*

            /usr/src/*

             tar --numeric-owner -czvf /tmp/centos-5.7-x86_64-elasitx_orig-image.tar.gz -X /tmp/exclude /

            1. where <ARCH> represents the system architecture (i386 or
            2. x86_64) and <DISTRO> represents the distribution (default, minimal, etc.).

            scp /tmp/centos-5.7-x86_64-elasitx_orig-image.tar.gz root@ip:/var/lib/vz/template/iso

            回到proxmox ve 機(jī)器 使用 web以centos-5.7-x86_64-elasitx_orig-image 為模板創(chuàng)建vt虛擬機(jī)  假設(shè) vm id 為 100
            ssh 到 proxmox ve
            cd /var/lib/vz/private/100
            Edit the etc/inittab file and comment out the lines that respawn /sbin/mingetty on tty1 through tty6. Just put a # at the beginning of the line.

            在 etc/inittab 文件最后面加入
            1:2345:respawn:/sbin/agetty tty1 38400 linux

            Remove the etc/mtab file and then create a symbolic link by typing ln -s /proc/mounts etc/mtab
            Remove all of the lines from etc/fstab except for the line that mounts /dev/pts
            Edit etc/rc.d/rc.sysinit and comment out the line that starts /sbin/start_udev by placing a # at the beginning of the line.

            mknod dev/ptmx c 5 2
            mkdir dev/pts

            cd dev
            /sbin/MAKEDEV ttyp ptyp
            cd ../

            mknod dev/null c 1 3

            mknod -m 644 dev/random c 1 8

            mknod dev/urandom c 1 9
            mknod dev/tty9 c 4 9

            Create the var/lock/rpm folder.

            Edit etc/sysconfig/network and set NETWORKING_IPV6 to no.
            Add the following lines to etc/modprobe.d/blacklist.conf:
            blacklist ipv6

            blacklist net-pf-10
             

            Disable any physical NICs by modifying the etc/sysconfig/network-scripts/ifcfg-ethX files (where X is the interface number starting from 0) and setting ONBOOT to no.

            Check etc/sysconfig/init to see if PROMPT=yes, and then change to no. Otherwise when startup init script rc will enter interactive mode and wait there forever

             

            vzctl set 100 --devnodes dahdi/pseudo:rw --save
            vzctl start 100
            vzctl enter 100
            chkconfig haldaemon off
            chkconfig dahdi off
            chkconfig wanrouter off

            rm -rf /etc/init.d/dahdi
            rm -rf /etc/init.d/wanrouter

            chkconfig acpid off
            chkconfig kudzu off

            chkconfig xfs off
            chkconfig rpcidmapd off
            chkconfig rpcgssd off
            chkconfig nfslock off
            chkconfig mdmonitor off
            chkconfig ip6tables off

            exit
            cd /var/lib/vz/private/100
            tar -czvf /var/lib/vz/template/cache/centos-5-x86_64-elasitx.tar.gz ./






             

            posted on 2012-11-06 16:59 八葉草 閱讀(1466) 評(píng)論(0)  編輯 收藏 引用 所屬分類: asterisk

            最新久久免费视频| 久久亚洲欧洲国产综合| 亚洲人成精品久久久久| 久久久久久久女国产乱让韩| 久久妇女高潮几次MBA| 久久婷婷五月综合97色| 国产精品亚洲美女久久久| 久久久久亚洲AV片无码下载蜜桃| 国产亚洲综合久久系列| 久久人人超碰精品CAOPOREN| 久久综合狠狠综合久久综合88| 精品久久人人爽天天玩人人妻| 亚洲精品无码专区久久久| 久久久久九九精品影院| 国产精品久久久久久福利漫画| 奇米影视7777久久精品人人爽| 国产午夜精品理论片久久影视| 久久久久久国产a免费观看黄色大片| 久久国产精品国产自线拍免费| 久久婷婷五月综合97色直播| 久久人人爽人人爽人人片AV麻豆| 久久精品国产亚洲AV麻豆网站| 中文字幕亚洲综合久久菠萝蜜| 国产精品免费看久久久香蕉| 精品国产乱码久久久久久郑州公司| 尹人香蕉久久99天天拍| 青青草原综合久久大伊人精品| 久久精品国产第一区二区三区| 亚洲精品高清国产一线久久| 亚洲国产天堂久久综合| 久久久国产精品| 国内精品久久久久久久久| 国产AV影片久久久久久| 久久香蕉一级毛片| 国产精品欧美亚洲韩国日本久久| 大伊人青草狠狠久久| 97久久精品人妻人人搡人人玩 | 97热久久免费频精品99| 久久夜色精品国产噜噜麻豆 | 婷婷久久综合九色综合98| 久久99热只有频精品8|