PVE 4.0 beta - Ubuntu 14.04 container not 64-bit

Discussion in 'Proxmox VE: Installation and configuration' started by mlanner, Jul 16, 2015.

  1. mlanner

    mlanner Member

    Joined:
    Apr 1, 2009
    Messages:
    184
    Likes Received:
    1
    Hi,

    I've installed PVE 4.0 beta and I ran 'pveam update' to get the latest LXC templates. I then proceeded to download the 'Ubuntu Trusty (standard) template, which downloaded just fine, showing up as 'ubuntu-14.04-standard_14.04-1_amd64.tar.gz'. However, when I launch an image based on this template, if I run 'uname -a' in the container, it shows up as i686, a 32-bit machine.

    While I do understand that it is many times desirable to run 32-bit machines in containers, for the application I'm containerizing, it needs a 64-bit OS. Is this simply a mis-labeling of the image or is it pointed to the wrong file? In either case, is there a 64-bit Ubuntu Trusty LXC container in the Proxmox repos that I can download?

    Thanks in advance!
     
  2. Thomas Lamprecht

    Thomas Lamprecht Proxmox Staff Member

    Joined:
    Jul 2, 2015
    Messages:
    40
    Likes Received:
    0
    #2 Thomas Lamprecht, Jul 16, 2015
    Last edited by a moderator: Jul 16, 2015
  3. mlanner

    mlanner Member

    Joined:
    Apr 1, 2009
    Messages:
    184
    Likes Received:
    1
    Thanks. I'll give that a try.
     
  4. mlanner

    mlanner Member

    Joined:
    Apr 1, 2009
    Messages:
    184
    Likes Received:
    1
    Well, it was worth a try. Unfortunately using 'setarch x86_64' doesn't work in my case, as the application I'm trying to install is specifically looking at 'uname -a'. I'll keep on digging and will report back here if I find a solution.
     
  5. Thomas Lamprecht

    Thomas Lamprecht Proxmox Staff Member

    Joined:
    Jul 2, 2015
    Messages:
    40
    Likes Received:
    0
    Use a bash script to relink uname, as a dirty workaround?

    backup your old uname from /bin/uname then save this as the new /bin/uname
    Code:
    #!/bin/bash
    
    setarch x86_64 uname "$@"
    
    should work for your purpose.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice