alpine_setup1
created the lv disk xvda, xvdb and xvdc as for fedora.
as loop back ISO is not getting mounted in DHARRA - had to mount ISO on shoonya and the scp the 2 files (kernel+initramfs). UPDATE - after upgrade to 3.3.3 the local loop back mount is working.
using alpine domU instructions + the fedora config file created a new config file. gave a specifc MAC addr and bridge to br0 (directly to BT).
on boot did setup-alpine but no install.
create
/boot on xvda1 200M ext4
/ on xvda2 10G ext4
/home on xvdb1 100G ext4
swap on xvdc1 8G.
ifconfig eth0 up and udhcpc eth0.
edit /etc/apk/repositories and add UK repo
apk update
apk upgrade
apk add e2fsprogs
mkfs.ext4 /dev/xvda1 {and the other partitions: xvda2, xvdb1}
mount / on /mnt and then mkdir /mnt/home and /mnt/boot.
mounted the 2 partitions xvda1 and xvdb1 on the /mnt/boot and /mnt/home
setup-disk -v -m sys /mnt
this creates the necessary fstab (except swap) in /mnt/etc/fstab
dd bs=440 conv=notrunc count=1 if=/usr/share/syslinux/mbr.bin of=/dev/xvda (TO DO OR NOT TO DO).
then modify the xen_config_alpineServer to remove ISO and edit the additional modules line to give root=/dev/xvda2
boot. create the menu.lst file.
THIS WORKS FOR PV BOOTING USING domU KERNEL
IN dom0:
the xl config file should read
name = "alpineServer"
disk = [
- '/dev/mapper/nvmep3_lvm-xen_VG1_P_alpineServer,raw,xvda,rw',
'/dev/mapper/sataAB_data-xen_VG2_P_alpineServer,raw,xvdb,rw',
- '/dev/mapper/sataAB_swap-xen_VG3_P_alpineServer,raw,xvdc,rw',
]
kernel = "/usr/lib/xen/boot/pv-grub-x86_64.gz"
extra = "(hd0,0)/grub/menu.lst"
vcpus = 2
maxvcpus = 3
memory = 8192
vif = [ 'type=vif, mac=04:16:3E:38:3B:A7, bridge=br0' ]
###vif = [ 'bridge=br0' ]
on_reboot = 'restart'
on_crash = 'restart'
on_poweroff = 'destroy'
In domU:
cd /boot
mkdir grub
cd grub
vi menu.lst
#/boot/grub/menu.lst
default 0
timeout 5
title alpine-xen-pv
root (hd0,0) ##this already refers to /boot - xvda1 partition...below paths are relative to this....
kernel /vmlinuz-grsec modules=sd-mod,ext4,squashfs console=hvc0 root=/dev/xvda2
initrd /initramfs-grsec
RESERVE IP FOR THIS MAC ADDRESS
Setup remote access w/ SSH and SCREEN
RUN xl command WITHOUT -c option ...so the console is not attached to dom0's shell
TO ATTACH TO CONSOLE OF RUNNING domU
xl console <id>
to detach: ^] (the telnet detach command)