User Tools

Site Tools


docs:vserver

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
docs:vserver [2013-12-06 16:30]
glen [cgroups with libcgroup]
docs:vserver [2014-02-20 15:42]
glen [Running 32 bit vserver on an 64 bit host]
Line 579: Line 579:
  
 ==== Running 32 bit vserver on an 64 bit host ==== ==== Running 32 bit vserver on an 64 bit host ====
-With recent PLD util-vserver package you can create 32-bit guest systems inside a 64-bit host. First you need to prepare a new distribution definition skeleton: ​ 
  
 +With recent [[package>​util-vserver]] package you can create 32-bit guest systems inside a 64-bit host.
  
 +To specify arch during guest creation, use ''​-d''​ option, and to change what ''​uname''​ returns, use arguments ''​--personality linux_32bit --machine i686'':​
  
-<​file># ​mkdir -p /​etc/​vservers/​.distributions/​pld-th-i686/​poldek/​repos.d+<​file># ​vserver test build --context <num> -n test -m poldek -- -d pld-th-i686 ​--personality linux_32bit --machine i686
 </​file>​ </​file>​
-Then copy your repository configuration to ''/​etc/​vservers/​.distributions/​pld-th-i686/​poldek/​repos.d/​pld.conf''​ and change the architecture and source paths to your liking. When configuration is ready, create a new guest vserver using the ''​-d''​ command line option: ​ 
  
- +If you need to set ''​uts''​ parameters afterwards, you can just echo them: 
- +<​file>​ 
-<​file># ​vserver test build --context <num-n test -m poldek -- -d pld-th-i686+echo linux_32bit ​>> /​etc/​vservers/​test/​personality 
 +# echo i686 > /​etc/​vservers/​test/​uts/​machine
 </​file>​ </​file>​
-Later to force i686 32bit use:  
  
- 
- 
-<​file>#​ echo linux_32bit >> /​etc/​vservers/​test/​personality 
-# echo i686 > /​etc/​vservers/​test/​uts/​machine 
-</​file>​ 
-however, you can do that at vserver build time using arguments ''​--personality linux_32bit --machine i686''​. ​ 
  
  
docs/vserver.txt · Last modified: 2015-10-05 15:07 by glen