Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th August 2008, 16:36
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default OpenVZ - How to install guest OS on container

Hi folks,


Ubuntu8.04 desktop i686 - host
OpenVZ - Virtual server


I have installed OpenVZ on Ubuntu. It is now running. Container can be created. But I haven't figured out how to install guest OS from its CD installer on the container.


Please shed me some light. Pointer would be appreciated. TIA


B.R.
satimis
Reply With Quote
Sponsored Links
  #2  
Old 20th August 2008, 15:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

This doesn't work. You must use the templates from http://wiki.openvz.org/Download/template/precreated or create you own templates, e.g. like this: http://wiki.openvz.org/Creating_a_CentOS_5.0_Template
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 20th August 2008, 15:33
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko View Post
This doesn't work. You must use the templates from http://wiki.openvz.org/Download/template/precreated or create you own templates, e.g. like this: http://wiki.openvz.org/Creating_a_CentOS_5.0_Template
Hi falko,


Thanks for your advice.


I have run following steps;


$ cd /var/lib/vz/template/cache
$ sudo wget http://download.openvz.org/template/precreated/ubuntu-8.04-i 386-minimal.tar.gz


Creating a container

$ sudo vzctl create 101 --ostemplate ubuntu-8.04-i386-minimal
Code:
Creating VE private area (ubuntu-8.04-i386-minimal)
Performing postcreate actions
VE private area was created

What shall I do next? Thanks


In case if I can't find Ubuntu template on OpenVZ site and have to build my own template, on;
http://packages.ubuntu.com/search?keywords=debootstrap

which package shall I download?


Furthermore if I can't find a template of an OS on OpenVZ site which I'm prepared to install what shall I do? TIA


B.R.
satimis
Reply With Quote
  #4  
Old 21st August 2008, 04:55
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko View Post
This doesn't work. You must use the templates from http://wiki.openvz.org/Download/template/precreated or create you own templates, e.g. like this: http://wiki.openvz.org/Creating_a_CentOS_5.0_Template
Hi falko,


I have run following steps;


$ cd /var/lib/vz/template/cache
$ sudo wget http://download.openvz.org/template/precreated/ubuntu-8.04-i 386-minimal.tar.gz


Creating a container

$ sudo vzctl create 101 --ostemplate ubuntu-8.04-i386-minimal
Code:
Creating VE private area (ubuntu-8.04-i386-minimal)
Performing postcreate actions
VE private area was created

What shall I do next? Thanks


Furthermore if I can't find a template of an OS on OpenVZ site which I'm prepared to install what shall I do? TIA


B.R.
satimis
Reply With Quote
  #5  
Old 21st August 2008, 20:41
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Originally Posted by satimis View Post
Creating a container

$ sudo vzctl create 101 --ostemplate ubuntu-8.04-i386-minimal
Code:
Creating VE private area (ubuntu-8.04-i386-minimal)
Performing postcreate actions
VE private area was created

What shall I do next? Thanks
http://www.howtoforge.com/installing...-ubuntu8.04-p2
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 19th October 2008, 11:58
rawe28 rawe28 is offline
Junior Member
 
Join Date: Oct 2008
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default installing-and-using-openvz-on-ubuntu8

Hi Falko,

if I understand it right, the given link does not answer the question, because it just repeats the procedure, wich satimis describeb. Or I´m wrong?

As I´ve understood, the following command creates a virtual maschine on HardwareNode

Code:
vzctl create 178 --ostemplate debian-4.0-amd64-minimal --config vps.basic 
vzctl start 178
vzctl set 178 --onboot yes --save 

vzctl set 178 --ipadd 78.46.xxx.178 --save

vzctl set 178 --numothersock 120 --save

vzctl set 178 --nameserver 217.70.142.66 --nameserver 213.239.206.103 --nameserver 217.20.112.194 --save

vzctl set 178 --netif_add eth0,00:12:34:56:78:9A --save
vzctl exec 178 passwd
Okay.

But in this VM I want to create multiple VPSés for hosting and share the IP, given to the VM with them. If I´m right until here, my question is:

Do I have to log in to the VM and than create the VPS in here. If "yes": Which commands I have to use.

Beside this:

I found out, when I logged into the VM I could do there absolutly nothing, because my server is chrooted. Ive tried with Putty, WinSCP and MySecureShell, but they all kicked me out immediatly´, as soon as I trie to execute any command. I also was not able, to change this in /ssh.config,
but this is because I don´t understand enough of it.

Could you be so kind and lend a helping hand?
I´m arround with this problem now for over a week and can´t manage it.
I´m really stucked and need some concret advice.

So long

Ralph

Last edited by rawe28; 19th October 2008 at 12:02.
Reply With Quote
  #7  
Old 20th October 2008, 01:41
rawe28 rawe28 is offline
Junior Member
 
Join Date: Oct 2008
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default installing-and-using-openvz

Hi, I´v managed the problem by installing OpenSSh- server and loggged in whith WinSCp.
The problem now is, that I can not access Mysql, not as root and not as User "ralph". It answers just "access denied for...".

Any idea, what to do?

regards

Ralph
Reply With Quote
  #8  
Old 20th October 2008, 13:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
 
Default

How did you install MYSQL? Did you set a root MySQL password?

This link might help you: http://www.howtoforge.com/reset-forg...-root-password
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig install issues... flyingaggie Installation/Configuration 2 18th July 2008 11:46
VMware tools install help for Debian Sarge guest cic Installation/Configuration 3 27th September 2007 22:51
How to install in OpenVz tecnico001 Installation/Configuration 9 4th July 2007 03:41
install Net::DNS chrno Installation/Configuration 4 5th September 2006 18:01
Mandriva 10.2 Perfect Setup Install Problems... ctroyp Installation/Configuration 12 30th December 2005 17:04


All times are GMT +2. The time now is 01:26.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.