Set up F15 PV DomU at Xen 4.1 (kernel 3.0.0-5-generic) Dom0 on Ubuntu Oneiric
Following bellow is the first attempt to create PV domain at stock Xen 4.1 Dom0 on top Ubuntu Oneiric (alpha2 +) running kernel 3.0.0-5-generic. One bug in system configuration was fixed after initial install. I added to /etc/modules:
xen-gntdev
xen-blkback
xen-netback
Before you begin make sure
root@boris-P5Q-E:~# ls -l /dev/xen
total 0
crw------- 1 root root 10, 55 2011-07-19 08:02 evtchn
crw------- 1 root root 10, 56 2011-07-19 08:01 gntdev
root@boris-P5Q-E:~# lsmod |grep xen
xen_evtchn 13172 1
xenfs 18311 1
xen_blkback 23177 0 [permanent]
xen_netback 27854 0 [permanent]
xen_gntdev 17676 0
root@boris-P5Q-E:~# xm info
host : boris-P5Q-E
release : 3.0.0-5-generic
version : #6-Ubuntu SMP Tue Jul 12 05:21:50 UTC 2011
machine : x86_64
nr_cpus : 2
nr_nodes : 1
cores_per_socket : 2
threads_per_core : 1
cpu_mhz : 2999
hw_caps : bfebfbff:20100800:00000000:00000940:0008e3fd:00000000:00000001:00000000
virt_caps : hvm
total_memory : 8191
free_memory : 2078
free_cpus : 0
xen_major : 4
xen_minor : 1
xen_extra : .0
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler : credit
xen_pagesize : 4096
platform_params : virt_start=0xffff800000000000
xen_changeset : unavailable
xen_commandline : placeholder
cc_compiler : gcc version 4.6.1 (Ubuntu/Linaro 4.6.0-10ubuntu2)
cc_compile_by : zulcss
cc_compile_domain : ubuntu.com
cc_compile_date : Sat Jun 4 19:41:05 UTC 2011
xend_config_format : 4
Then install keymaps on the box with stock Xen 4.1
in expected by xen location /usr/share/qemu/keymaps
root@boris-P5Q-E:/usr/share/qemu-linaro/keymaps# ls
ar de en-us fi fr-be hr it lv nl pl ru th
common de-ch es fo fr-ca hu ja mk nl-be pt sl tr
da en-gb et fr fr-ch is lt modifiers no pt-br sv
root@boris-P5Q-E:/usr/share/qemu-linaro/keymaps# cd ../../
root@boris-P5Q-E:/usr/share# mkdir qemu
root@boris-P5Q-E:/usr/share# cd qemu
*************************************************
Create directory as required by Xen
*************************************************
root@boris-P5Q-E:/usr/share/qemu# mkdir keymaps
root@boris-P5Q-E:/usr/share/qemu# cd keymaps
root@boris-P5Q-E:/usr/share/qemu/keymaps# pwd
/usr/share/qemu/keymaps
root@boris-P5Q-E:/usr/share/qemu/keymaps# cp /usr/share/qemu-linaro/keymaps/* .
Created installation profile
name="VF15"
memory=2048
disk = ['phy:/dev/sda8,xvda,w' ]
vif = [ 'bridge=br0' ]
vfb = [ 'vnc=1,vncunused=1']
kernel = "/root/vms/f15/vmlinuz"
ramdisk = "/root/vms/f15/initrd.img"
vcpus=2
on_reboot = 'restart'
on_crash = 'restart'
Vmlinuz , initrd.img downloaded from images/pxeboot folder local Apache Mirror.Started install . It requires "Tab" and good sense of wich button is current now.Mouse is a live, but actually useless. One more notice F15 (vs F14 ) goes directly to Fedora's Repos on Net. It requires 2-8 MBit/sec stable internet connection ( ADSL) install to be done in reasonable time frame.
# xm create f15.install
# vncviewer localhost:0
root@boris-P5Q-E:~# ls -l /dev/xen
total 0
crw------- 1 root root 10, 55 2011-07-19 08:02 evtchn
crw------- 1 root root 10, 56 2011-07-19 08:01 gntdev
root@boris-P5Q-E:~# lsmod |grep xen
xen_evtchn 13172 1
xenfs 18311 1
xen_blkback 23177 0 [permanent]
xen_netback 27854 0 [permanent]
xen_gntdev 17676 0
root@boris-P5Q-E:~# xm info
host : boris-P5Q-E
release : 3.0.0-5-generic
version : #6-Ubuntu SMP Tue Jul 12 05:21:50 UTC 2011
machine : x86_64
nr_cpus : 2
nr_nodes : 1
cores_per_socket : 2
threads_per_core : 1
cpu_mhz : 2999
hw_caps : bfebfbff:20100800:00000000:00000940:0008e3fd:00000000:00000001:00000000
virt_caps : hvm
total_memory : 8191
free_memory : 2078
free_cpus : 0
xen_major : 4
xen_minor : 1
xen_extra : .0
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler : credit
xen_pagesize : 4096
platform_params : virt_start=0xffff800000000000
xen_changeset : unavailable
xen_commandline : placeholder
cc_compiler : gcc version 4.6.1 (Ubuntu/Linaro 4.6.0-10ubuntu2)
cc_compile_by : zulcss
cc_compile_domain : ubuntu.com
cc_compile_date : Sat Jun 4 19:41:05 UTC 2011
xend_config_format : 4