Can I run debian as vz with ubuntu host [message #35764] |
Tue, 21 April 2009 07:54 |
satimis
Messages: 39 Registered: August 2008
|
Member |
|
|
Hi folks,
host - Ubuntu 8.04-i386
guest - Ubuntu 8.04-i386 minimal
I tried to install Debian 5.0 without success. Steps performed as follows;
$ cd /var/lib/vz/template/cache/
$ sudo vzctl create 105 --ostemplate debian-5.0-i386-minimal --config vps.basic
Creating VE private area (debian-5.0-i386-minimal)
Performing postcreate actions
VE private area was created
$ sudo vzctl set 104 --hostname vz4.satimis.com --save
Warning: distribution not specified default used /etc/vz/dists/default
Saved parameters for VE 104
$ cat /et/vz/dists/default
ADD_IP=redhat-add_ip.sh
DEL_IP=redhat-del_ip.sh
SET_HOSTNAME=redhat-set_hostname.sh
SET_DNS=set_dns.sh
SET_USERPASS=set_userpass.sh
SET_UGID_QUOTA=set_ugid_quota.sh
POST_CREATE=postcreate.sh
Please advise how to fix the problem. Whether it is NOT allowed running OS other than similar to the host? TIA
Edit:
Something strange happened here.
After googling a while without remedy solving my problem. I exited Ubuntu 8.04 and turned off the PC.
About half hour later I switched on the PC re-starting OpenVZ and performed following steps.
$ sudo vzctl destroy 104
$ sudo rm /etc/vz/conf/104.conf.destroyed
$ cd /var/lib/vz/template/cache/
$ sudo vzctl create 104 --ostemplate debian-5.0-i386-minimal --config vps.basic
Creating VE private area (debian-5.0-i386-minimal)
Performing postcreate actions
VE private area was created
$ sudo vzctl set 104 --hostname vzd4.satimis.com --save
Saved parameters for VE 104
$ sudo vzctl set 104 --ipadd 192.168.0.104 --save
Saved parameters for VE 104
$ sudo vzctl set 104 --nameserver 202.14.67.4 --nameserver 202.14.67.14 --save
Saved parameters for VE 104
$ sudo vzctl start 104
Starting VE ...
VE is mounted
Adding IP address(es): 192.168.0.104
Setting CPU units: 1000
Configure meminfo: 65536
Set hostname: vzd4.satimis.com
File resolv.conf was modified
VE start in progress...
$ sudo vzlist -a
VEID NPROC STATUS IP_ADDR HOSTNAME
101 3 running 192.168.0.101 vz1.satimis.com
103 3 running 192.168.0.103 vz3.satimis.com
104 6 running 192.168.0.104 vzd4.satimis.com
105 6 running - -
(remark: I'm going to remove 105)
To my surprise, this time it works. Referring to the notes taken down previously the only difference made in creating 104 is the hostname;
Old 104 vz.satimis.com
New 104 vzd4.satimis.com
I can't resolve WHY it would make the difference?
Actually I have tried several hours to solve the problem in running "apt-get update/upgrade" and "aptidute update/safe-upgrade" on 102 without result always having mistake. 102 was running Ubuntu 8.04. Therefore I install debian 5.0 instead
B.R.
satimis
[Updated on: Tue, 21 April 2009 09:38] Report message to a moderator
|
|
|
|
|
|
Re: Can I run debian as vz with ubuntu host [message #35784 is a reply to message #35775] |
Wed, 22 April 2009 11:16 |
satimis
Messages: 39 Registered: August 2008
|
Member |
|
|
maratrus wrote on Wed, 22 April 2009 14:23 | Hi,
- I don't understand whether you solved the problem?
- you didn't show VEs configuration file only global vz.conf.
- please pay attention to OSTEMPLATE variable in VEs configuration file.
|
Hi maratrus,
I have 5 VZs running;
$ sudo vzlist -a
[sudo] password for satimis:
VEID NPROC STATUS IP_ADDR HOSTNAME
101 3 running 192.168.0.101 vz1.satimis.com
102 3 running 192.168.0.102 vz2.satimis.com
103 3 running 192.168.0.103 vz3.satimis.com
104 6 running 192.168.0.104 vzd4.satimis.com
105 12 running 192.168.0.105 vzd5.satimis.com
It seems that they are working w/o problem. However they are only base OS without further installation.
101 - Ubuntu 8.04 minimal (created on template)
102 - Ubuntu 8.04 minimal (created on template)
103 - Ubuntu 8.04 minimal (duplicated on 101)
104 - Debian 5.0 minimal (created on template)
105 - Debian 5.0 full version (created on template)
(all 32bit)
$ cat /etc/vz/conf/104.conf
- snip -
ONBOOT="yes"
# UBC parameters (in form of barrier:limit)
KMEMSIZE="11055923:11377049"
LOCKEDPAGES="256:256"
PRIVVMPAGES="65536:69632"
SHMPAGES="21504:21504"
NUMPROC="240:240"
PHYSPAGES="0:2147483647"
VMGUARPAGES="33792:2147483647"
OOMGUARPAGES="26112:2147483647"
NUMTCPSOCK="360:360"
NUMFLOCK="188:206"
NUMPTY="16:16"
NUMSIGINFO="256:256"
TCPSNDBUF="1720320:2703360"
TCPRCVBUF="1720320:2703360"
OTHERSOCKBUF="1126080:2097152"
DGRAMRCVBUF="262144:262144"
NUMOTHERSOCK="360:360"
DCACHESIZE="3409920:3624960"
NUMFILE="9312:9312"
AVNUMPROC="180:180"
NUMIPTENT="128:128"
# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="1048576:1153024"
DISKINODES="200000:220000"
QUOTATIME="0"
# CPU fair sheduler parameter
CPUUNITS="1000"
VE_ROOT="/var/lib/vz/root/$VEID"
VE_PRIVATE="/var/lib/vz/private/$VEID"
OSTEMPLATE="debian-5.0-i386-minimal"
ORIGIN_SAMPLE="vps.basic"
HOSTNAME="vzd4.satimis.com"
IP_ADDRESS="192.168.0.104"
NAMESERVER="202.14.67.4 202.14.67.14"
B.R.
satimis
|
|
|