Recipes: Difference between revisions
From Linix VServer
Jump to navigationJump to search
(Restored content from Wayback Machine) |
(No difference)
|
Latest revision as of 22:19, 10 November 2025
running the root server with chbind'ed ip address[edit]
create following under /sbin/vinit (add the ip's you want)
#!/bin/sh exec /sbin/chbind --ip 10.20.20.10/16 --bcast 10.20.255.255 -- /sbin/init $@
chmod +x /sbin/vinit
and then add init=/sbin/vinit to the kernel boot options (append= with Lilo)
Note: now the loopback interface on 127.0.0.1 is inaccessible from the root server. A workaround is to use the outside interfaces address in /etc/hosts instead 127.0.0.1 so:
10.20.20.10 localhost
instead
127.0.0.1 localhost
You might alter the firewall rules to allow traffic which orginates locally too.
configuring a 32 bit guest under x86_64[edit]
echo linux_32bit > /etc/vservers/$NAME/personality
echo i686 > /etc/vservers/$NAME/uts/machine