OpenVZ Forum


Home » General » Support » Can I run debian as vz with ubuntu host
Can I run debian as vz with ubuntu host [message #35764] Tue, 21 April 2009 07:54 Go to previous message
satimis is currently offline  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

 
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: Mon Sep 16 23:35:53 GMT 2024

Total time taken to generate the page: 0.05907 seconds