Computer Forums

Computer Forums (http://www.geekboards.com/forums/index.php)
-   Building Websites (http://www.geekboards.com/forums/forumdisplay.php?f=3)
-   -   How-TO:Vds (http://www.geekboards.com/forums/showthread.php?t=620)

goldigger 02-24-2006 07:17 AM

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:

Quote:
wget http://kernels.usermodelinux.org/ker...4.22-8um/linux


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:


Quote:
wget http://nrh-up2date.org/howto/uml/pac...903-1.i386.rpm


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:


Quote:
wget http://aleron.dl.sourceforge.net/sou...0312.bz2<br />


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!

Jason 02-24-2006 07:39 AM

Thank you goldigger!

iammzac 03-02-2006 04:39 PM

Thank you golddigger! I shall be trying this out for myself.

Durinthiam 03-02-2006 04:51 PM

There was me thinking it was how to get Vinerial Diseases hehe. Very good tutorial, well annotated :)

James72 03-07-2006 06:13 PM

Nice tutorial :)

Thanks for going to the effort of putting all that together for us :)
Much appreciated.
________
volcano vaporizer classic

Emperior Eric 03-10-2006 06:32 PM

Awesome Tutorial. I have favorited it for later use. It was very easy to read and understand. Great writing.

pitsug 04-25-2006 07:27 AM

anyone please explain me .. what is VDS for? what exactly does? sorry for my dumb question..

thanks

Soulwatcher 04-25-2006 01:40 PM

It stands for Virtual Dedicated Server. You wouldn't want to run it on a home webserver.

pitsug 04-25-2006 03:17 PM

thanks for the quick response.. not possible for home webserver :(

LucnetSolutions 04-29-2006 03:52 PM

This is a handy tutorial. Very nicely written.


All times are GMT -5. The time now is 02:33 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
HTML Help provided by HTML Help Central.