Thursday, April 8, 2010

Virtualization with Debian

To create image
xen-create-image --hostname=vignettes --size=150GB --swap=4096Mb --ip=172.21.100.151 --memory=2048 --arch=amd64 --role=udev --force --install-method=debootstrap --install-source=/root/inscd/

xen-create-image --hostname=education --size=114GB --swap=6144Mb --ip=172.21.100.152 --memory=3072 --arch=amd64 --role=udev --force --install-method=debootstrap --install-source=/root/inscd/

xen-create-image --hostname=social --size=98GB --swap=2048Mb --ip=172.21.100.153 --memory=1024 --arch=amd64 --role=udev --force --install-method=debootstrap --install-source=/root/inscd/



xen-create-image --hostname=ocw --size=52GB --swap=2048Mb --ip=172.21.100.154 --memory=1024 --arch=amd64 --role=udev --force --install-method=debootstrap --install-source=/root/inscd/


xm console
You will see messages

xm shutdown vignettes

vignettes:~# exit
logout

Debian GNU/Linux 5.0 vignettes hvc0

INIT: Switching to runlevel: 0
INIT: Sending processes the TERM signal
Saving the system clock.
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Stopping enhanced syslogd: rsyslogd.
Asking all remaining processes to terminate...done.
All processes ended within 1 seconds....done.
Deconfiguring network interfaces...done.
Cleaning up ifupdown....
Deactivating swap...done.
Will now halt.
[ 310.169142] xen console-0: xenbus_dev_shutdown: device/console/0: Initialising != Connected, skipping
[ 310.490258] System halted.

You can confirm if it has stopped.





Following error messages were encountered while installing vim

Since release 150, udev requires that support for the CONFIG_SYSFS_DEPRECATED
feature is disabled in the running kernel.

Please upgrade your kernel before or while upgrading udev.

AT YOUR OWN RISK, you can force the installation of this version of udev
WHICH DOES NOT WORK WITH YOUR RUNNING KERNEL AND WILL BREAK YOUR SYSTEM
AT THE NEXT REBOOT by creating the /etc/udev/kernel-upgrade file.
There is always a safer way to upgrade, do not try this unless you
understand what you are doing!

So a clean sources.list file is needed.



Common errors
Before I
xm create or path to domain

I mixed domain
http://news.gmane.org/gmane.comp.emulators.xen.user/cutoff=56544
http://bit.ly/9o1w7z
Error 2
You appear to have a missing vif-script, or network-script, in the
Xen configuration file /etc/xen/xend-config.sxp
Please fix this and restart Xend, or your guests will not be able
to use any networking!


An ebook
http://xen.markmail.org/message/6bs47e45aprzbk5x?q=A+Hands-On+Guide+to+the+Art+of+Virtualization

No comments: