====== 05 Xen Guestインストール ======
===== ①LVM用意 =====
# lvcreate testvg -L50G -n test-lvm
# mkfs.ext3 /dev/testvg/test-lvm
===== ②virt-installでインストール =====
# virt-install -n testvm -r 2048 --nographics \
--file=/dev/testvg/test-lvm --vcpus=2 --check-cpu \
-l http://192.168.1.2/mirror/centos/5.7/os/x86_64 \
--network=bridge:xenbr0 --network=bridge:xenbr1
===== Bridgeの追加 xenbr1の作り方 =====
HV上で作業
[[http://d.hatena.ne.jp/clmind/20090329/1238298875]]
==== 1.confの変更 ====
# vi /etc/xen/xend-config.sxp
#(network-script network-bridge)
(network-script network-bridge2)
==== 2.network-bridge2作成 ====
# vi /etc/xen/scripts/network-bridge2
#!/bin/sh
dir=$(dirname $0)
${dir}/network-bridge "$@" vifnum=0 bridge=xenbr0 netdev=bond0 antispoof=yes
${dir}/network-bridge "$@" vifnum=1 bridge=xenbr1 netdev=bond1 antispoof=yes
echo 0 >/proc/sys/net/ipv4/ip_forward
==== 3.network-bridge2作成へ実行権限追加 ====
# chmod 755 /etc/xen/scripts/network-bridge2
==== 4.xend restart ====
/etc/init.d/xend restart
ifconfig でxenbr1が追加された事を確認