[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] configurations for domU installation


  • To: kibirango moses <kibsmoses@xxxxxxxxx>
  • From: Bruce Edge <bruce.edge@xxxxxxxxx>
  • Date: Sat, 2 Oct 2010 10:08:14 -0700
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Sat, 02 Oct 2010 10:09:29 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=n8sSuUnfIGCbXUb614pnrI11HU1hezRw64Itmaz3dMIbPn/Hsi4U+uzqT1TAHLTp3R Mwo9rFYiTRVX/IR5W5aYrvaQ7bZba4ctvcTrFFulXTuPvYYT/laRmq6VItmhlI96i1YC yuiL2ezhmL3tgqmOLHGR4ERpSJ+n33a5nm5eY=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.