[Lxc-users] [patch -lxc] configure container architecture

Daniel Lezcano daniel.lezcano at free.fr
Mon Sep 13 13:41:43 UTC 2010


On 09/13/2010 01:23 PM, Ralf Schmitt wrote:
> <daniel.lezcano at free.fr>  writes:
>
>> From: Daniel Lezcano<daniel.lezcano at free.fr>
>>
>> When a container is installed with 32bits binaries while we are
>> running on a 64bits host, inside the container we are seen as
>> 64bits arch. That leads to some problems for the package updates
>> because the scripts will download 64bits packages instead of 32bits.
>>
>> This patch defines a configuration variable to set the architecture
>> of the container.
>>
>> lxc.arch = i686 | x86 | x86_64 | amd64
>>
>
> Thanks. It mostly works. Setting the arch from x86 to x86 doesn't work
> though:
>
> ,----
> | [local]  ~/ # linux32 lxc-start -n g32
> | lxc-start: Device or resource busy - failed to set personality to '0x8
> | lxc-start: failed to setup personality
> | lxc-start: failed to setup the container
> | lxc-start: invalid sequence number 1. expected 2
> | lxc-start: failed to spawn 'g32'
> | lxc-start: Device or resource busy - failed to remove cgroup '/cgroup/g32'
> `----
>
> Without the linux32 in front, the container does start and changes it
> personality successfully.

Fixed and commited.

   -- Daniel




More information about the lxc-users mailing list