2011年11月24日木曜日

仮想環境構築手順(クライアント編)

1.データストアブラウザで仮想環境をコピーすると,コピー時にMACアドレスが自動的に変更され,結果的にOSが別NICが追加され,既存NICが削除されたと判断するようです.
そこで起動時にNICの確認を行っているスクリプト中の老番のethを有効にするため,若番のethはコメントアウトする.
/etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x1022:0x2000 (pcnet32) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:1f:ce:60", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:00:00:02", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x1022:0x2000 (pcnet32) (custom name provided by external tool)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:1f:ce:60", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:00:00:02", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

2.クライアントのIPアドレスをstaticに変更する

/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
IPADDR=10.2.5.***
NETMASK=255.0.0.0
GATEWAY=10.1.0.1

IPアドレス割り当て
IPアドレス利用者名
10.2.5.2佐藤
10.2.5.101相木
10.2.5.102井上
10.2.5.103小川
10.2.5.104川村
10.2.5.105小暮
10.2.5.106関野
10.2.5.107高橋
10.2.5.108武山
10.2.5.109橋本
10.2.5.110浅野
10.2.5.111平嶋
10.2.5.112佐々木
10.2.5.113塩津
10.2.5.114熊谷
10.2.5.115内谷
10.2.5.116大嶋
10.2.5.117澁谷
10.2.5.118
10.2.5.119長島
10.2.5.120溝部
10.2.5.121山口
10.2.5.122山崎
10.2.5.123吉田
10.2.5.124予備1
10.2.5.125予備2
10.2.5.100共有サーバ(物理サーバ)



※初期状態でSSH可能です.
※httpd,mysql-server,PHPは別途インストールする必要があります.

0 件のコメント: