I am new

in

Hi dfn, I am new in Xen.

I have tried all the options but still no luck with it.

It would be more helpfull to me if you could provide me the steps by steps creation of domU on Centos-5.2...

New, too...
Sorry for the noob ?, but I also can't seem to figure out how to use these great images.

First I tried to install using the img I downloaded from Stacklet as the location:


[me@vm_server ~]$ sudo virt-install --paravirt --name=centos_5.4_002 --ram=512
--vcpus=1 --file=/var/lib/xen/images/centos_5.4_002 --file-size=10 --nographics
--network=network:default --location=/home/me/orig-images/fedora.12.x86-64.img
Password:
ERROR Error creating cdrom disk: Checking installer location failed:
Could not find media '/home/me/orig-images/fedora.12.x86-64.img'.

But it is at that location:

[me@vm_server orig_images]$ ls -lh /home/me/orig_images
total 2.2G
-rw-r--r-- 1 root root 9.8G Feb 1 16:45 centos.5-4.x86-64.gnome.img
-rw-r--r-- 1 root root 187 Feb 1 16:45 centos.5-4.x86-64.gnome.xen3.pygrub.cfg
-rw-r--r-- 1 root root 9.8G Feb 1 16:45 fedora.12.x86-64.img
-rw-r--r-- 1 root root 180 Feb 1 16:45 fedora.12.x86-64.xen3.pygrub.cfg

Then I mounted the .img at /mnt/tmp:

sudo mount -o loop /home/me/orig_images/fedora.12.x86-64.img /mnt/tmp/

and tried the same command, but with --location=/mnt/tmp
and with --location=/mnt/tmp/boot
Both times I got the python stack trace and it said:
Could not find an installable distribution at '/mnt/tmp/boot'
or
Could not find an installable distribution at '/mnt/tmp'

I did an ls of /mnt/tmp, and there was a very linux-looking filesystem there:

[me@vm_server orig_images]$ ls -lh /mnt/tmp
total 100K
dr-xr-xr-x 2 root root 4.0K Nov 24 16:16 bin
dr-xr-xr-x 4 root root 4.0K Nov 24 16:16 boot
drwxr-xr-x 2 root root 4.0K Aug 25 11:06 dev
drwxr-xr-x 50 root root 4.0K Nov 24 16:57 etc
drwxr-xr-x 2 root root 4.0K Aug 25 11:06 home
dr-xr-xr-x 8 root root 4.0K Nov 24 16:16 lib
dr-xr-xr-x 7 root root 12K Nov 24 16:16 lib64
drwx------ 2 root root 16K Nov 24 16:10 lost+found
drwxr-xr-x 2 root root 4.0K Aug 25 11:06 media
drwxr-xr-x 2 root root 4.0K Aug 25 11:06 mnt
drwxr-xr-x 2 root root 4.0K Aug 25 11:06 opt
drwxr-xr-x 2 root root 4.0K Nov 24 16:10 proc
dr-xr-x--- 2 root root 4.0K Aug 25 11:06 root
dr-xr-xr-x 2 root root 4.0K Nov 24 16:16 sbin
drwxr-xr-x 2 root root 4.0K Aug 25 11:06 selinux
drwxr-xr-x 2 root root 4.0K Aug 25 11:06 srv
drwxr-xr-x 2 root root 4.0K Aug 25 11:06 sys
drwxrwxrwt 2 root root 4.0K Nov 24 16:57 tmp
drwxr-xr-x 14 root root 4.0K Nov 24 16:13 usr
drwxr-xr-x 17 root root 4.0K Nov 24 16:13 var

The dir sizes seem very small -- could that be the problem?
Any hints for a noob on how to use the images?

Thanks again!


© 2010 Stacklet LLC - Privacy