Open main menu

OpenVZ Virtuozzo Containers Wiki β

Debian sarge

Revision as of 05:02, 25 March 2010 by Kir (talk | contribs) (add some warnings)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Yellowpin.svg Note: this article is not formatted according to this Wiki standards. Please help reformatting it in a better way.
  • on proxmox-ve we need to run some Debian Sarge containers. we are using Proxmox Virtual Environment 1.5 . there are not any Sarge templates that I could find, so using info from http://wiki.openvz.org/Debian_template_creation I did this.
  • note at the end I had to copy an existing .conf file to make this work. so the following needs improvement. I'll try to solve the issues and then edit this page. in the mean time if you need Sarge then this may be of some use.
aptitude  install debootstrap
  • I used '599' as the container number. of course you'd want to pick an unused number.
debootstrap --arch i386  sarge /var/lib/vz/private/599  http://archive.debian.org/debian
> /etc/vz/conf/599.conf
vzctl set 599 --applyconfig pve.auto --save
 Saved parameters for CT 599


echo "OSTEMPLATE=debian-3.1" >> /etc/vz/conf/599.conf
vzctl set 599 --ipadd 10.100.100.144 --save
vzctl set 599 --nameserver 10.100.100.2 --save
vzctl start 599

Starting container ...
Initializing quota ...
Container is mounted
Adding IP address(es): 10.100.100.144
Setting CPU units: 250
Configure meminfo: 7680
File resolv.conf was modified
Container start in progress...
vzctl enter 599
  • note. the container started and I could enter and work with it cron cli. however the vm was mis-configured from proxmox's web control pages' point of view. so i think this line needs a defferent template:
vzctl set 599 --applyconfig pve.auto --save

to solve the issue I copied a working Debian Etch conf file from /etc/vz/conf to 599 and made a few changes..

I'll look around to try to find a conf template to use ..

  • this is my final working conf file. it works ok from teh web control page.
Warning.svg Warning: The above UBC values might not be consistent; see UBC consistency check.
# PVE default config for 256MB RAM                                                         
ONBOOT="yes"

# Primary parameters
NUMPROC="1024:1024" 
NUMTCPSOCK="9223372036854775807:9223372036854775807"
NUMOTHERSOCK="9223372036854775807:9223372036854775807"
VMGUARPAGES="131072:9223372036854775807"              

# Secondary parameters
KMEMSIZE="9223372036854775807:9223372036854775807"
OOMGUARPAGES="131072:9223372036854775807"         
PRIVVMPAGES="131072:143572"                       
TCPSNDBUF="9223372036854775807:9223372036854775807"
TCPRCVBUF="9223372036854775807:9223372036854775807"
OTHERSOCKBUF="9223372036854775807:9223372036854775807"
DGRAMRCVBUF="9223372036854775807:9223372036854775807" 

# Auxiliary parameters
NUMFILE="9223372036854775807:9223372036854775807"
NUMFLOCK="9223372036854775807:9223372036854775807"
NUMPTY="255:255"
NUMSIGINFO="1024:1024"
DCACHESIZE="9223372036854775807:9223372036854775807"
LOCKEDPAGES="65536:65536"
SHMPAGES="9223372036854775807:9223372036854775807"
NUMIPTENT="9223372036854775807:9223372036854775807"
PHYSPAGES="0:9223372036854775807"

# Disk quota parameters
DISKSPACE="2097152:2306867"
DISKINODES="400000:440000"
QUOTATIME="0"
QUOTAUGIDLIMIT="0"

# CPU fair sheduler parameter
CPUUNITS="1000"
CPUS="1"
VE_ROOT="/var/lib/vz/root/$VEID"
VE_PRIVATE="/var/lib/vz/private/$VEID"
OSTEMPLATE="debian-3.1"
ORIGIN_SAMPLE="pve.auto"
IP_ADDRESS="10.100.100.145"
HOSTNAME="fbc145.fantinibakery.com"
NAMESERVER="10.100.100.2"
SEARCHDOMAIN="fantinibakery.com"