Open main menu

OpenVZ Virtuozzo Containers Wiki β

Editing Ubuntu Precise template creation

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 6: Line 6:
  
 
Common part:
 
Common part:
 +
 
  ARCH="i386"  
 
  ARCH="i386"  
 
  export COUNTRY="de"  
 
  export COUNTRY="de"  
  
 
For 12.04 (Precise Pangolin):
 
For 12.04 (Precise Pangolin):
 +
 
  export DIST="precise"  
 
  export DIST="precise"  
 
  export NAME="ubuntu1204"  
 
  export NAME="ubuntu1204"  
Line 15: Line 17:
  
 
For 14.04 (Trusty Tahr):
 
For 14.04 (Trusty Tahr):
 +
 
  export DIST="trusty"  
 
  export DIST="trusty"  
 
  export NAME="ubuntu1404"
 
  export NAME="ubuntu1404"
Line 128: Line 131:
 
  vzctl create $ID --ostemplate ubuntu-$TMPL --hostname … --name … --layout simfs
 
  vzctl create $ID --ostemplate ubuntu-$TMPL --hostname … --name … --layout simfs
 
  vzctl set $ID --save --onboot yes --nameserver 192.0.2.2 --ipadd 192.0.2.$ID
 
  vzctl set $ID --save --onboot yes --nameserver 192.0.2.2 --ipadd 192.0.2.$ID
 
== First steps after creation ==
 
 
Start and enter:
 
vzctl start $ID
 
vzctl enter $ID
 
 
Install updates:
 
apt-get update
 
apt-get -y dist-upgrade
 

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)