環境
vsphere7
cenos7
vsphereで立てたcentos7でブリッジを作成し、KVMを使ってVMを作ったのですが外部と接続できず孤立しています。
ホスト側の状態
[miki@main ~]$ nmcli dev br0 bridge 接続済み bridge-br0 virbr0 bridge 接続済み virbr0 ens192 ethernet 接続済み bridge-slave-ens192 vnet0 tun 接続済み vnet0
[miki@main ~]# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens192: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br0 state UP group default qlen 1000 link/ether 00:50:56:b2:dd:00 brd ff:ff:ff:ff:ff:ff 3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000 link/ether 52:54:00:56:33:17 brd ff:ff:ff:ff:ff:ff inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0 valid_lft forever preferred_lft forever 4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000 link/ether 52:54:00:56:33:17 brd ff:ff:ff:ff:ff:ff 8: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 00:50:56:b2:dd:00 brd ff:ff:ff:ff:ff:ff inet 192.168.1.187/24 brd 192.168.1.255 scope global noprefixroute br0 valid_lft forever preferred_lft forever inet6 240d:1a:1a:3100:6f4f:1848:1495:3789/64 scope global noprefixroute dynamic valid_lft 10706sec preferred_lft 10706sec inet6 fe80::210e:c554:e5cd:9aae/64 scope link noprefixroute valid_lft forever preferred_lft forever 12: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UNKNOWN group default qlen 1000 link/ether fe:54:00:73:77:e1 brd ff:ff:ff:ff:ff:ff inet6 fe80::fc54:ff:fe73:77e1/64 scope link valid_lft forever preferred_lft forever
KVMを立てる時使ったコマンドはこちです。
[miki@main ~]$ sudo virt-install --connect=qemu:///system \ --name=centos7-1 \ --vcpus=2 \ --ram=8000 \ --accelerate \ --hvm \ --disk path=/var/lib/libvirt/images/centos7-1.img,size=20,format=qcow2 \ --location='/home/ --network bridge=br0 \ CentOS-7-x86_64-Minimal-2009.iso' \ --nographics \ --extra-args='console=tty0 console=ttyS0,115200n8'
VM導入後の状態
[root@localhost ~]# nmcli dev DEVICE TYPE STATE CONNECTION ens3 ethernet connecting (getting IP configuration) ens3 lo loopback unmanaged
[root@localhost ~]# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 52:54:00:73:77:e1 brd ff:ff:ff:ff:ff:ff inet6 240d:1a:1a:3100:4cf:1ff7:3e79:3794/64 scope global noprefixroute dynamic valid_lft 10774sec preferred_lft 10774sec inet6 fe80::2e83:cfc5:c8f5:3bc6/64 scope link noprefixroute valid_lft forever preferred_lft forever
ipも付与されてませんし、もちろん通信できません。
色々見たのですが解決できませんでした。
この状態からどうすればホストと同じネットーワークに所属して外部とも通信出来るでしょうか?
あなたの回答
tips
プレビュー