Installation How to: Nested ESXi on KVM
Installation How to: Nested ESXi on KVM
目的
- ESXi のテストを仮想環境で
システム
- Ubuntu 14.04.3 LTS
- qemu-kvm 2.0.0
- libvirt 1.2.2
手順
1. 空き VNC ポート調べ
$ for i in `virsh -c qemu:///system list --all | awk '{print $2}' | grep -v Name` ; do virsh dumpxml $i|grep vnc ; done | sort
output_sample
<graphics type='vnc' port='5926' autoport='no' listen='0.0.0.0'>
<graphics type='vnc' port='5927' autoport='no' listen='0.0.0.0'>
<graphics type='vnc' port='5928' autoport='no' listen='0.0.0.0'>
2. VNC ポートアサイン
$ VNCPORT='5929'
3. VM 名の決定と Disk 作成
$ VMNAME='esxi6.5-test01'
qemu-img create -f qcow2 -o preallocation=metadata $VMNAME.qcow2 20G
4. メモリアサイン
$ RAM='4096'
5. iso ファイル名、OS タイプ指定
$ ISOFILE='/pathto/VMware-VMvisor-Installer-201701001-4887370.x86_64.iso'
$ OSTYPE='linux'
6. VM インストール
$ virt-install --connect qemu:///system \
-n $VMNAME -r $RAM \
--vcpus=sockets=1,cores=2,threads=2 \
--cpu host --disk path=./$VMNAME.qcow2 \
-c $ISOFILE --os-type $OSTYPE \
--accelerate --network=bridge:br0,model=e1000 \
--hvm --graphics vnc,port=$VNCPORT,listen=0.0.0.0
7. VNC クライアントで KVM ホストの $VNCPORT に接続
$ for i in `virsh -c qemu:///system list --all | awk '{print $2}' | grep -v Name` ; do virsh dumpxml $i|grep vnc ; done | sort
output_sample
<graphics type='vnc' port='5926' autoport='no' listen='0.0.0.0'>
<graphics type='vnc' port='5927' autoport='no' listen='0.0.0.0'>
<graphics type='vnc' port='5928' autoport='no' listen='0.0.0.0'>
$ VNCPORT='5929'
$ VMNAME='esxi6.5-test01'
qemu-img create -f qcow2 -o preallocation=metadata $VMNAME.qcow2 20G
$ RAM='4096'
$ ISOFILE='/pathto/VMware-VMvisor-Installer-201701001-4887370.x86_64.iso'
$ OSTYPE='linux'
$ virt-install --connect qemu:///system \
-n $VMNAME -r $RAM \
--vcpus=sockets=1,cores=2,threads=2 \
--cpu host --disk path=./$VMNAME.qcow2 \
-c $ISOFILE --os-type $OSTYPE \
--accelerate --network=bridge:br0,model=e1000 \
--hvm --graphics vnc,port=$VNCPORT,listen=0.0.0.0
8. あとは通常の ESXi 同様にインストーラを進めて下さい
9. おわり
Author And Source
この問題について(Installation How to: Nested ESXi on KVM), 我々は、より多くの情報をここで見つけました https://qiita.com/hirofumihida/items/3bc59a3094efa33ac79c著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .