OpenVZ Forum


Home » General » Support » Can I run debian as vz with ubuntu host
Re: Can I run debian as vz with ubuntu host [message #35770 is a reply to message #35768] Tue, 21 April 2009 13:56 Go to previous messageGo to previous message
satimis is currently offline  satimis
Messages: 39
Registered: August 2008
Member
maratrus wrote on Tue, 21 April 2009 17:53

Hi,
Of course, you can run VE based on OS which differs from host OS.


Hi maratrus,


Advice noted and thanks


Quote:


Could you please show VEs configuration file and global configuration file (vz.conf)?



# ls -l /etc/vz/conf/
total 28
-rw-r--r-- 1 root root  228 2008-04-21 22:19 0.conf
-rw-r--r-- 1 root root 1743 2009-04-03 14:32 101.conf
-rw-r--r-- 1 root root 1744 2009-04-21 17:47 102.conf
-rw-r--r-- 1 root root 1743 2009-04-19 18:29 103.conf
-rw-r--r-- 1 root root 1743 2009-04-21 17:09 104.conf
-rw-r--r-- 1 root root 1539 2008-04-21 22:19 ve-light.conf-sample
-rw-r--r-- 1 root root 1515 2008-04-21 22:19 ve-vps.basic.conf-sample



# ls -l /etc/vz/
total 20
drwxr-xr-x 2 root root 4096 2009-04-21 17:50 conf
drwxr-xr-x 2 root root 4096 2008-09-24 18:54 cron
drwxr-xr-x 3 root root 4096 2008-09-24 18:54 dists
drwxr-xr-x 2 root root 4096 2008-04-21 22:19 names
-rw-r--r-- 1 root root  988 2008-04-21 22:19 vz.conf



# ls -l /etc/vz/dists/
total 236
-rw-r--r-- 1 root root 1055 2008-04-21 22:19 altlinux-2.4.conf
-rw-r--r-- 1 root root 1080 2008-04-21 22:19 altlinux-3.0.conf
-rw-r--r-- 1 root root 1080 2008-04-21 22:19 altlinux-4.0.conf
-rw-r--r-- 1 root root 1080 2008-04-21 22:19 altlinux.conf
-rw-r--r-- 1 root root 1026 2008-04-21 22:19 arch-0.7.conf
-rw-r--r-- 1 root root 1026 2008-04-21 22:19 arch-0.8.conf
-rw-r--r-- 1 root root 1026 2008-04-21 22:19 arch.conf
-rw-r--r-- 1 root root  963 2008-04-21 22:19 centos-3.conf
-rw-r--r-- 1 root root  963 2008-04-21 22:19 centos-4.conf
-rw-r--r-- 1 root root  963 2008-04-21 22:19 centos.conf
-rw-r--r-- 1 root root 1047 2008-04-21 22:19 debian-3.0.conf
-rw-r--r-- 1 root root 1047 2008-04-21 22:19 debian-3.1.conf
-rw-r--r-- 1 root root 1047 2008-04-21 22:19 debian-4.0.conf
-rw-r--r-- 1 root root 1047 2008-04-21 22:19 debian.conf
-rw-r--r-- 1 root root  962 2008-04-21 22:19 default
-rw-r--r-- 1 root root 4457 2008-04-21 22:19 distribution.conf-template
-rw-r--r-- 1 root root 1047 2008-04-21 22:19 fedora-7.conf
-rw-r--r-- 1 root root 1047 2008-04-21 22:19 fedora-8.conf
-rw-r--r-- 1 root root 1047 2008-04-21 22:19 fedora-core-1.conf
-rw-r--r-- 1 root root 1047 2008-04-21 22:19 fedora-core-2.conf
-rw-r--r-- 1 root root 1047 2008-04-21 22:19 fedora-core-3.conf
-rw-r--r-- 1 root root 1047 2008-04-21 22:19 fedora-core-4.conf
-rw-r--r-- 1 root root 1047 2008-04-21 22:19 fedora-core-5.conf
-rw-r--r-- 1 root root 1047 2008-04-21 22:19 fedora-core-6.conf
-rw-r--r-- 1 root root 1047 2008-04-21 22:19 fedora-core-7.conf
-rw-r--r-- 1 root root 1047 2008-04-21 22:19 fedora-core.conf
-rw-r--r-- 1 root root 1054 2008-04-21 22:19 gentoo.conf
-rw-r--r-- 1 root root 1049 2008-04-21 22:19 mandrake.conf
-rw-r--r-- 1 root root 1040 2008-04-21 22:19 opensuse.conf
-rw-r--r-- 1 root root 1055 2008-04-21 22:19 owl.conf
-rw-r--r-- 1 root root 1055 2008-04-21 22:19 redhat-7.0.conf
-rw-r--r-- 1 root root 1055 2008-04-21 22:19 redhat-7.1.conf
-rw-r--r-- 1 root root 1055 2008-04-21 22:19 redhat-7.2.conf
-rw-r--r-- 1 root root 1055 2008-04-21 22:19 redhat-7.3.conf
-rw-r--r-- 1 root root 1061 2008-04-21 22:19 redhat-8.0.conf
-rw-r--r-- 1 root root 1061 2008-04-21 22:19 redhat-9.conf
-rw-r--r-- 1 root root 1061 2008-04-21 22:19 redhat.conf
-rw-r--r-- 1 root root 1106 2008-04-21 22:19 rhel-3.conf
-rw-r--r-- 1 root root 1106 2008-04-21 22:19 rhel-4.conf
drwxr-xr-x 2 root root 4096 2008-09-24 18:54 scripts
-rw-r--r-- 1 root root 1074 2008-04-21 22:19 slackware-10.0.conf
-rw-r--r-- 1 root root 1074 2008-04-21 22:19 slackware-10.1.conf
-rw-r--r-- 1 root root 1081 2008-04-21 22:19 slackware-9.0.conf
-rw-r--r-- 1 root root 1081 2008-04-21 22:19 slackware-9.1.conf
-rw-r--r-- 1 root root 1074 2008-04-21 22:19 slackware.conf
-rw-r--r-- 1 root root 1039 2008-04-21 22:19 sles-9.conf
-rw-r--r-- 1 root root 1039 2008-04-21 22:19 sles.conf
-rw-r--r-- 1 root root 1051 2008-04-21 22:19 suse-7.3.conf
-rw-r--r-- 1 root root 1051 2008-04-21 22:19 suse-8.0.conf
-rw-r--r-- 1 root root 1051 2008-04-21 22:19 suse-8.1.conf
-rw-r--r-- 1 root root 1051 2008-04-21 22:19 suse-8.2.conf
-rw-r--r-- 1 root root 1040 2008-04-21 22:19 suse-9.0.conf
-rw-r--r-- 1 root root 1040 2008-04-21 22:19 suse-9.1.conf
-rw-r--r-- 1 root root 1040 2008-04-21 22:19 suse-9.2.conf
-rw-r--r-- 1 root root 1040 2008-04-21 22:19 suse-9.3.conf
-rw-r--r-- 1 root root 1040 2008-04-21 22:19 suse.conf
-rw-r--r-- 1 root root 1047 2008-04-21 22:19 ubuntu-5.1.conf
-rw-r--r-- 1 root root 1047 2008-04-21 22:19 ubuntu.conf



# cat /etc/vz/vz.conf
## Global parameters
VIRTUOZZO=yes
LOCKDIR=/var/lib/vz/lock
DUMPDIR=/var/lib/vz/dump
VE0CPUUNITS=1000

## Logging parameters
LOGGING=yes
LOGFILE=/var/log/vzctl.log
LOG_LEVEL=0
VERBOSE=0

## Disk quota parameters
DISK_QUOTA=yes
VZFASTBOOT=no

# The name of the device whose ip address will be used as source ip for VE.
# By default automatically assigned.
#VE_ROUTE_SRC_DEV="eth0"

# Controls which interfaces to send ARP requests and modify APR tables on.
NEIGHBOUR_DEVS=detect

## Template parameters
TEMPLATE=/var/lib/vz/template

## Defaults for VEs
VE_ROOT=/var/lib/vz/root/$VEID
VE_PRIVATE=/var/lib/vz/private/$VEID
CONFIGFILE="vps.basic"
DEF_OSTEMPLATE="ubuntu"

## Load vzwdog module
VZWDOG="no"

## IPv4 iptables kernel modules
IPTABLES="ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mang$

## Enable IPv6
IPV6="no"

## IPv6 ip6tables kernel modules
IP6TABLES="ip6_tables ip6table_filter ip6table_mangle ip6t_REJECT"



Quote:


Is this a typo?
Quote:


$ sudo vzctl create 105 --ostemplate debian-5.0-i386-minimal --config vps.basic
$ sudo vzctl set 104 --hostname vz4.satimis.com --save



Sorry, it is a typing mistake. Should read "104"


B.R.
satimis
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: veth and cpt and restore
Next Topic: HA cluster with DRBD and Heartbeat
Goto Forum:
  


Current Time: Fri Oct 18 08:44:11 GMT 2024

Total time taken to generate the page: 0.04963 seconds