Comments on Paravirtualization With Xen 4.0 On Debian Squeeze (AMD64)
Paravirtualization With Xen 4.0 On Debian Squeeze (AMD64) This tutorial provides step-by-step instructions on how to install Xen 4.0 on a Debian Squeeze (6.0) system (AMD64) and create paravirtualized guests. Xen lets you create guest operating systems (*nix operating systems like Linux and FreeBSD), so called "virtual machines" or domUs, under a host operating system (dom0). Using Xen you can separate your applications into different virtual machines that are totally independent from each other (e.g. a virtual machine for a mail server, a virtual machine for a high-traffic web site, another virtual machine that serves your customers' web sites, a virtual machine for DNS, etc.), but still use the same hardware. This saves money, and what is even more important, it's more secure. If the virtual machine of your DNS server gets hacked, it has no effect on your other virtual machines. Plus, you can move virtual machines from one Xen server to the next one.
11 Comment(s)
Comments
Great HowTo, Falko!
Worked fine for me!! Do you have an HowTo for the above configuration in order to install Windows as HVM?
When using the xm create command i've had this error: Error: 'NoneType' object has no attribute 'rfind'
using apt-get install xen-qemu-dm-4.0 solved this issue
root@ziomario:/home/mario# xm create /etc/xen/xen1.example.com.cfg
Using config file "/etc/xen/xen1.example.com.cfg".
Error: (1, 'Internal error', 'panic: xc_dom_boot.c:79: launch_vm: SETVCPUCONTEXT failed (rc=-1)')
root@ziomario:/home/mario# nano /etc/xen/xen1.example.com.cfg
#bootloader = '/usr/lib/xen-default/bin/pygrub'
## Disk device(s).#root = '/dev/sda2 ro'disk = [ 'file:/home/xen/domains/xen1.example.com/disk.img,sda2,w', 'file:/home/xen/domains/xen1.example.com/swap.img,sda1,w', ]## Physical volumes#
# Hostname
#
name = 'xen1.example.com'
# Networking
#
vif = [ 'ip=192.168.0.101,mac=00' ]
# Behaviour
#
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
I do think that network-bridge and vif-bridge (actually all network-* and vif-*) are not supported by Debian Xen. You are supposed to set up the network in /etc/network/interfaces as usuall.
HI
is this possible to install lucid or hardy
through PV. As you use maveric.
Best Regards
Hi Falko
I followed your instruction on: https://www.howtoforge.com/paravirtualization-with-xen-4.0-on-debian-squeeze-amd64. I set up the guest as image. At the point to start the VM wit <font="Courier New">xm console</font> the VM boots up but hangs on:
<code>Gave up waiting for root device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Check root= (did the system wait for the right device?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/xvda2 does not exist. Dropping to a shell!
</code>
Here ist the content of the <font="Courier New">xen1.hostname.local.cfg</font>:
<code>kernel = '/boot/vmlinuz-2.6.32-5-xen-amd64'
ramdisk = '/boot/initrd.img-2.6.32-5-xen-amd64'
vcpus = '1'
memory = '1024'
root = '/dev/xvda2 ro'
disk = [ 'file:/usr/local/xen/domains/lweb.eas-4.name/disk.img,xvda2,w', 'file:/usr/local/xen/domains/lweb.eas-4.name/swap.img,xvda1,w', ]
name = 'xen1.hostname.local'
vif = [ 'ip=192.168.0.1,mac=01:12:4E:DD:EE:86' ]
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'</code>
Any suggestions how to solve my problem. I browsed the web, but I did not find any solutions.
Thank you for your help.
Kind regards, Laszlo
IN /etc/xen-tools/xen-tools.conf
I followed all the steps n successfully created vm.
At the end while asking about :
Creating Xen configuration file
Done
Setting up root password
Enter new UNIX password:
Retype new UNIX password:
passwd: Authentication token manipulation error
passwd: password unchanged
All done
i made a mistake over there my passwrd mismatch.
so when i start vm its asking about username and password.
so how i can log in to system? which username and password i should provide?
thx
xen-create-image --hostname=xen1.example.com --size=4Gb --swap=256Mb --ip=192.168.0.101 --memory=256Mb --arch=amd64 --role=udev --scsi --dist maverick --mirror=http://archive.ubuntu.com/ubuntu
this will install maverick but how can i install other distos like natty or oneiric?
and is there any way to define path of iso stored on my hard drive to install OS?
Ganeti is a tool developped by google providing Xen with HA features like failover, live vm migration, secondary instance, ... Ganeti is quite tricky to install because of the amount of configuration needed to transform a standard debian squeeze to a ganeto node. The sitehttp://www.xenclustering.com provides some guidelines and a script for automated ganeti node initialization.