|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-users
Re: [Xen-users] Re: Running Xen 4.0.0-rc8 with Linux 2.6.32.10	paravirt_
 
 apt-get build-dep xen-3.3 appears to be important to build tools with PCI pass-through support. For boards without VT-D support it's unimportant. Just usual PV & HVM DomUs I might miss something else. So, to build xen&tools is safe to perform this build-dep on 10.04,9.10,9.04 I was wrong.
  Boris.
  --- On Wed, 4/28/10, Boris Derzhavets <bderzhavets@xxxxxxxxx> wrote:
  From: Boris Derzhavets <bderzhavets@xxxxxxxxx> Subject: Re: [Xen-users] Re: Running Xen 4.0.0-rc8 with Linux 2.6.32.10 paravirt_ops dom0 on top of Ubuntu Lucid 10.04 64bits. To: "Xen List" <xen-users@xxxxxxxxxxxxxxxxxxx>, "Martinx - ジェームズ" <thiagocmartinsc@xxxxxxxxx> Date: Wednesday, April 28, 2010, 5:17
 PM
 
 Hi Thiago,
  1. In case i would hard link /dev/xen/evtchn device with kernel ( in meantime 2.6.32.12)
  This entry to /etc/modules would become unnecessary :- echo "xen-evtchn" >> /etc/modules
  2. I will check shortly , that          # apt-get build-dep xen-3.3 (causes more then 300 MB download) is not required as well
  I believe 
  apt-get install libcurl4-openssl-dev \ 
xserver-xorg-dev \ 
python2.6-dev \ 
mercurial gitk \ 
build-essential \ 
libncurses5-dev \ 
uuid-dev gawk \ 
gettext texinfo bcc \ 
bridge-utils iasl
  would be enough to build Xen 4.0 hypervisor , tools and pvops kernel
  Kernel might be built in Debian way as you suggested (apt-get install dpkg-dev debhelper) or not. It should not be matter as well.
  If i am wrong about build Xen 4.0 Dom0 with 2.6.32.12 kernel on top of Ubuntu 10.04 Server , please advise.
  Thanks Boris. --- On Fri, 3/26/10, Martinx - ジェームズ <thiagocmartinsc@xxxxxxxxx> wrote:
  From: Martinx - ジェームズ <thiagocmartinsc@xxxxxxxxx> Subject: [Xen-users] Re: Running Xen 4.0.0-rc8 with Linux 2.6.32.10 paravirt_ops dom0 on top of Ubuntu Lucid 10.04 64bits. To: "Xen List" <xen-users@xxxxxxxxxxxxxxxxxxx> Date: Friday, March 26, 2010, 10:56 AM
 
 Hi!  My "xm info" shows: root@tcmc-dell:~# xm in host                   : tcmc-dell release                : 2.6.32.10 version                : #2 SMP Wed Mar 24 18:52:25 BRT 2010 machine                : x86_64 
nr_cpus                : 2 nr_nodes               : 1 cores_per_socket       : 2 threads_per_core       : 1 cpu_mhz                : 2992 hw_caps                : bfebfbff:20100800:00000000:00000940:0408e3fd:00000000:00000001:00000000 
virt_caps              : hvm total_memory           : 3794 free_memory            : 643 node_to_cpu            : node0:0-1 node_to_memory         : node0:643 node_to_dma32_mem      : node0:580 max_node_id            : 0 
xen_major              : 4 xen_minor              : 0 xen_extra              : .0-rc8 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          : Fri Mar 26 10:29:38 2010 +0000 21074:542211ba675c xen_commandline        :  cc_compiler            : gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu2)  
cc_compile_by          : root cc_compile_domain      : worldweb.office cc_compile_date        : Fri Mar 26 10:54:13 BRT 2010 xend_config_format     : 4 martinx@tcmc-dell:~$ glxinfo name of display: :0.0 
display: :0  screen: 0 direct rendering: Yes Cheers! Thiago 2010/3/26 Martinx - ジェームズ  <thiagocmartinsc@xxxxxxxxx>
Hi!
   This is a quick guide to help us to try the new Xen.  Also I have the composite window manager on top of the Xen! With full 3D support! 
  To achieve this I do:
  1- Install your Ubuntu Desktop 10.4 beta1 and upgrade your system; 
 1.1 - Install some packages:
   aptitude install build-essential libncurses5-dev dpkg-dev debhelper fakeroot
  2- Download and install a new kernel with dom0 pv_ops enabled:
   sudo -s  cd /usr/src 
 git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen  cd linux-2.6-xen  git pull  git reset --hard 
 git checkout -b xen/stable origin/xen/stable 
 git pull
  2.1 - Download the kernel config file attached to this mail (config-for-xen-2.6.32.10-pvops):
   Copy the config file to the kernel source dir:
   cp ~Downloads/config-for-xen-2.6.32.10-pvops /usr/src/linux-2.6-xen/.config 
  You can see the differences of my config file against the Lucid one:
   diff /boot/config-2.6.32-17-generic ~Downloads/config-for-xen-2.6.32.10-pvops | vim -
   ...both are close to each other.
  2.2 Configure, compile and install: 
   make menuconfig # Enable the dom0 support and the Xen backend/frontend/xenfs stuffs...  make  chmod g-s /usr/src -R     # To avoid the error: "dpkg-deb: control directory has bad permissions 2755 (must be >=0755 and <=0775)" 
 make dep-pkg  dpkg -i ../linux-image*2.6.32.10*.deb  depmod 2.6.32.10  update-initramfs -c -k 2.6.32.10  update-grub  echo "xen-evtchn" >> /etc/modules
   Now you can try your new kernel without Xen, if you want, it should work smootly. 
 3- Download and install the latest Xen:
   Preparing your environment:
   apt-get build-dep xen-3.3  aptitude install uuid-dev iasl texinfo
   Download and compile:
   cd /usr/src  hg clone -r 4.0.0-rc8 http://xenbits.xensource.com/xen-unstable.hg 
 cd xen-unstable.hg  make xen  make tools  make stubdom  make install-xen  make install-tools PYTHON_PREFIX_ARG=  make install-stubdom
   update-rc.d xend defaults 20 21  update-rc.d xendomains defaults 21 20 
 4- Configuring your Grub2 through the file /etc/grub.d/40_custom:
  ---- cut here ---- #!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries.  Simply type the # menu entries you want to add after this comment.  Be careful not to change 
# the 'exec tail' line above. menuentry "Xen 4.0.0-rc8 / Ubuntu 10.4 kernel 2.6.32.10 pvops" { insmod ext2 set root=(hd0,1) multiboot (hd0,1)/xen-4.0.0-rc8.gz dummy=dummy module (hd0,1)/vmlinuz-2.6.32.10 dummy=dummy root=/dev/mapper/HyperDeskVG01-tcmc--dell--lucid ro 
module (hd0,1)/initrd.img-2.6.32.10 } ---- cut here ----
   Don't forget to change your "root=" option of your Linux!
   Run update-grub again:
   update-grub
  5- Reboot into your new dom0! 
  reboot
  6- Look if your Xen is up and running
   xm list  xm info
   .. if not:
  /etc/init.d/xendomains stop /etc/init.d/xend stop /etc/init.d/xend start /etc/init.d/xendomains start 
  xm list  xm info
  -  Cheers!  Thiago 
  
 -----Inline Attachment Follows-----
 
 
  |   
       -----Inline Attachment Follows-----
 
 
  |  
  
      _______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users 
 |   
 
 | 
    | 
  
  
    |   | 
    |