brgroup
27-12-2009, 04:59
Requirements:
-OVH Dedicated server w/ OVH manager access
-Local Windows machine for XenCenter software
-Extra Ip's accessible in OVH manager
After much trial and error I finally have a good working system for creating workable Debian 4.0 Etch slices using XenServer with my 3 failover IP's. Currently I am running an EG-Best Of which seems to suit these VPS perfectly.
I am also running the Windows version of XenCenter from Citrix, which allows me to control my slices. The software only comes in Windows flavor, so if you are running Linux or Mac, maybe try Wine or Crossover otherwise, you can control your XenServer install with the command line, which is beyond this guide.
Obviously, one would have to purchase more IP's in order to create a production server and Debian slices for sale to see any sort of profit.
Again, I've only created using Debian 4 and had absolutely NO success with any Windows server release.
AND I am a complete newbie at working with VPS's so I cannot provide tech support! I am learning as I go and am interested in learning more, so please any smarter and more savvy people jump in to the fray if someone is having difficulty!
Please feel free to correct or comment or add to any of this..
1) In OVH manager reinstall OS to XenServer. You can format and partition your disks to suit your needs. Since I could, I converted my partitions to RAID 0 like so:
Partition 1 ext3 / "20,000MB"
Partition 2 ext3 swap "1024MB"
Partition 3 ext3 "RAID 0" /home "all the rest"
2) After Zen server installation. Download and install the XenCenter Windows software from the Citrix website:
http://downloadns.citrix.com.edgesuite.net/akdlm/4212/FREE_XenServer-5.5.0-XenCenter.msi
3) After your XenServer installation on your OVH server, fire up the local XenCenter client and connect to your server using your IP address, root and password that your received in your server installed notification email from OVH.
4) In the OVH manager create Virtual Mac addresses for your failover IP's:
-Assign an IP address
-Create a name
-Make sure to choose OVH type from the drop down.
NOTE: be sure to create your Virtual Macs BEFORE you create your VM's in XenCenter or the server will crash and reboot because the switch will think 2 IP's are coming from the same mac address!
5) Now in XenCenter create a new VM from the taskbar at the top and make make the following decisions to suit your needs:
-Choose "Debian 4 Etch" OS
-Name your VM
-Choose Virtual disk size and Location. BE SURE TO EDIT THE EXISTING DISK AND ADD SPACE TO IT!
-Choose RAM and CPU sizes
-Network - IMPORTANT!! Click on the 'MAC Address box and replace "auto-generated" with the Virtual Mac you created in the OVH manager Don't worry about the IP. We'll enter it later.
-Choose Auto-Start VM
Let the setup allocate the space and start your VM
6) Highlight your new VM and choose the "Console" tab at the right. A commandline console will startup.
7) Create and verify:
ROOT Password
VNC password
8) the OS will continue to setup. NOTE: DHCP will try to create an IP address. Just disregard any output.
9) Login using ROOT and the password you just created.
10) Create a new admin user:
adduser NewAdminUser
11) Add your new user to the sodoers file to give sudo privs. TYPE:
visudo
Look for the entry ROOT=ALL(ALL) ALL
and ADD this entry on the next line below it:
NewAdminUser ALL=(ALL) ALL
12)Add your virtual device to networking:
nano /etc/network/interfaces
replace contents with following:
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
auto lo
iface lo inet loopback
##Public Network
auto eth0
iface eth0 inet static
##Your IP failover IP Address from Virtual mac setup
address xxx.xxx.xxx.xxx
netmask 255.255.255.0
##The SAME failover IP address from virtual mac setup
gateway xxx.xxx.xxx.xxx
SAVE and CLOSE:
ctrl+X, enter and Y to exit
13) Change Hosts file and add hostname entry and IP:
nano /etc/hosts
You can create any host you would like; eg joesserver.ovh.net
127.0.0.1 localhost localhost.localdomain
##Use your same IP from the virtual Mac setup
xxx.xxx.xxx.xxx HOST.DOMAIN.COM HOST
SAVE and CLOSE:
ctrl+X, enter and Y to exit
14) add nameservers for DNS resolution. I use Google:
nano /etc/resolv.conf
Add the following to the file:
search 127.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4
SAVE and CLOSE:
ctrl+X, enter and Y to exit
15)Restart networking in console
/etc/init.d/networking restart
16) Now we'll update our OS and install some software we (might) need.. :)
DO THE FOLLOWING IN THE XenCenter CONSOLE as ROOT:
17) Import APT-KEYS for repositories:
gpg --keyserver wwwkeys.eu.pgp.net --recv 9AA38DCD55BE302B
gpg --export --armor 9AA38DCD55BE302B | apt-key add -
Should get an 'OK'
18) And update the gpg key for Citrix Xen-Server
wget -q http://updates.vmd.citrix.com/XenServer/5.5.0/GPG-KEY -O- | apt-key add -
Should get an 'OK'
19) Update and Upgrade Debian RUN:
apt-get update
apt-get upgrade
FYI - You will have to choose a Time Zone and restart SSH
20)Now we are going to install a graphical interfaceaccessible through VNC. I use XORG, you can use any other you like, including: gnome, kde, lxde or fluxbox.
21) Download and install window manager XORG and proftpd
apt-get install xorg proftpd
NOTE: For proftpd choose standalone
22) We will make some changes to ProFtpd..Disable IPV6 and Lock user in their directories:
nano /etc/proftpd/proftpd.conf
Make the following changes and additions:
UseIPv6 off
DefaultRoot ~
SAVE and CLOSE:
ctrl+X, enter and Y to exit
23) RESTART Proftpd:
/etc/init.d/proftpd restart
-OVH Dedicated server w/ OVH manager access
-Local Windows machine for XenCenter software
-Extra Ip's accessible in OVH manager
After much trial and error I finally have a good working system for creating workable Debian 4.0 Etch slices using XenServer with my 3 failover IP's. Currently I am running an EG-Best Of which seems to suit these VPS perfectly.
I am also running the Windows version of XenCenter from Citrix, which allows me to control my slices. The software only comes in Windows flavor, so if you are running Linux or Mac, maybe try Wine or Crossover otherwise, you can control your XenServer install with the command line, which is beyond this guide.
Obviously, one would have to purchase more IP's in order to create a production server and Debian slices for sale to see any sort of profit.
Again, I've only created using Debian 4 and had absolutely NO success with any Windows server release.
AND I am a complete newbie at working with VPS's so I cannot provide tech support! I am learning as I go and am interested in learning more, so please any smarter and more savvy people jump in to the fray if someone is having difficulty!
Please feel free to correct or comment or add to any of this..
1) In OVH manager reinstall OS to XenServer. You can format and partition your disks to suit your needs. Since I could, I converted my partitions to RAID 0 like so:
Partition 1 ext3 / "20,000MB"
Partition 2 ext3 swap "1024MB"
Partition 3 ext3 "RAID 0" /home "all the rest"
2) After Zen server installation. Download and install the XenCenter Windows software from the Citrix website:
http://downloadns.citrix.com.edgesuite.net/akdlm/4212/FREE_XenServer-5.5.0-XenCenter.msi
3) After your XenServer installation on your OVH server, fire up the local XenCenter client and connect to your server using your IP address, root and password that your received in your server installed notification email from OVH.
4) In the OVH manager create Virtual Mac addresses for your failover IP's:
-Assign an IP address
-Create a name
-Make sure to choose OVH type from the drop down.
NOTE: be sure to create your Virtual Macs BEFORE you create your VM's in XenCenter or the server will crash and reboot because the switch will think 2 IP's are coming from the same mac address!
5) Now in XenCenter create a new VM from the taskbar at the top and make make the following decisions to suit your needs:
-Choose "Debian 4 Etch" OS
-Name your VM
-Choose Virtual disk size and Location. BE SURE TO EDIT THE EXISTING DISK AND ADD SPACE TO IT!
-Choose RAM and CPU sizes
-Network - IMPORTANT!! Click on the 'MAC Address box and replace "auto-generated" with the Virtual Mac you created in the OVH manager Don't worry about the IP. We'll enter it later.
-Choose Auto-Start VM
Let the setup allocate the space and start your VM
6) Highlight your new VM and choose the "Console" tab at the right. A commandline console will startup.
7) Create and verify:
ROOT Password
VNC password
8) the OS will continue to setup. NOTE: DHCP will try to create an IP address. Just disregard any output.
9) Login using ROOT and the password you just created.
10) Create a new admin user:
adduser NewAdminUser
11) Add your new user to the sodoers file to give sudo privs. TYPE:
visudo
Look for the entry ROOT=ALL(ALL) ALL
and ADD this entry on the next line below it:
NewAdminUser ALL=(ALL) ALL
12)Add your virtual device to networking:
nano /etc/network/interfaces
replace contents with following:
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
auto lo
iface lo inet loopback
##Public Network
auto eth0
iface eth0 inet static
##Your IP failover IP Address from Virtual mac setup
address xxx.xxx.xxx.xxx
netmask 255.255.255.0
##The SAME failover IP address from virtual mac setup
gateway xxx.xxx.xxx.xxx
SAVE and CLOSE:
ctrl+X, enter and Y to exit
13) Change Hosts file and add hostname entry and IP:
nano /etc/hosts
You can create any host you would like; eg joesserver.ovh.net
127.0.0.1 localhost localhost.localdomain
##Use your same IP from the virtual Mac setup
xxx.xxx.xxx.xxx HOST.DOMAIN.COM HOST
SAVE and CLOSE:
ctrl+X, enter and Y to exit
14) add nameservers for DNS resolution. I use Google:
nano /etc/resolv.conf
Add the following to the file:
search 127.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4
SAVE and CLOSE:
ctrl+X, enter and Y to exit
15)Restart networking in console
/etc/init.d/networking restart
16) Now we'll update our OS and install some software we (might) need.. :)
DO THE FOLLOWING IN THE XenCenter CONSOLE as ROOT:
17) Import APT-KEYS for repositories:
gpg --keyserver wwwkeys.eu.pgp.net --recv 9AA38DCD55BE302B
gpg --export --armor 9AA38DCD55BE302B | apt-key add -
Should get an 'OK'
18) And update the gpg key for Citrix Xen-Server
wget -q http://updates.vmd.citrix.com/XenServer/5.5.0/GPG-KEY -O- | apt-key add -
Should get an 'OK'
19) Update and Upgrade Debian RUN:
apt-get update
apt-get upgrade
FYI - You will have to choose a Time Zone and restart SSH
20)Now we are going to install a graphical interfaceaccessible through VNC. I use XORG, you can use any other you like, including: gnome, kde, lxde or fluxbox.
21) Download and install window manager XORG and proftpd
apt-get install xorg proftpd
NOTE: For proftpd choose standalone
22) We will make some changes to ProFtpd..Disable IPV6 and Lock user in their directories:
nano /etc/proftpd/proftpd.conf
Make the following changes and additions:
UseIPv6 off
DefaultRoot ~
SAVE and CLOSE:
ctrl+X, enter and Y to exit
23) RESTART Proftpd:
/etc/init.d/proftpd restart