vMX

last person joined: 10 days ago 

Ask questions and share experiences about vMX.
  • 1.  vMX Failed Generate libvirt files

    Posted 01-18-2016 00:10

    Hi everyone,

     

    Im trying to install vMX on my ubuntu 14.04.3 LTS but got the following error

     

    root@nugraha-HP-ProBook-4430s:/home/nugraha/Documents/vmx# sudo ./vmx.sh -lv --install
    ==================================================
        Welcome to VMX
    ==================================================
    Date..............................................01/18/16 14:49:56
    VMX Identifier....................................vmx1
    Config file......................................./home/nugraha/Documents/vmx/config/vmx.conf
    Build Directory.................................../home/nugraha/Documents/vmx/build/vmx1
    Environment file................................../home/nugraha/Documents/vmx/env/ubuntu_virtio.env
    Junos Device Type.................................virtio
    Initialize scripts................................[OK]
    Copy images to build directory....................[OK]
    ==================================================
        VMX Environment Setup Completed
    ==================================================
    ==================================================
        VMX Install & Start
    ==================================================
    Linux distribution................................ubuntu
    Check GRUB........................................[Disabled]
    Installation status of qemu-kvm...................[OK]
    Installation status of libvirt-bin................[OK]
    Installation status of bridge-utils...............[OK]
    Installation status of python.....................[OK]
    Installation status of libyaml-dev................[OK]
    Installation status of python-yaml................[OK]
    Installation status of numactl....................[OK]
    Installation status of libnuma-dev................[OK]
    Installation status of libparted0-dev.............[OK]
    Installation status of libpciaccess-dev...........[OK]
    Installation status of libyajl-dev................[OK]
    Installation status of libxml2-dev................[OK]
    Installation status of libglib2.0-dev.............[OK]
    Installation status of libnl-dev..................[OK]
    Check Kernel Version..............................[Disabled]
    Check Qemu Version................................[Disabled]
    Check libvirt Version.............................[Disabled]
    Check virsh connectivity..........................[OK]
    IXGBE Enabled.....................................[Disabled]
    ==================================================
        Pre-Install Checks Completed
    ==================================================
    Check for VM vcp-vmx1.............................[Not Running]
    Check for VM vfp-vmx1.............................[Not Running]
    Cleanup VM states.................................[OK]
    Check if bridge br-ext exists.....................[No]
    Cleanup VM bridge br-ext..........................[OK]
    Cleanup VM bridge br-int-vmx1.....................[OK]
    ==================================================
        VMX Stop Completed
    ==================================================
    Check VCP image...................................[OK]
    Check VFP image...................................[OK]
    VMX Model.........................................Performance
    Check CPU requirements............................[OK]
    Check VCP Config image............................[OK]
    Check management interface........................[OK]
    Setup huge pages to 8192..........................[OK]
    Attempt to kill libvirt...........................[OK]
    Attempt to start libvirt..........................[OK]
    Sleep 2 secs......................................[OK]
    Check libvirt support for hugepages...............[OK]
    ==================================================
        System Setup Completed
    ==================================================
    Get Management Address of eth0....................[OK]
    Generate libvirt files............................[Failed]
    Traceback (most recent call last):
      File "/home/nugraha/Documents/vmx/scripts/common/vmx_configure.py", line 9, in <module>
        import netifaces as ni
    ImportError: No module named netifaces
    Log file..........................................
        /home/nugraha/Documents/vmx/build/vmx1/logs/vmx_1453103396.log
    ==================================================
     Aborted!. 1 error(s) and 0 warning(s)
    ==================================================

     

     

     

    Looking forward for your help. Thanks before

     

    Regards,

     

    Nugraha Pratama



  • 2.  RE: vMX Failed Generate libvirt files

    Posted 01-18-2016 07:45

    The error messages suggests that python-netifaces was not installed.

    Also Ubuntu 14.04.1 is the only qualified host OS.

     

    https://www.juniper.net/techpubs/en_US/vmx15.1/topics/reference/general/vmx-hw-sw-minimums.html#sw-req.

     

     



  • 3.  RE: vMX Failed Generate libvirt files

    Posted 01-18-2016 22:24

    Hi thanks for your reply. Is there any workaround other than reinstall my ubuntu?



  • 4.  RE: vMX Failed Generate libvirt files

    Posted 01-19-2016 09:00

    I guess no.

     

    Here's the error I got while I trying to install pre-prequirement packages on Ubuntu 14.04.3:

     

    $ sudo apt-get install bridge-utils qemu-kvm libvirt-bin python python-netifaces vnc4server libyaml-dev python-yaml numactl libparted0-dev libpciaccess-dev libnuma-dev libyajl-dev libxml2-dev libglib2.0-dev libnl-dev python-pip python-dev libxml2-dev libxslt-dev -y
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Package libglib2.0-dev is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    However the following packages replace it:
      libglib2.0-0

    Package python-netifaces is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    Package libpciaccess-dev is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    Package libparted0-dev is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    Package python-dev is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    However the following packages replace it:
      python

    E: Package 'python-netifaces' has no installation candidate
    E: Unable to locate package numactl
    E: Package 'libparted0-dev' has no installation candidate
    E: Package 'libpciaccess-dev' has no installation candidate
    E: Unable to locate package libnuma-dev
    E: Unable to locate package libyajl-dev
    E: Package 'libglib2.0-dev' has no installation candidate
    E: Unable to locate package libnl-dev
    E: Unable to locate package python-pip
    E: Package 'python-dev' has no installation candidate
    E: Unable to locate package libxslt-dev



  • 5.  RE: vMX Failed Generate libvirt files
    Best Answer

    Posted 01-25-2016 20:14

    Thanks for your reply szhong,

     

    Thankfully installing python-netifaces is solved the issue. So I can use vMX under 14.04 Ubuntu version