very simple and nice scheduling tool
NOTE: This is a work in progress
For details that I might be missing a good resource is:
http://howtoforge.com/ubuntu-8.04-serve r-install-xen-from-ubuntu-repositories
I will clean this up and do more testing when I have time
Any problems, questions leave a comment or post to the xen-users mailing list
Also, this is just proof of concept, in production I would recommend things like
LVM and network storage solutions like AoE, iSCSI, and DRDB.
Another NOTE: this is for amd64, there are also packages for i368
sudo apt-get remove network-manager
sudo gedit /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
sudo /etc/init.d/network restart
sudo apt-get install ubuntu-xen-server
wget http://downloads.howtoforge.com/ubuntu_ 8.04_server_xen_from_repositories/linux-h eaders-2.6.24-16-xen_2.6.24-16.30zng1_am d64.deb
wget http://downloads.howtoforge.com/ubuntu_ 8.04_server_xen_from_repositories/linux-i mage-2.6.24-16-xen_2.6.24-16.30zng1_amd6 4.deb
sudo dpkg -i linux-headers-2.6.24-16-xen_2.6.24-16.30 zng1_amd64.deb linux-image-2.6.24-16-xen_2.6.24-16.30zn g1_amd64.deb
Restart into Xen
sudo xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 3888 2 r----- 57.7
sudo mkdir -p /xen/images
sudo dd if=/dev/zero of=/xen/images/para.partition bs=1M seek=10240 count=1
ls -lh /xen/images/
sudo mkfs.ext3 -F /xen/images/para.partition
sudo mkdir /mnt/para
sudo mount -o loop /xen/images/para.partition /mnt/para
sudo debootstrap hardy /mnt/para
sudo cp -a /lib/modules/`uname -r` /mnt/para/lib/modules/
echo para | sudo tee /mnt/para/etc/hostname
fix /etc/hosts, /etc/fstab, /etc/network/interfaces etc.
sudo umount /mnt/para
sudo gedit /etc/xen/para
kernel="/boot/vmlinuz-2.6.24-16-xen"
ramdisk="/boot/initrd.img-2.6.24-16-xen"
disk=['tap:aio:/xen/images/para.partitio n,xvda1,w']
memory=512
vif=['']
root="/dev/xvda1"
extra='xencons=tty'
sudo xm create -c para
sudo dd if=/dev/zero of=/xen/images/hvm.disk bs=1M seek=10240 count=1
sudo gedit /etc/xen/hvm
kernel="/usr/lib64/xen/boot/hvmloader"
builder="hvm"
device_model = "/usr/lib64/xen/bin/qemu-dm"
disk=['tap:aio:/xen/images/hvm.disk,hda,w' ,'phy:/dev/<cdrom device>,hdc:cdrom,r']
#disk=['tap:aio:/xen/images/hvm.disk,hda,w' ,'phy:/dev/loop0,hdc:cdrom,r']
sdl=1
boot="dc"
memory=512
vif=['type=ioemu,bridge=eth0']
Note that it if you want to use an ISO, just run the command:
sudo losetup `sudo losetup -f` The_ISO_file.iso
sudo xm create hvm
after the hvm install, you can do:
kernel="/usr/lib64/xen/boot/hvmloader"
builder="hvm"
device_model = "/usr/lib64/xen/bin/qemu-dm"
#disk=['tap:aio:/xen/images/hvm.disk,hda,w' ,'phy:/dev/dvdrw1,hdc:cdrom,r']
#disk=['tap:aio:/xen/images/hvm.disk,hda,w' ,'phy:/dev/loop0,hdc:cdrom,r']
disk=['phy:/xen/images/hvm.disk,hda,w']
sdl=1
boot="dc"
memory=512
vif=['type=ioemu,bridge=eth0']
#stdvga=1
NOTES:
UPDATE 1: add sudo in front of `losetup -f` so not it reads `sudo losetup -f`
UPDATE 2: change phy: to tap:aio: in the cases referring to image files (in the HVM config file examples)
UPDATE 3: added note at the top to state specific to amd64, but that i386 packages are available.
For details that I might be missing a good resource is:
http://howtoforge.com/ubuntu-8.04-serve
I will clean this up and do more testing when I have time
Any problems, questions leave a comment or post to the xen-users mailing list
Also, this is just proof of concept, in production I would recommend things like
LVM and network storage solutions like AoE, iSCSI, and DRDB.
Another NOTE: this is for amd64, there are also packages for i368
sudo apt-get remove network-manager
sudo gedit /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
sudo /etc/init.d/network restart
sudo apt-get install ubuntu-xen-server
wget http://downloads.howtoforge.com/ubuntu_
wget http://downloads.howtoforge.com/ubuntu_
sudo dpkg -i linux-headers-2.6.24-16-xen_2.6.24-16.30
Restart into Xen
sudo xm list
Name
Domain-0
sudo mkdir -p /xen/images
sudo dd if=/dev/zero of=/xen/images/para.partition bs=1M seek=10240 count=1
ls -lh /xen/images/
sudo mkfs.ext3 -F /xen/images/para.partition
sudo mkdir /mnt/para
sudo mount -o loop /xen/images/para.partition /mnt/para
sudo debootstrap hardy /mnt/para
sudo cp -a /lib/modules/`uname -r` /mnt/para/lib/modules/
echo para | sudo tee /mnt/para/etc/hostname
fix /etc/hosts, /etc/fstab, /etc/network/interfaces etc.
sudo umount /mnt/para
sudo gedit /etc/xen/para
kernel="/boot/vmlinuz-2.6.24-16-xen"
ramdisk="/boot/initrd.img-2.6.24-16-xen"
disk=['tap:aio:/xen/images/para.partitio
memory=512
vif=['']
root="/dev/xvda1"
extra='xencons=tty'
sudo xm create -c para
sudo dd if=/dev/zero of=/xen/images/hvm.disk bs=1M seek=10240 count=1
sudo gedit /etc/xen/hvm
kernel="/usr/lib64/xen/boot/hvmloader"
builder="hvm"
device_model = "/usr/lib64/xen/bin/qemu-dm"
disk=['tap:aio:/xen/images/hvm.disk,hda,w'
#disk=['tap:aio:/xen/images/hvm.disk,hda,w'
sdl=1
boot="dc"
memory=512
vif=['type=ioemu,bridge=eth0']
Note that it if you want to use an ISO, just run the command:
sudo losetup `sudo losetup -f` The_ISO_file.iso
sudo xm create hvm
after the hvm install, you can do:
kernel="/usr/lib64/xen/boot/hvmloader"
builder="hvm"
device_model = "/usr/lib64/xen/bin/qemu-dm"
#disk=['tap:aio:/xen/images/hvm.disk,hda,w'
#disk=['tap:aio:/xen/images/hvm.disk,hda,w'
disk=['phy:/xen/images/hvm.disk,hda,w']
sdl=1
boot="dc"
memory=512
vif=['type=ioemu,bridge=eth0']
#stdvga=1
NOTES:
UPDATE 1: add sudo in front of `losetup -f` so not it reads `sudo losetup -f`
UPDATE 2: change phy: to tap:aio: in the cases referring to image files (in the HVM config file examples)
UPDATE 3: added note at the top to state specific to amd64, but that i386 packages are available.
somebody, anybody, comment and explain this to me in a simpler way ;)
really good interview with Ian Murdock (Debian founder) now with Sun.
should look into this to test out NET-VM stuff
I guess there is one way the IE numbers can go up...
KVM memory overcommit description
for time warner users to login to email on the web
A nice review of our Running Xen book
Digg this
windows vista also interested in Xen it seems
Book Review: Running Xen is an easy read. Easy in that it can actually be read cover to cover without becoming tired of mundane drivel. However it is not a glossy overview of Xen with its 500 plus pages covering everything from using prebuilt images that can be downloaded from jailtime.org, rpath, virtualappliances.net as well as other resources.
read more | digg story
read more | digg story
a couple that look particularly interesting ones are \"Ask Mark\" and \"Virtualization\"
really good article
This is a lot of good advice all in one spot. A must read, even just as a reminder.
A lot of things you learn with experience, but wouldn't it be better to learn them ahead of time from the experienced?
new book on xen officially released: also see runningxen.com
xen.org blog post on initial release of our Running Xen book
Linux kernel updates found here
really good security-related read.
I was always wondering why Ubuntu switched to dash instead of bash. These document explains it well.
nice article on parsing XML with Perl
It's easy to find problems with this world, easy to find faults with people, places, and things. I think instead we should spend more time focusing on the positive. You don't have too look far to find your own example of this...
I have a lot to be thankful for and I'll just highlight a few things of these, since if they are not emphasized, they should be.
God sent his son to die for my sins so that I could have eternal life. He loved me so much that he was willing to sacrifice his only son for me.
Patty and I found each other and we love each other, I am very grateful for her.
God gave me a lot of talent and interest in learning, especially in the area of technology and computing.
Finally, I'll close with some links to what has been keeping me busy lately:
my website
running xen
Xen training session at USENIX
P.S.
One of the chapters from the Xen book was posted online for free by Prentice Hall, you can find it here: http://www.informit.com/articles/article.a spx?p=1187966
I have a lot to be thankful for and I'll just highlight a few things of these, since if they are not emphasized, they should be.
God sent his son to die for my sins so that I could have eternal life. He loved me so much that he was willing to sacrifice his only son for me.
Patty and I found each other and we love each other, I am very grateful for her.
God gave me a lot of talent and interest in learning, especially in the area of technology and computing.
Finally, I'll close with some links to what has been keeping me busy lately:
my website
running xen
Xen training session at USENIX
P.S.
One of the chapters from the Xen book was posted online for free by Prentice Hall, you can find it here: http://www.informit.com/articles/article.a
sample chapter from Running Xen: A Hands-on Guide to the Art of Virtualization
