Ubuntu_domU

download ISO

mout -o loop isoFile mountPoint
cd /mountPoint/casper

pick up the vmlinuz and initrd.gz files from here.

umount moutPoint

Had problems with the live-server distro - the vmlinuz & initrd.gz files were found (as described above)...also added

extra = "console=hvc0" (below the initrd.gz entry)....yet on boot drops to initramfs shell.

Rather than banging head against this shit ... downloaded Ubuntu Server mini.iso:

  • https://help.ubuntu.com/community/Installation/MinimalCD
  • check the sha1sum.
  • then mount ISO and copy linux as vmlinuz_mini and the initrd.gz as initrd.gz_mini.
  • Modify the cfg file and boot ...JHakAAS.
  • Boots up ... connects ..destroy the existing partitions
  • xvda - (1) for boot & (2) for root
  • xvdb /home (remember to change docker preference to here...docker
  • xvdc swap
  • this shit didn't work ... after using the pv-grub to boot the fresh install ...ended up w/ the grub menu...could have tried to get the kernel from (hd0,0) ...but WTF.

so changed the cfg file to add builder = "hvm" ...to attempt HVM.

builder = "HVM"
uuid = "9306ddd5-a735-4f4a-b6c7-0113f066b9e1"  ##uuidgen
name = "ubu1804Internal_A"
# Kernel paths for install 
kernel = "../vmlinuz_mini"
ramdisk = "../initrd.gz_mini"
#### CLONE CHANGE DISK
disk = [
    '/dev/mapper/nvmep3_lvm-internal_alp_A_VG1,raw,xvda,rw',
    '/dev/mapper/sataAB_data-internal_alp_A_VG2,raw,xvdb,rw',
    '/dev/mapper/sataAB_swap-internal_alp_A_VG3,raw,xvdc,rw',
    '/media/floppy/images/ubuntu-18.04-mini-amd64.iso,raw,xvdd,devtype=cdrom,ro'
]
boot = 'dc'
##domU settings
vcpus = 2
maxvcpus = 3
memory = 8192
#### CLONE CHANGE MAC +2
vif = [ 'mac=02:4A:F8:2E:A4:42, bridge=xenbr0' ]
on_reboot = 'restart'
on_crash = 'restart'
on_poweroff = 'destroy' 
### remote GUI
stdvga = 1
videoram = 128
vnc = 1
vnclisten= '0.0.0.0'
vncunused=1
vncconsole = 1
#### CLONE CHANGE VNC port +1
vncdisplay = 23
vncpasswd = "some_very_secure_Shit"

Finish the install and then.. change the running config:

builder = "hvm"
uuid = "9306ddd5-a735-4f4a-b6c7-0113f066b9e1"  ##uuidgen
name = "ubu1804Internal_A"
##kernel = "/usr/lib/xen/boot/pv-grub-x86_64.gz"
disk = [
    '/dev/mapper/nvmep3_lvm-internal_alp_A_VG1,raw,xvda,rw',
    '/dev/mapper/sataAB_data-internal_alp_A_VG2,raw,xvdb,rw',
    '/dev/mapper/sataAB_swap-internal_alp_A_VG3,raw,xvdc,rw',
]
boot = "c"
vcpus = 2
maxvcpus = 3
memory = 8192
vif = [ 'mac=02:4A:F8:2E:A4:42, bridge=xenbr0' ]
on_reboot = 'restart'
on_crash = 'restart'
on_poweroff = 'destroy' 
stdvga = 1
videoram = 128
vnc = 1
vnclisten= '0.0.0.0'
vncunused=1
vncconsole = 1
vncdisplay = 23
vncpasswd = "some_very_secure_Shit"

Had trouble coz NO BIOS installed

apk add seabios

Boot w/ the new cfg and JHAKKAAAASS.....

ref: https://help.ubuntu.com/community/XenProposed