On Sat, Oct 2, 2010 at 2:03 AM, kibirango moses <kibsmoses@xxxxxxxxx> wrote:
>
> 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 .
>
You could use HVM mode for the ISO install, then switch to pv mode
once it's installed.
In HVM mode, you don't specify the kernel, something like this:
sdl = 0
vnc = 1
serial = 'pty'
usbdevice = 'tablet'
on_poweroff = 'destroy'
on_reboot = 'destroy'
on_crash = 'destroy'
bootloader = '/usr/bin/pygrub'
kernel = '/usr/lib/xen/boot/hvmloader'
builder = 'hvm'
boot = 'dc'
disk = [ 'phy:system/domU_0,xvda:sda,w',
'file:/opt/xensource/packages/iso/XenCenter.iso,xvdc:cdrom,r' ]
Once it starts open a vnc connection to the dom0 and you'll be able to
finish the install.
Then, reconfigure the cfg file more like what you had to boot in pv mode.
-Bruce
> Thanx
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|