仮想マシンのパッケージング
1.rhel-server-6.5-x 86_を使用64-dvd.iso仮想マシンvmbase(名前は任意)をインストールします.vmbaseでは、1.cd/etc/udev/ruls.d ls rm -fr 70-*2.cd/etc/sysconfig/network-scripts vim ifcfg-eth0DEVICE=eth0TYPE=EthernetONBOOT=yesBOOTPROTO=staticIPADDR=172.25.45.1 (本人本体のipによる)PREFIX=24 /etc/init.d/network start3.cd/etc/yum.repos.d vim rhel-source.reponame=Red Hat Enterprise Linux $releasever - $basearch - Sourcebaseurl=http://172.25.45.250/rhel6.5 enabled=1 (このソースを有効にするかどうか、1は有効、0は禁止)gpgcheck=1 (yumに各ダウンロードRPMのGnuPG署名をチェックさせます.)gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release (自機GPGKEYの格納先) yum repolist4.yum install openssh-clients lftp vim httpd-y(いくつかの一般的なソフトウェアをインストール)5.vim/etc/sysconfig/networkHOSTNAME=server 1.example.com (ホスト名を永続的に変更)6.chkconfig iptables off/ /etc/init.d/network stop (chkconfigは主にシステムサービスの実行レベル情報を更新(または起動または停止)し、クエリーするために使用されます.これは、直ちにサービスを自動的に禁止またはアクティブにするのではなく、シンボル接続を簡単に変更するだけです.)7.cd/etc/ssh rm -fr ssh_host_* (削除したkeyは/etc/init.d/sshd restartで再入手可能)
8.vim/etc/sysconfig/selinux
9.vim/etc/hosts
ドメイン名の解析
本体での操作:1.ip addr show br 0 mount rhel-server-6.5-x86_64-dvd.iso/var/www/html/rhel6.5 cd/var/www/html/rhle6.5 ls systemctl start httpd 2.cd/var/lib/libvirt/p_w_picpaths ls (仮想マシンの*.imgファイルが表示されます) qemu-img create -f qcow2 -b vmbase.img server1
(qcow 2形式のディスクを作成します)(qcow 2ミラー形式はQEMUシミュレータがサポートするディスクミラーです)
8.vim/etc/sysconfig/selinux
SELINUX=disabled
9.vim/etc/hosts
ドメイン名の解析
本体での操作:1.ip addr show br 0 mount rhel-server-6.5-x86_64-dvd.iso/var/www/html/rhel6.5 cd/var/www/html/rhle6.5 ls systemctl start httpd 2.cd/var/lib/libvirt/p_w_picpaths ls (仮想マシンの*.imgファイルが表示されます) qemu-img create -f qcow2 -b vmbase.img server1
(qcow 2形式のディスクを作成します)(qcow 2ミラー形式はQEMUシミュレータがサポートするディスクミラーです)