WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] configurations for domU installation

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] configurations for domU installation
From: kibirango moses <kibsmoses@xxxxxxxxx>
Date: Sat, 2 Oct 2010 12:03:05 +0300
Delivery-date: Sat, 02 Oct 2010 02:04:34 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=fAgrlbevRAmM8yxIvckNJcwfphlBsSuw934CMUz+GMw=; b=xLq/f61p8gNszlN6xDrzkc89mRTfPyOQ9uhMeqHFSYZFt6SEcQvRZxgX1r7fkOOJwE M+rEcQErIQXplJeuI4sTY0sAzfOECQoQ9A1oxh4r5unEpYxovCSaMTlrpUJk59zO72a1 e0nlArCKRqCtRQmFskclB9gkRlp5lxuec4eQI=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Fpk32MBLfdNgl7wjYUB6LbPJakz6Yvjblkq43zhm70Hi/BR6ms9qYmJinmcJ6Wj+MX WjIFNzc2vVciBlB5fM/6lZ2pxrA1YYTYabIV2bKvz+hVpEfvojY6ji7j/gAdp0D0Krag ZJpyI60ftTABFdX3wAweew8dYbd+GTxwi/FAw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

Hullo Everybody

I am trying to install slackware 13 as a guest OS on  VM and i am using Citrix Xen platform  and i am failing below are my steps

[root@virtualintranet /]# fdisk -l

Disk /dev/sda: 1998.2 GB, 1998233534464 bytes

255 heads, 63 sectors/track, 242938 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1         523     4194304   83  Linux

Partition 1 does not end on cylinder boundary.

/dev/sda2             523        1045     4194304   83  Linux

/dev/sda3            1045      242938  1943010845+  8e  Linux LVM

[root@virtualintranet local]# xe sr-create host-uuid=<>content-type=user name-label="Local SR" shared=false device-config:device=/dev/sda3 type=lvm

[root@virtualintranet local]# xe vm-install template="Other install media" new-name-label=PVG1

vm-uuid=xxxx

 [root@virtualintranet local]# xe vm-param-set uuid=xxxx  PV-bootloader="pygrub"

[root@virtualintranet local]# xe vm-param-set uuid=xxxx PV-args="console=tty0 xencons=tty

[root@virtualintranet local]# xe network-list

[root@virtualintranet local]# xe vif-create network-uuid=<> vm-uuid=<> mac=random device=0

I renamed the Volume group to XenVG

[root@virtualintranet slack]# lvcreate –L 50G root –n XenVG

[root@virtualintranet slack]# mkfs –t ext3 /dev/XenVG/root

[root@virtualintranet slack]# mount /dev/XenVg/root /xen

[root@virtualintranet slack]# lvcreate –L 1G swap –n XenVG

[root@virtualintranet slack]# mkswap /dev/XenVG/swap

[root@virtualintranet slack]# mount /dev/XenVg/root /xen

 

I then edited the /etc/fstab

[root@virtualintranet ]# mkdir  xen

[root@virtualintranet xen ]# mkdir  images

[root@virtualintranet xen ]# mkdir  domU

[root@virtualintranet xen]# mount /dev/XenVg/root /xen

The file ‘slackware.13-0.x86.20090904.img.tar.bz2’ is in the xen directory

[root@virtualintranet images]# bunzip2 slackware.13-0.x86.20090904.img.tar.bz2

 [root@virtualintranet images ]# tar xvf slackware.13-0.x86.20090904.img.tar

slackware.13-0.x86.img

slackware.13-0.x86.xen3.cfg

slackware.13-0.x86.xen3.pygrub.cfg

[root@virtualintranet sl]#

Edit the /etc/fstab file

[root@virtualintranet /]# cat etc/fstab

LABEL=root-uovktnyh    /         ext3     defaults   1  1

/var/swap/swap.001          swap      swap   defaults   0  0

/dev/XenVG/swap          swap      swap   defaults   0  0

none        /dev/pts  devpts defaults   0  0

none        /dev/shm  tmpfs  defaults   0  0

none        /proc     proc   defaults   0  0

none        /sys      sysfs  defaults   0  0

/dev/XenVG/root    /slack        ext3     defaults   1  2

/opt/xensource/packages/iso/XenCenter.iso   /var/xen/xc-install   iso9660   loop,ro   0  0

Fetaure out the /etc/mtab file

[root@virtualintranet /]# cat etc/mtab

/dev/sda1 / ext3 rw 0 0

none /proc proc rw 0 0

none /sys sysfs rw 0 0

none /dev/pts devpts rw 0 0

none /dev/shm tmpfs rw 0 0

/opt/xensource/packages/iso/XenCenter.iso /var/xen/xc-install iso9660 ro,loop=/dev/loop0 0 0

none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0

sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0

/dev/mapper/XenVG-root /slack ext3 rw 0 0

/xen/slackware.13-0.x86.img /slack/home/mkk/xen-mounts/slackware_domU ext3 rw,loop=/dev/loop1 0 0

Output of the df- command:

[root@virtualintranet /]# df -h

 Filesystem            Size     Used      Avail     Use%     Mounted on

/dev/sda1             4.0G    2.3G       1.6G       60%                        /

none                  376M         0             376M       0%

/dev/shm/opt/xensource/packages/iso/XenCenter.iso

                       44M   44M     0 100% /var/xen/xc-install

/dev/mapper/XenVG-root

                       79G   20G   56G  27%


[root@virtualintranet xen]# mount -o loop /xen/images/ slackware.img  /xen/domU

[root@virtualintranet /]# cp -dpR /lib/modules/  /xen/domU/

[root@virtualintranet /]#  ls /boot/{init*,vm*}
[root@virtualintranet ]# ls /boot/{init*,vm*}

/boot/initrd-2.6.27.42-0.1.1.xs0.5.0.47.111160kdump.img /boot/vmlinuz-2.6.27.42-0.1.1.xs0.5.0.47.111160kdump  /boot/vmlinuz-2.6-xen

/boot/initrd-2.6.27.42-0.1.1.xs0.5.0.47.111160xen.img    /boot/vmlinuz-2.6.27.42-0.1.1.xs0.5.0.47.111160xen    /boot/vmlinuz-kdump

/boot/initrd-2.6-xen.img                                 /boot/vmlinuz-2.6.34.4

/boot/vmlinuz                                            /boot/vmlinuz-2.6.34.4.old
[root@virtualintranet ]# vi /etc/domu/
kernel = “/boot/vmlinuz-2.6.27.42-0.1.1.xs0.5.0.47.111160xen
ramdisk = “
/boot/initrd-2.6-xen.img
memory = 512
name = “slack

vif = [ '' ]
dhcp = “dhcp”
disk = ['phy:/devXenVG/root,sda1,w', 'phy:dev/XenvG/swap,sda1,w']
root = “/dev/Xenvg/root  ro”


Modifying /etc/fstab for the Guest System
# vi /xen/domU/fstab
/dev/xenVG/root        /                      ext3     defaults,errors=remount-ro          0 0
/dev/XenVG/swap       none                 swap    sw                                             0 0
devpts              /dev/pts            devpts  gid=5,mode=620                        0 0
proc                  /proc                 proc      defaults                                     0 0
Booting the Guest OS
[root@virtualintranet xen ]# umount  domU/

[root@virtualintranet / ]# umount  xen/
# xe vm-start uuid= xxxx

[root@virtualintranet /]# xe vm-start uuid=xxxx

Caller not allowed to perform this operation.

message: illegal kernel path


How can I fix these Xen Guest Boot Problems and what other options can I have since slackware 13 does not support pygrub and grub2 .


Thanx


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>