[root@c72x642 vmx]# ./vmx.sh -lvf --install --cfg config/vmx02.conf ================================================== Welcome to VMX ================================================== Date..............................................04/27/18 19:28:23 VMX Identifier....................................vmx02 Config file......................................./var/lib/libvirt/images/vmx/config/vmx02.conf Build Directory.................................../var/lib/libvirt/images/vmx/build/vmx02 Assuming kvm hypervisor........................... Virtualization type...............................kvm Junos Device type.................................virtio Environment file................................../var/lib/libvirt/images/vmx/env/centos_virtio.env Junos Device Type.................................virtio Initialize scripts................................ [Command] . /var/lib/libvirt/images/vmx/scripts/kvm/common/vmx_kvm_bringup.sh [Command] . /var/lib/libvirt/images/vmx/scripts/kvm/common/vmx_kvm_cleanup.sh [Command] . /var/lib/libvirt/images/vmx/scripts/kvm/common/vmx_kvm_system_setup.sh [Command] . /var/lib/libvirt/images/vmx/scripts/kvm/common/vmx_kvm_verify.sh [Command] ls -l /var/lib/libvirt/images/vmx/scripts/kvm/virtio/vmx_kvm_virtio.sh -rwxr-xr-x 1 930 930 1336 May 23 2017 /var/lib/libvirt/images/vmx/scripts/kvm/virtio/vmx_kvm_virtio.sh [Command] . /var/lib/libvirt/images/vmx/scripts/kvm/virtio/vmx_kvm_virtio.sh [OK] [Command] ls -l /var/lib/libvirt/images/vmx/build/vmx02/images/vmxhdd.img ls: cannot access /var/lib/libvirt/images/vmx/build/vmx02/images/vmxhdd.img: No such file or directory [Command] cp /var/lib/libvirt/images/vmx/images/vmxhdd.img /var/lib/libvirt/images/vmx/build/vmx02/images/vmxhdd.img [Command] chmod 600 /var/lib/libvirt/images/vmx/build/vmx02/images/vmxhdd.img [OK] [Command] ls -l /var/lib/libvirt/images/vmx/build/vmx02/images/junos-vmx-x86-64-17.2R1.13.qcow2 ls: cannot access /var/lib/libvirt/images/vmx/build/vmx02/images/junos-vmx-x86-64-17.2R1.13.qcow2: No such file or directory [Command] cp /var/lib/libvirt/images/vmx/images/junos-vmx-x86-64-17.2R1.13.qcow2 /var/lib/libvirt/images/vmx/build/vmx02/images/junos-vmx-x86-64-17.2R1.13.qcow2 [Command] chmod 600 /var/lib/libvirt/images/vmx/build/vmx02/images/junos-vmx-x86-64-17.2R1.13.qcow2 [OK] [Command] ls -l /var/lib/libvirt/images/vmx/build/vmx02/images\/vFPC-20170523.img ls: cannot access /var/lib/libvirt/images/vmx/build/vmx02/images/vFPC-20170523.img: No such file or directory [Command] cp /var/lib/libvirt/images/vmx/images/vFPC-20170523.img /var/lib/libvirt/images/vmx/build/vmx02/images\/vFPC-20170523.img [Command] chmod 600 /var/lib/libvirt/images/vmx/build/vmx02/images\/vFPC-20170523.img ================================================== VMX Environment Setup Completed ================================================== ================================================== VMX Install & Start ================================================== Linux distribution................................centos Check GRUB........................................[Disabled] Installation status of qemu-kvm................... [Command] yum list installed qemu-kvm 2>>/dev/stdout | grep qemu-kvm qemu-kvm.x86_64 10:1.5.3-105.el7 @anaconda [OK] Installation status of libvirt-client............. [Command] yum list installed libvirt-client 2>>/dev/stdout | grep libvirt-client libvirt-client.x86_64 3.2.0-14.el7_4.9 @updates [OK] Installation status of bridge-utils............... [Command] yum list installed bridge-utils 2>>/dev/stdout | grep bridge-utils bridge-utils.x86_64 1.5-9.el7 @anaconda [OK] Installation status of python..................... [Command] yum list installed python 2>>/dev/stdout | grep python python.x86_64 2.7.5-34.el7 @anaconda [OK] Installation status of libyaml-devel.............. [Command] yum list installed libyaml-devel 2>>/dev/stdout | grep libyaml-devel libyaml-devel.x86_64 0.1.4-11.el7_0 @base [OK] Installation status of numactl.................... [Command] yum list installed numactl 2>>/dev/stdout | grep numactl numactl.x86_64 2.0.9-6.el7_2 @base [OK] Installation status of numactl-devel.............. [Command] yum list installed numactl-devel 2>>/dev/stdout | grep numactl-devel numactl-devel.x86_64 2.0.9-6.el7_2 @base [OK] Installation status of parted-devel............... [Command] yum list installed parted-devel 2>>/dev/stdout | grep parted-devel parted-devel.x86_64 3.1-28.el7 @base [OK] Installation status of libpciaccess-devel......... [Command] yum list installed libpciaccess-devel 2>>/dev/stdout | grep libpciaccess-devel libpciaccess-devel.x86_64 0.13.4-3.1.el7_4 @updates [OK] Installation status of yajl-devel................. [Command] yum list installed yajl-devel 2>>/dev/stdout | grep yajl-devel yajl-devel.x86_64 2.0.4-4.el7 @base [OK] Installation status of libxml2-devel.............. [Command] yum list installed libxml2-devel 2>>/dev/stdout | grep libxml2-devel libxml2-devel.x86_64 2.9.1-6.el7_2.3 @base [OK] Installation status of glib2-devel................ [Command] yum list installed glib2-devel 2>>/dev/stdout | grep glib2-devel glib2-devel.x86_64 2.50.3-3.el7 @base [OK] Installation status of libnl-devel................ [Command] yum list installed libnl-devel 2>>/dev/stdout | grep libnl-devel libnl-devel.x86_64 1.1.4-3.el7 @base [OK] Check Kernel Version..............................[Disabled] Check Qemu Version................................[Disabled] Check libvirt Version.............................[Disabled] Check virsh connectivity.......................... [Command] virsh -c qemu:///system version Compiled against library: libvirt 3.2.0 Using library: libvirt 3.2.0 Using API: QEMU 3.2.0 Running hypervisor: QEMU 1.5.3 [OK] IXGBE Enabled..................................... [Command] expr "virtio" == "virtio" 1 [Disabled] I40E Enabled...................................... [Command] expr "virtio" == "virtio" 1 [Disabled] ================================================== Pre-Install Checks Completed ================================================== Check RE state.................................... [Command] virsh list | grep "running" | grep "vcp-vmx02" [Not Running] [Command] virsh undefine vcp-vmx02 error: failed to get domain 'vcp-vmx02' error: Domain not found: no domain with matching name 'vcp-vmx02' [OK] Check for VM vfp-vmx02............................ [Command] virsh list | grep "running" | grep "vfp-vmx02" [Not Running] [Command] virsh undefine vfp-vmx02 error: failed to get domain 'vfp-vmx02' error: Domain not found: no domain with matching name 'vfp-vmx02' [OK] Check if bridge br-ext exists..................... [Command] brctl show | grep br-ext br-ext 8000.5254009fa077 yes br-ext-nic [Yes] Get Configured Management Interface...............eno1 Find existing management gateway..................br-ext Mgmt interface needs reconfiguration..............[No] Cleanup VM bridge br-ext.......................... [Command] virsh net-list --all | grep br-ext | grep inactive [OK] Cleanup VM bridge br-int-vmx02.................... [Command] virsh net-list | grep br-int-vmx02 [Command] virsh net-undefine br-int-vmx02 error: failed to get network 'br-int-vmx02' error: Network not found: no network with matching name 'br-int-vmx02' [OK] Cleanup VM bridge br-fab-vmx02.................... [Command] virsh net-list | grep br-fab-vmx02 [Command] virsh net-undefine br-fab-vmx02 error: failed to get network 'br-fab-vmx02' error: Network not found: no network with matching name 'br-fab-vmx02' [OK] ================================================== VMX Stop Completed ================================================== Check VCP image................................... [Command] ls "/var/lib/libvirt/images/vmx/images/junos-vmx-x86-64-17.2R1.13.qcow2" /var/lib/libvirt/images/vmx/images/junos-vmx-x86-64-17.2R1.13.qcow2 [OK] Check VFP image................................... [Command] ls "/var/lib/libvirt/images/vmx/images/vFPC-20170523.img" /var/lib/libvirt/images/vmx/images/vFPC-20170523.img [OK] Check VCP Config image............................ [Command] ls "/var/lib/libvirt/images/vmx/images/vmxhdd.img" /var/lib/libvirt/images/vmx/images/vmxhdd.img [OK] Check management interface........................ [Command] ifconfig eno1 eno1: flags=4163 mtu 1500 inet6 fe80::ae16:2dff:febb:9ec0 prefixlen 64 scopeid 0x20 ether ac:16:2d:bb:9e:c0 txqueuelen 1000 (Ethernet) RX packets 212 bytes 17461 (17.0 KiB) RX errors 0 dropped 5 overruns 0 frame 0 TX packets 529 bytes 60292 (58.8 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device memory 0xf7a00000-f7afffff [OK] Setup huge pages to 16384.........................[Already configured] [Command] mount | grep "HugePage_vPFE" hugetlbfs on /HugePage_vPFE type hugetlbfs (rw,relatime) [OK] [Command] cat /etc/apparmor.d/abstractions/libvirt-qemu | grep HugePage_vPFE cat: /etc/apparmor.d/abstractions/libvirt-qemu: No such file or directory [Command] echo "owner \"/HugePage_vPFE/libvirt/qemu/**\" rw," >> /etc/apparmor.d/abstractions/libvirt-qemu scripts/common/vmx_common_utils.sh: line 258: /etc/apparmor.d/abstractions/libvirt-qemu: No such file or directory Attempt to kill libvirtd.......................... [Command] killall libvirtd [OK] Attempt to start libvirtd......................... [Command] service libvirtd restart [OK] Sleep 2 secs...................................... [Command] sleep 2 [OK] Check libvirt support for hugepages............... [Command] ls /HugePage_vPFE/libvirt qemu [OK] ================================================== System Setup Completed ================================================== [Command] brctl show br-ext | grep eno1 eno1 Generate libvirt files............................ [Command] python /var/lib/libvirt/images/vmx/scripts/common/vmx_configure.py /var/lib/libvirt/images/vmx/config/vmx02.conf True False pinning is not configured for virtio [OK] Sleep 2 secs...................................... [Command] sleep 2 [OK] Find configured management interface..............eno1 Find existing management gateway..................br-ext Check if eno1 is already enslaved to br-ext....... [Command] brctl show br-ext | grep eno1 eno1 [Yes] [Command] sh /var/lib/libvirt/images/vmx/build/vmx02/xml/br-ext-addhost.sh Updated network br-ext persistent config and live state Updated network br-ext persistent config and live state Create br-int-vmx02............................... [Command] virsh net-define /var/lib/libvirt/images/vmx/build/vmx02/xml/br-int-generated.xml Network br-int-vmx02 defined from /var/lib/libvirt/images/vmx/build/vmx02/xml/br-int-generated.xml [OK] Start br-int-vmx02................................ [Command] virsh net-start br-int-vmx02 Network br-int-vmx02 started [OK] [Command] virsh net-list | grep default default active yes yes [OK] Define vcp-vmx02.................................. [Command] virsh define /var/lib/libvirt/images/vmx/build/vmx02/xml/vRE-generated.xml Domain vcp-vmx02 defined from /var/lib/libvirt/images/vmx/build/vmx02/xml/vRE-generated.xml [OK] Start vcp-vmx02................................... [Command] virsh start vcp-vmx02 Domain vcp-vmx02 started [OK] Define vfp-vmx02.................................. [Command] virsh define /var/lib/libvirt/images/vmx/build/vmx02/xml/vPFE-generated.xml Domain vfp-vmx02 defined from /var/lib/libvirt/images/vmx/build/vmx02/xml/vPFE-generated.xml [OK] Wait 2 secs....................................... [Command] sleep 2 [OK] Start vfp-vmx02................................... [Command] virsh start vfp-vmx02 Domain vfp-vmx02 started [OK] Wait 2 secs....................................... [Command] sleep 2 [OK] ================================================== VMX Bringup Completed ================================================== Check if br-ext is created........................ [Command] brctl show | grep br-ext br-ext 8000.5254009fa077 yes br-ext-nic [Created] Check if br-int-vmx02 is created.................. [Command] brctl show | grep br-int-vmx02 br-int-vmx02 8000.5254005ba81d yes br-int-vx02-nic [Created] Check if VM vcp-vmx02 is running.................. [Command] virsh list | grep running | grep vcp-vmx02 3 vcp-vmx02 running [Running] Check if VM vfp-vmx02 is running.................. [Command] virsh list | grep running | grep vfp-vmx02 4 vfp-vmx02 running [Running] Check if tap interface vcp-ext-vmx02 exists....... [Command] ifconfig vcp-ext-vmx02 vcp-ext-vmx02: flags=4163 mtu 1500 inet6 fe80::fc00:ddff:fec0:de01 prefixlen 64 scopeid 0x20 ether fe:00:dd:c0:de:01 txqueuelen 500 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [OK] Check if tap interface vcp-int-vmx02 exists....... [Command] ifconfig vcp-int-vmx02 vcp-int-vmx02: flags=4163 mtu 1500 inet6 fe80::fc54:ff:fe6f:690 prefixlen 64 scopeid 0x20 ether fe:54:00:6f:06:90 txqueuelen 500 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [OK] Check if tap interface vfp-ext-vmx02 exists....... [Command] ifconfig vfp-ext-vmx02 vfp-ext-vmx02: flags=4163 mtu 1500 inet6 fe80::fc00:ddff:fec0:de11 prefixlen 64 scopeid 0x20 ether fe:00:dd:c0:de:11 txqueuelen 500 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [OK] Check if tap interface vfp-int-vmx02 exists....... [Command] ifconfig vfp-int-vmx02 vfp-int-vmx02: flags=4163 mtu 1500 inet6 fe80::fc54:ff:feb0:6cb prefixlen 64 scopeid 0x20 ether fe:54:00:b0:06:cb txqueuelen 500 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [OK] ================================================== VMX Status Verification Completed. ================================================== Log file.......................................... /var/lib/libvirt/images/vmx/build/vmx02/logs/vmx_1524824903.log ================================================== Thank you for using VMX ================================================== [root@c72x642 vmx]#