Saturday, July 23, 2011


Build Xen 4.1.1 on Ubuntu 11.10


View PPA :-

Xen 4.1.1 on Ubuntu 11.10

Description

Build Xen 4.1.1 with patch http://xenbits.xen.org/hg/xen-4.1-testing.hg/rev/1976adbf2b80 (changeset 23104:1976adbf2b80 ). CS upstream-23044:d4ca456c0c25 removed from series. I understand that to remove it on Ubuntu i have to revert it explicitly. However, for now upstream-23044:d4ca456c0c25 seems to be harmless and not connected to the core issue (hvmloader broken by GCC 4.6) fixed by changeset 23104:1976adbf2b80 . The rest of patchque is the same.
Build is based on https://launchpad.net/ubuntu/+source/xen/4.1.1-1ubuntu1

Monday, July 18, 2011


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

































Created runtime profile :


name="VF15"
memory=2048
disk = ['phy:/dev/sda8,xvda,w' ]
vif = [ 'bridge=br0' ]
vfb = [ 'vnc=1,vncunused=1']
bootloader = "/usr/lib/xen-4.1/bin/pygrub"
on_reboot = 'restart'
on_crash = 'restart'


# xm create f15.pyrun
# vncviewer localhost:0












During runtime :-
# virsh dumpxml VF15 > VF15.xml
Then shutdown domain and removed uuid line from XML-profile
# virsh define VF15.xml








Sunday, July 10, 2011


Implementation spice on Ubuntu 11.10 KVM Server



All packages required are already in PPA "Spice-Gtk-0.6 on Ubuntu 11.04 and Ubuntu 11.10".Spice-gtk-0.6 has been done for Oneiric as two builds. First one with python and gobject-introspection enabled (GTK2). Second one --with-introspection and --with-gtk="3.0" (GTK3).This builds actually are the core builds in PPA, which bring RH's technologies to Ubuntu 11.10. Patched virt-manager and virtinst also support spicevmc channel.View :-
Spice-Gtk-0.6 on Ubuntu 11.04 and Ubuntu 11.10
The only one qemu-kvm package should be rebuilt (spice enabled) as soon as stable qemu-kvm 0.15 git tree will be branched.