###前提・実現したいこと
Centos7上にkvmホスト機を作成しました。ブリッジを作成してcentos7,centos6のゲスト機を作成しました。各々双方向にping可能。外部との接続可能な状況です。しかしnetworkサービスを起動、再起動することができません。起動失敗後も通信可能な状態です。ネットワーク設定を反映させるためにサービスの再起動を行いたいです。ご協力をお願い致します。
###発生している問題・エラーメッセージ
centos7のゲスト機はNetworkManagerが起動しています。 systemctl stop NetworkManager systemctl disable NetworkManager ststemctl start network←失敗になります その後networkmanagerを起動するとether0がnot readyというエラーがでますが接続状況を確認するとeth0は接続済みとなっています。 systemctl start NetworkManager [root@localhost ~]# [ 48.684148] IPVS: Creating netns size=2040 id=1 [ 48.708226] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [root@localhost ~]# nmcli connection NAME UUID TYPE DEVICE Wired connection 1 5a9cd88e-a9de-388e-a883-ca2af3f7b27f 802-3-ethernet eth0 eth0 6f06591f-e60f-4345-a253-9ff7e15dd088 802-3-ethernet -- nmcli device DEVICE TYPE STATE CONNECTION eth0 ethernet connected Wired connection 1 lo loopback unmanaged -- centos6のゲスト機は service netowrk start←失敗になります。以下エラー文です service network start ループバックインターフェイスを呼び込み中 [ OK ] インターフェース eth0 を活性化中: eth0 のIP情報を検出中...dhclient(1090) is already running - exiting. This version of ISC DHCP is based on the release available on ftp.isc.org. Features have been added and other changes have been made to the base software release in order to make it work better with this distribution. Please report for this software via the CentOS Bugs Database: http://bugs.centos.org/ exiting. 失敗 [失敗] RTNETLINK answers: File exists RTNETLINK answers: File exists RTNETLINK answers: File exists RTNETLINK answers: File exists RTNETLINK answers: File exists RTNETLINK answers: File exists
###実施した作業
kvmホスト作成(centos7) yum -y install qemu-kvm libvirt virt-install bridge-utils systemctl start libvirtd systemctl enable libvirtd nmcli c add type bridge autoconnect yes con-name br0 ifname br0 nmcli c modify br0 ipv4.addresses 10.0.0.30/24 ipv4.method manual nmcli c modify br0 ipv4.gateway 10.0.0.1 nmcli c modify br0 ipv4.dns 10.0.0.1 nmcli c delete em1 nmcli c add type bridge-slave autoconnect yes con-name em1 ifname em1 master br0 reboot kvmゲスト作成 mkdir -p /var/kvm/images [root@dlp ~]# virt-install \ --name centos7 \ --ram 4096 \ --disk path=/var/kvm/images/centos7.img,size=30 \ --vcpus 2 \ --os-type linux \ --os-variant rhel7 \ --network bridge=br0 \ --graphics none \ --console pty,target_type=serial \ --location 'http://ftp.iij.ad.jp/pub/linux/centos/7/os/x86_64/' \ ↑作成したいゲストosによってパスは異なります。 --extra-args 'console=ttyS0,115200n8 serial 以上でKVMゲスト機を作成してssh接続が可能な状態です。
###補足情報(言語/FW/ツール等のバージョンなど)
KVMホスト
uname -a
Linux localhost.localdomain 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。