hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : VPS Hosting : VPS Tutorials : HOW-TO: Vds
Reply

VPS Tutorials Tutorials related to VPS.
Forum Jump

HOW-TO: Vds

Reply Post New Thread In VPS Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 07-02-2004, 01:21 PM
AtlasPC-Darren AtlasPC-Darren is offline
Disabled
 
Join Date: Feb 2004
Posts: 181

HOW-TO: Vds


This is a quick way of setting up a VDS. We will use the Kernel: 2.4.22-8um in this. You can use any you want.

First of all, make a UML directory on the server with the following command in SSH

Quote:
mkdir /uml/
Then, we need to change to the newly made directory, using the following command:

Quote:
cd /uml
Then, Download the kernel via shell with the following command:
Once the Kernel (roughly 2.5MB) is downloaded, execute the following CHMOD:
Quote:
chmod +x /uml/linux
At this point, the kernel is in a runnable state, but we havent got any OS to boot into, or any tools to run the UML properly!

So, next we will download the uml tools, and install them. To download them, in shell, type the following command:

Now, we need to install these utilities with the following command:

Quote:
rpm -i ./uml_utilities-20030903-1.i386.rpm
After this installtion, we are nearlly done, but we need one more item, the OS!

For this tutorial, we will just grab a copy of the Redhat OS from the UML site, so you need to type the following into shell:

Once this is downloaded, simply type the following to un bzip it:

Quote:
unbzip2 ./root_fs.rh-7.2-full.pristine.20020312.bz2
This will take a while to unbzip. Once it is done, we will make a test vds to ensure all is working, so we will do the following commands:

Quote:
adduser vds1
passwd vds1 myfirstvds
This will add a user named: vds1 with the password: myfirstvds.

Now, we will make the UML run under that users login, so we type the following in order:

Quote:
cp ./root_fs.rh-7.2-full.pristine.20020312 /home/vds1/root_fs
cp ./linux /home/vds1/linux
This will cause the files "root_fs.rh-7.2-full.pristine.20020312(which will now be named "root_fs")" and "linux" to be in the user "vds1" directory. Now, we will CHOWN it to user "vds1" so that the user can run it.

Quote:
chown vds1 /home/vds1/linux
chown vds1 /home/vds1/root_fs
Now, at this point we have a VERY basic VDS setup. So, we will run it with the following command line to test if it works:

Quote:
/home/vds1/linux ubd0=root_fs root=/dev/ubd0 mem=128m
The above line says: Boot the linux kernel, and the OS is in root_fs and make 128MB of ram available to the UML.

This should boot the VDS up to a running state.

I will add more in the morning on VDS Networking (as it is 3:20am here, hehe)

Enjoy!

Reply With Quote


Sponsored Links
  #2  
Old 07-05-2004, 02:26 PM
BlikWerk BlikWerk is offline
Aspiring Evangelist
 
Join Date: May 2004
Posts: 405
Killer post, its_just_me!
Nice job, very helpful : )

Reply With Quote
  #3  
Old 07-05-2004, 03:09 PM
probonic probonic is offline
Web Hosting Master
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 774
Don't forget too that there is quite a bit of information at http://user-mode-linux.sf.net including information on compiling the UML kernels yourself. So if you're used to compiling kernels and have some time on your hands you might want to look there.

I personally have quite a bit of experience with UML, so if anyone wants any help with any aspect of it, contact me and I will do my best to help

Reply With Quote
Sponsored Links
  #4  
Old 07-09-2004, 03:54 AM
dqh dqh is offline
WHT Addict
 
Join Date: Feb 2004
Posts: 104
warning: ./uml_utilities-20030903-1.i386.rpm: V3 DSA signature: NOKEY, key ID cbe5ddc7
i can't setup?

Reply With Quote
  #5  
Old 07-11-2004, 12:10 AM
AtlasPC-Darren AtlasPC-Darren is offline
Disabled
 
Join Date: Feb 2004
Posts: 181
Quote:
Originally posted by dqh
warning: ./uml_utilities-20030903-1.i386.rpm: V3 DSA signature: NOKEY, key ID cbe5ddc7
i can't setup?
Just ignore that, its just a warning because we didnt use a MD5 key

It should work for you still...

Reply With Quote
  #6  
Old 07-13-2004, 12:45 AM
Steven Steven is online now
I like ice cream
 
Join Date: Mar 2003
Location: California USA
Posts: 11,634
[root@35130 vds1]# ./linux ubd0=root_fs root=/dev/ubd0 mem=128m
Checking for the skas3 patch in the host...not found
Checking for /proc/mm...not found
Segmentation fault
[root@35130 vds1]#


On fedora

Reply With Quote
  #7  
Old 07-27-2004, 11:31 AM
The Kid The Kid is offline
Junior Guru Wannabe
 
Join Date: Jun 2004
Posts: 51
whats vds???

Reply With Quote
  #8  
Old 07-27-2004, 11:38 AM
probonic probonic is offline
Web Hosting Master
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 774
Quote:
Originally posted by The Kid
whats vds???
Virtual Dedicated Server - software that allows you to partition a physical server into several "virtual" servers which give complete root access and a share of the physical host's CPU and memory resources.

User Mode Linux (UML) is just one way of doing VDS/VPS.

Reply With Quote
  #9  
Old 07-27-2004, 11:59 AM
The Kid The Kid is offline
Junior Guru Wannabe
 
Join Date: Jun 2004
Posts: 51
so is it like a mini-dedicated server? and if it has complete root, cant it delete your account and others that it doesnt own on ur server as well?

Reply With Quote
  #10  
Old 07-27-2004, 05:04 PM
Steven Steven is online now
I like ice cream
 
Join Date: Mar 2003
Location: California USA
Posts: 11,634
Quote:
Originally posted by The Kid
so is it like a mini-dedicated server? and if it has complete root, cant it delete your account and others that it doesnt own on ur server as well?
No its like running a operating system inside an operating system.

Reply With Quote
  #11  
Old 07-29-2004, 01:34 PM
netswitch netswitch is offline
WHT Addict
 
Join Date: Oct 2003
Location: belgium
Posts: 101
Works nice, do you still plan to write a networking how to ?

Also what is the root password ?

Reply With Quote
  #12  
Old 07-29-2004, 02:00 PM
ck2004 ck2004 is offline
Junior Guru Wannabe
 
Join Date: Jun 2004
Posts: 70
is that have any GUI Interface for customer , can UML limit cpu ,ram , harddisk , network usage?

Reply With Quote
  #13  
Old 07-31-2004, 10:04 AM
Shoey Shoey is offline
Account Suspended
 
Join Date: Nov 2003
Location: Europe
Posts: 712
Quote:
Originally posted by ck2004
is that have any GUI Interface for customer , can UML limit cpu ,ram , harddisk , network usage?
I also wanted to ask these questions..

Reply With Quote
  #14  
Old 08-02-2004, 08:58 PM
mygethosted mygethosted is offline
WHT Addict
 
Join Date: May 2004
Location: Malaysia
Posts: 162
good guide, waiting for the networking guide now

Reply With Quote
  #15  
Old 08-03-2004, 01:14 PM
Icarus22 Icarus22 is offline
Junior Guru Wannabe
 
Join Date: May 2004
Posts: 44
great post! Thanks!

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?