I've been experimenting with xen virtualisation. I've followed some examples using existing images and had moderate success: virtualising Ubuntu from an Ubuntu box works perfectly. SuSE, on the other hand, when virtualised from a preprepared image has serious problems. One such issue is a mixed up characterset causing the stdout to be displayed in unreadable symbols.
Is it possible to use a blank image and install a system to it from CD. I have tried a few methods without any joy, along these lines:
kernel = "/boot/vmlinuz-2.6.16-xen"
ramdisk = "/boot/initrd.img-184.108.40.206-xen"
memory = 132
name = "SuSE"
vif = ['bridge=xenbr0']
disk = [ 'file:/opt/images/blank.img,ioemu:hda1,w' , 'file:/tmp/install-image.iso,hdc:cdrom,r' ]
#boot = 'cdrom'
ip = "220.127.116.11"
netmask = "255.255.240.0"
gateway = "18.104.22.168"
hostmane = "gambit.pw.picdar.co.uk"
root = "/dev/hda1 ro"
extra = "4"
with blank.img the result of
dd if=/dev/zero of=/opt/images/blank.img ibs=1024 count=5000000
and an openSuSE 10.0 cd image on /tmp/install-image.iso
the end of the console output when attempting to run this is:
Begin: Running /scripts/init-premount ...
fan: no version for "struct_module" found: kernel tainted.
ata_id: main: HDIO_GET_IDENTITY failed for '/dev/.tmp-22-0'
Begin: Mounting root file system... ...
Begin: Running /scripts/local-top ...
Begin: Running /scripts/local-premount ...
mount: Mounting /dev/hda1 on /root failed: No such device
Begin: Running /scripts/local-bottom ...
Begin: Running /scripts/init-bottom ...
mount: Mounting /root/dev on /dev/.static/dev failed: No such file or directory
mount: Mounting /sys on /root/sys failed: No such file or directory
mount: Mounting /proc on /root/proc failed: No such file or directory
Target filesystem doesn't have /sbin/init
BusyBox v1.01 (Debian 1:1.01-4ubuntu3) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
/bin/sh: can't access tty; job control turned off
I have tried various other ways (including using the hosts CD drive, /dev/hdc, as virtual machines cdrom).
Is this possible?
Any ideas how to accomplish it?