LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Installing a xen virtual machine from CD media. (http://www.linuxquestions.org/questions/linux-general-1/installing-a-xen-virtual-machine-from-cd-media-550399/)

ChrisScott 05-01-2007 10:55 AM

Installing a xen virtual machine from CD media.
 
Hi all,

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:

Code:

cat suse.img

kernel = "/boot/vmlinuz-2.6.16-xen"
ramdisk = "/boot/initrd.img-2.6.16.33-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'
#cdrom='/dev/hdc'
ip = "141.89.179.79"
netmask = "255.255.240.0"
gateway = "141.89.179.254"
hostmane = "gambit.pw.picdar.co.uk"
root = "/dev/hda1 ro"
extra = "4"

with blank.img the result of

Code:

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:
Code:

Done.
Begin: Running /scripts/init-premount ...
fan: no version for "struct_module" found: kernel tainted.
ata_id[803]: main: HDIO_GET_IDENTITY failed for '/dev/.tmp-22-0'
Done.
Begin: Mounting root file system... ...
Begin: Running /scripts/local-top ...
Done.
Begin: Running /scripts/local-premount ...
Done.
mount: Mounting /dev/hda1 on /root failed: No such device
Begin: Running /scripts/local-bottom ...
Done.
Done.
Begin: Running /scripts/init-bottom ...
mount: Mounting /root/dev on /dev/.static/dev failed: No such file or directory
Done.
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?


All times are GMT -5. The time now is 01:19 AM.