Installing Xen DomU with custom kernel

posted in Hypervisor
Sunday, June 09 2013, 11:25 PM
Waqar
Waqar
Offline
0
Hi,
I am trying to modify kernel for my project. I want to test this new kernel as a DomU kernel using xen. My Dom0 is ubuntu 12.04 LTS. Help please.

(Please don't refer me to pages out there, I have been searching google for weeks, and nothing is working or understandable for me there.)
Like
Responses (2)
  • Accepted Answer

    Lars Kurth
    Lars Kurth
    Offline
    Monday, June 10 2013, 09:29 AM - #permalink
    0
    Hi,
    can you explain exactly what you are trying to do and what are you struggling with? I.e. are you looking for help making mods to a kernel version and need pointers (if so what are you trying to change). Or do you just want to drop a new kernel version into an existing Linux distro (and if so, which one)?
    Lars
    The reply is currently minimized Show
  • Accepted Answer

    Tapio
    Tapio
    Offline
    Wednesday, June 12 2013, 09:16 PM - #permalink
    0
    As far as I understand, you want to boot your guest with custom kernel? I lately compiled a set of custom kernels that works a lot better than ANY distribution default kernels in terms of I/O etc.

    Download http://myproxylists.com/xen_custom_kernels.tar.bz2

    vmlinuz-2.6.32.60-AMD (Processor family (Opteron/Athlon64/Hammer/K8)
    vmlinuz-2.6.32.60-AMD-SMP (Processor family (Opteron/Athlon64/Hammer/K8) maximum of 4 cpu's are supported

    vmlinuz-2.6.32.60-INTEL Processor family (Core 2/newer Xeon)
    vmlinuz-2.6.32.60-INTEL-SMP (Core 2/newer Xeon) maximum of 4 cpu's are supported

    NOTICE: SMP kernels does not have SMT (Hyperthreading) scheduler support.

    Here's Xen PV config that works with Xen 4.2.x using any of the above custom kernels:

    builder="generic"
    vcpus=2
    memory=2048
    name="10.100.12.6"

    #bootloader="pygrub"

    kernel="/home/servers/xen/kernels/vmlinuz-2.6.32.60-INTEL-SMP"
    #kernel="/usr/lib/xen/boot/pv-grub-x86_64.gz"

    #ramdisk=""
    extra="root=/dev/xvda1 xencons=tty1 earlyprintk=xen"

    vif = ['ip=10.100.12.6,mac=00:16:3E:2A:41:2D,bridge=br0']
    disk = [ "raw:/home/servers/xen/images/debian_7_i386_10.100.12.6.img,ioemu:xvda,w" ]
    vfb = [ 'type=vnc,vnclisten=10.100.12.5,vncdisplay=10,vncpasswd=test12345' ]

    # vnc will listen on 10.100.12.5:5910

    serial="pty"
    boot = "c"

    sdl=0
    monitor=1

    pae=1
    acpi=1
    apic=1
    localtime=0
    xen_platform_pci=1
    stdvga=1
    gfx_passthru=0

    on_poweroff="destroy"
    on_reboot="restart"
    on_crash="restart"
    The reply is currently minimized Show
Your Reply