Debian Lenny xen server setup
This guide describes the way I intalled my home server. The server is a Debian Lenny installation containing a variaty of virtual servers. The virtualisation is done by xen. This guides describes the proceses needed, commands issued and so on.
Good luck!
Step 1 - Basic installation
First install a minimal Lenny from a network boot machine.
(I assume you will manage this without desciption)
Step 2 - Change settings
We need to change the IP address of the server as we want it to have a static address (instead of an address issued by DHCP):
# nano /etc/network/interfaces
Change the following parts of this file
[...] # The primary network interface allow-hotplug eth0 iface eth0 inet static address 192.168.2.201 netmask 255.255.255.0 network 192.168.2.1 broadcast 192.168.2.255 gateway 192.168.2.1 # IPtables settings [...] |
Now restart the network device:
# ifdown eth0 # ifup eth0
Now we need to install the ssh-server to make maintainance a bit easier:
# apt-get install openssh-server
Step 3 - Install xen
Finally it is time to install our mighty xen:
# apt-get install xen-hypervisor-i386 linux-image-2.6-xen-686 linux-headers-2.6-xen-686 xen-utils-3.2-1 xen-tools bridge-utils
To make the consoles work we also need to make some changes to the inittab:
# nano /etc/inittab
Step 4 - Edit xen to make it work properly
After the installation there are still a few adjustments to make in order to get it running smoothly. Firstly we make the consoles work. Therefore we need to make some changes to the inittab:
# nano /etc/inittab
Change the following parts of this file
[…] # 1:2345:respawn:/sbin/getty 38400 hvc0 2:23:respawn:/sbin/getty 38400 tty1 #3:23:respawn:/sbin/getty 38400 tty3 #4:23:respawn:/sbin/getty 38400 tty4 #5:23:respawn:/sbin/getty 38400 tty5 #6:23:respawn:/sbin/getty 38400 tty6 […] |
Also edit the /etc/xen/xend-config.sxp
# nano /etc/xen/xend-config.sxp
See the desciption on: http://www.howtoforge.com/virtualization-with-xen-on-debian-lenny-amd64
Next edit the xen-tools.conf
# nano /etc/xen-tools/xen-tools.conf
See the desciption on: http://www.howtoforge.com/virtualization-with-xen-on-debian-lenny-amd64
Finally we also need to make some adjustments to prevent the famous “clocksource/0: Time went backwards” error (or similar problems) by not using the xen clock. First we need to install ntp on the dom0:
# apt-get install ntp
Also see: http://wiki.debian.org/Xen
Then, later, we also have to take some steps into account for the domU, but we see about them later!
Now it is time to load our new (xen)kernel. Therefore, reboot the server:
# reboot
Step 5 - Create a domU (virtual server)
Let's create a dumU:
# xen-create-image --hostname=<DOMAIN>.hanckmann.net --size=4Gb --swap=256Mb –ip=192.168.2.<IP ADDRESS> --memory=128Mb --arch=i386 –role=udev
For example:
# xen-create-image --hostname=apache.hanckmann.net --size=4Gb --swap=256Mb --ip=192.168.2.211 --memory=128Mb --arch=i386 –role=udev
Before we do anything else, we first prevent the famous “clocksource/0: Time went backwards” error. Edit the *.cfg file of the created domU domain:
# nano /etc/xen/<DOMAIN>.hanckmann.net.cfg
Now add (or expand) the extra line:
[…] extra=”clocksource=jiffies” […] |
This domU runs a standard Debian Lenny installation on the i386 platform with 4Gb disk space, 256Mb swap space and 128Mb memory.
Step 6 - Start the domU
Now it is time to start this domU. This is done via the command "xm create ...cfg". In my example I would issue the command:
# xm create /etc/xen/apache.hanckmann.net.cfg
Check if the domU managed to start by typing:
# xm list
The domU should be in that list.
To work with the domU we have to connect to its console. We do this via:
# xm console apache.hanckmann.net
Step 7 - Adjusting the domU
The domU needs some minor adjustments to make it work nicely. First we, again, go on to prevent the famous “clocksource/0: Time went backwards” error. Type:
# nano /etc/sysctl.conf
and add the line:
[…] xen.independent_wallclock=1 […] |
Now install the ntp client on this machine:
# apt-get install ntp
To activate the changes without a reboot perform the following steps:
# sysctl -p # echo "jiffies"> /sys/devices/system/clocksource/clocksource0/current_clocksource
Besides this it is a good idea to generate an rsa key so you can ssh into your virtual machine (sshserver is installed by default):
# ssh-keygen
You can also simply reboot the domU.
Step 8 - Exit the domU environment
To exit the domU environment type CTRL + ]
Step 9 - Read the following information sources
- The xm manual page (man xm)
- http://www.howtoforge.com/virtualization-with-xen-on-debian-lenny-amd64
- http://wiki.debian.org/Xen
- patrick's blog
- Add new comment
- 23464 reads

Comments
373 comments postedhttp://www.toryburch-outlet.com/ http://www.antishoes-uk.com
Tibetan Jewelry
Tibetan Art
Kukri Knives
Tibetan Prayer Wheel
Tibetan Rings
Tibetan Bracelet
balenciaga handbags
replica designer handbags
replica louis vuitton handbags
goyard handbags
Wholesale replica handbags
I love sports .Prepared to do sports, a good pair of nike shoes are the best choice, when wearing Nike brand shoes,a jordan shoes for sports, you will feel like flying. My favorite sports is football, I search NFL jerseys for a collection, including different NFL team jerseys. I found hard to buy cheap NFL jerseys, but I finally found a online shop sale cheap NFL jerseys ,it’s yofollow.com, together with me.
Cosplay popular with the younger generation, you can put on cosplay costumes and wear the cosplay wigs to show different roles, I think naruto cosplay is a nice choice. As a young generation is very sensitive for popular, it certainly will not miss marc jacobs bags, at a friend’s party, marc jacobs handbags will attract more attention for you, just like we remember when marc jacobs handbags sale, it was inconceivable. Of course, need guide you in shoes, mbt shoes increasingly popular, especially mbt chapa, and mbt lami these two series, which is your choice, there are different mbt wait for you to try.
haku ha cosplay hatake kakashi cosplay hatsune mikuo cosplay hibair kyoya cosplay
hinata hyuga cosplay hyuuag neji cosplay lchigo Kurosaki cosplay lockon stratos cosplay
inuyasha cosplay jeremiah gottwald cosplay ai enma cosplay amane misa cosplay
anew returner cosplay arisa uotani cosplay arietta cosplay ayane cosplay
bincho tan cosplay black rock cosplay c c cosplay chi cosplay
Designer Shoes are the latest developments on Hurricane Earl, set to affect the East Coast beginning Thursday afternoon. The next advisory from the National Hurricane Center is expected at 2 a.m. ET.
Designer Shoes will turn northeast as it collides with a cold front, said National Hurricane Center director Bill Read. But the hurricane was undergoing a phenomenon known as eyewall replacement, in which the existing eyewall weakens and a new one forms.
That means the eye likely will grow in diameter and the storm will spread out as hurricane force winds stretch even Casual Shoes .
UGG Boots is one snowy boot brand which is made of Australian pure wool. It has had over thirty's history. UGG includes except male and female Ugg Bailey Button, sandals, but also the baby shoe. At the first sight of UGG Classic Cardy Boots, people could not fall in love in its stupid cartoon shape at once, but Its thickness, suppleness and leisure win much favor from European and American Stars. UGG Classic Short Boots may let you enjoy the super comfortable warmth in the winter. UGG Sandals blew the prevailing wind continued explosive. Its product line also starts not only to be restricted in the sheep leather boots, gradually increases UGG Classic Tall Boots which is made of the high-quality sheepskin.
GreatWin-WinThanks for your sharing very much.
And have so much to offer. Some of the best and cheap mobile phone deals include Smart mobile phone, GPS mobile phone,WIFI mobile phone, TV mobile phone and many more. All these deals are very popular among the populace. Depending upon the need and requirement, you can select any of the deal. GreatWin-Win Mall give you an opportunity to look at the design, color and shape of each and every handset so that you can make a wise decision while buying. Further minute specifications are also available on the website so that people can be aware about the multi features of the handset.others are on hot sale like Cheap iPad | Mobile Phones | Laptop | Netbook | Digital Camera | MP3 MP4 | Accessories
This article is as unbelievably amazing. i got to say is wow!!!!!!!!!!!! as one about mobile phones | digital camera I've ever seen. The article/topic for Ipad | netbook | laptop | Macbook were written by a guy named Joseph, It is said that he is famous for collecting creative products , also someone had seen him living near a store of Wholesale Electrinics. n Some reviews are showed in the GreatWin-Win Blog http://greatwin-win.com
Cheap iPad | Mobile Phones | Laptop | Netbook | Digital Camera | MP3 MP4 | Accessories
It is known to us, cleaning brush is crucial in the dust catcher fittingsVacuum cleaner which has cleaning brush is a type of cleaning brush with finishing cloth ,which is used for dust absorption. Good News!! vacuum parts is Most Excellent for Fairy in 2009The additional power supply is no need for it uses the air inhaled to drive turbine to make revolver with finishing cloth retation.
Energy of motion from air inhaled drives enclosure、actuating device to be operating which belong to cleaning brush.Power drives gears and on the both sides of the actuating device is the setting which gets motive power by vertical transmission from actuating device.and makes connection to gear with finishing cloth together with revolver
This is a new-style application for high technology and different from these in the past.Dust catcher wipe out the dust more efficiently and effectively due to cleaning brush. To Enjoy the Reasons of the Popularity of vacuum parts No dusts exsit in home furnishing and floor . You May Treat Lightly These When Preserve vacuum cleaner nozzle The Right time to Protect, The Best Vacuum Cleaner Tube to Enjoy