Packer & VMware on Ubuntu

Environment

  • VMware

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    
    # vmware-installer -l
    Product Name         Product Version
    ==================== ====================
    vmware-workstation   14.1.2.8497320
    
    # vmware-installer -t
    Component Name                 Component Long Name                      Component Version
    ============================== ======================================== ====================
    vmware-installer               VMware Installer                                  2.1.0.7305623
    vmware-player-setup            VMware Player Setup                               14.1.2.8497320
    vmware-vmx                     VMware VMX                                        14.1.2.8497320
    vmware-network-editor          VMware Network Editor                             14.1.2.8497320
    vmware-network-editor-ui       VMware Network Editor User Interface              14.1.2.8497320
    vmware-tools-netware           VMware Tools for NetWare                          10.2.5.8497320
    vmware-tools-linuxPreGlibc25   VMware Tools for legacy Linux                     10.2.5.8497320
    vmware-tools-winPreVista       VMware Tools for Windows 2000, XP and Server 2003 10.2.5.8497320
    vmware-tools-winPre2k          VMware Tools for Windows 95, 98, Me and NT        10.2.5.8497320
    vmware-tools-freebsd           VMware Tools for FreeBSD                          10.2.5.8497320
    vmware-tools-windows           VMware Tools for Windows Vista or later           10.2.5.8497320
    vmware-tools-solaris           VMware Tools for Solaris                          10.2.5.8497320
    vmware-tools-linux             VMware Tools for Linux                            10.2.5.8497320
    vmware-player-app              VMware Player Application                         14.1.2.8497320
    vmware-workstation-server      VMware Workstation Server                         14.1.2.8497320
    vmware-ovftool                 VMware OVF Tool component for Linux               4.3.0.7948156
    vmware-vprobe                  VMware VProbes component for Linux                14.1.2.8497320
    vmware-workstation             VMware Workstation                                14.1.2.8497320
    
  • /etc/ld.so.conf.d/vmware.conf

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    
    /usr/lib/vmware/lib/libXft.so.2
    /usr/lib/vmware/lib/libXcomposite.so.1
    /usr/lib/vmware/lib/libXfixes.so.3
    /usr/lib/vmware/lib/libXext.so.6
    /usr/lib/vmware/lib/libXdamage.so.1
    /usr/lib/vmware/lib/libXdmcp.so.6
    /usr/lib/vmware/lib/libXcursor.so.1
    /usr/lib/vmware/lib/libXtst.so.6
    /usr/lib/vmware/lib/libXrender.so.1
    /usr/lib/vmware/lib/libXi.so.6
    /usr/lib/vmware/lib/libXau.so.6
    /usr/lib/vmware/lib/libX11.so.6
    /usr/lib/vmware/lib/libXinerama.so.1
    /usr/lib/vmware/lib/libXrandr.so.2
    

Sharing

  • Run packer on u1604-n105-gitlab

    1
    
    PACKER_LOG=1 PACKER_LOG_PATH=log.txt PACKER_KEY_INTERVAL=10ms packer build build-from-iso.js
    
  • Run terraform on local

    1
    
    terraform apply
    
  • Run ansible on local

    1
    2
    
    workon vsphere
    ansible -i vmware.py -m raw -a whoami terraform-test-* -u shihta -k
    
comments powered by Disqus