Boris Derzhavets
2009-May-27 20:05 UTC
[Xen-users] Xen 3.4 Hackery on Ubuntu 9.04 (aka Jaunty) Server
>Maybe it is obsolete??? Who knows...However, I found ubuntu-server-xenand installed >that instead. However, I installed, as far as I can say, all xen packages and now I''m >looking for some sort of a HowTo. Haven''t found one yet for Ubuntu Server 9.04 aka >Jaunty. Shouldn''t I need a XEN-Kernel? http://bderzhavets.blogspot.com/2009/05/deployment-xen-3.html> As soon as "xm info" is running without problems. You have successfully installed and > started Xen.That''s a mistake. Have ever get a messages: 1. "Device 0 (vif) cannot be connected. Hotplug scripts not working" 2. "XENBUS timed out waiting for vbd" ? Boris. --- On Wed, 5/27/09, Fabian Zimmermann <xen-users@z-technologies.de> wrote: From: Fabian Zimmermann <xen-users@z-technologies.de> Subject: Re: [Xen-users] my first XEN Installation I need some advice To: "Niels Jende" <mylists1@web.de> Cc: xen-users@lists.xensource.com Date: Wednesday, May 27, 2009, 10:45 AM Hi Niels Jende,> well, I gave the ubuntu-default-xen a try, but this package couldn''t get find. Maybe it is obsolete??? Who knows...However, I found ubuntu-server-xen and installed that instead. However, I installed, as far as I can say, all xen packages and now I''m looking for some sort of a HowTo. Haven''t found one yet for Ubuntu Server 9.04 aka Jaunty. Shouldn''t I need a XEN-Kernel?Yes, you need a "-xen"-kernel at least in Dom0. I personally use Debian, thats why I don''t know how the packages are called in Ubuntu. In Debian you have the choice: - Install "linux-image-2.6-xen-amd64/i686" and the suggested xen-hypervisor. or: "Nichts ist besser als Handarbeit" As soon as "xm info" is running without problems. You have successfully installed and started Xen. FYI: https://help.ubuntu.com/community/Xen Fabian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fabian Zimmermann
2009-May-28 06:28 UTC
[Xen-users] Re: Xen 3.4 Hackery on Ubuntu 9.04 (aka Jaunty) Server
Hi,> > > As soon as "xm info" is running without problems. You have > successfully installed and > > started Xen. > > That''s a mistake. > Have ever get a messages: > 1. "Device 0 (vif) cannot be connected. Hotplug scripts not working" > 2. "XENBUS timed out waiting for vbd" ? > > Boris. >Right, better would be: As soon as "xm info" is returning useful information. You successfully started your Xen-Dom0-Kernel. Fabian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Boris Derzhavets
2009-May-28 06:44 UTC
[Xen-users] Re: Xen 3.4 Hackery on Ubuntu 9.04 (aka Jaunty) Server
Make Xen 3.4 biuld with python 2.6 (default) on Ubuntu 9.04 Server:- Install all packages required by Xen build:- # cd /usr/src # hg clone http://xenbits.xensource.com/xen-3.4-testing.hg # cd xen-3.4-testing.hg Set in Config.mk PYTHON = python PYTHON_PREFIX_ARG # make install-xen # make install-tools # make install-stubdom Install any xenified or pvops kernel. Dom0 kernel loads with no problems under Xen 3.4 Hypervisor. Xend starts fine. # xm info # brctl show # ifconfig all looks good. Then try create DomU. See what happens. Boris. --- On Thu, 5/28/09, Fabian Zimmermann <xen-users@z-technologies.de> wrote: From: Fabian Zimmermann <xen-users@z-technologies.de> Subject: Re: Xen 3.4 Hackery on Ubuntu 9.04 (aka Jaunty) Server To: "Boris Derzhavets" <bderzhavets@yahoo.com> Cc: "Niels Jende" <mylists1@web.de>, xen-users@lists.xensource.com Date: Thursday, May 28, 2009, 2:28 AM Hi,> > > As soon as "xm info" is running without problems. You have > successfully installed and > > started Xen. > > That''s a mistake. > Have ever get a messages: > 1. "Device 0 (vif) cannot be connected. Hotplug scripts not working" > 2. "XENBUS timed out waiting for vbd" ? > > Boris. >Right, better would be: Fabian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Niels Jende
2009-May-28 09:31 UTC
[Xen-users] Re: Xen 3.4 Hackery on Ubuntu 9.04 (aka Jaunty) Server
Hi Boris, thanks for the HowTo for Jaunty, but for some reasons I am not able to run through.> Make Xen 3.4 biuld with python 2.6 (default) on Ubuntu 9.04 Server:- > Install all packages required by Xen build:- > > # cd /usr/src > # hg clone http://xenbits.xensource.com/xen-3.4-testing.hg > # cd xen-3.4-testing.hg > Set in Config.mk > PYTHON = python > PYTHON_PREFIX_ARG > # make install-xenThe make install-xen routine ran fine, but> # make install-toolscame up with an error. Here is what I got as an output: /bin/sh: git: not found make[1]: ***[ioemu-dir-find] Error 127 make[1]: Leaving Directory ''usr/src/xen-3.4-testing.hg/tools make: *** [tools/ioemu-dir] Error 2 Have you got an idea of what went wrong? Or maybe even a solution? Thanks for your help! Greets Niels ____________________________________________________________ Text: GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT! Jetzt freischalten unter http://produkte.web.de/go/04/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Christian Tramnitz
2009-May-28 10:08 UTC
[Xen-users] Re: Xen 3.4 Hackery on Ubuntu 9.04 (aka Jaunty) Server
Niels Jende wrote:> The make install-xen routine ran fine, but > >> # make install-tools > > came up with an error. > Here is what I got as an output: > /bin/sh: git: not found > make[1]: ***[ioemu-dir-find] Error 127 > make[1]: Leaving Directory ''usr/src/xen-3.4-testing.hg/tools > make: *** [tools/ioemu-dir] Error 2 > > Have you got an idea of what went wrong? Or maybe even a solution?make tools (or make install-tools if nor invoking it before) will fetch the latest ioemu tree via git, so you need to have git installed. Best regards, Christian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Boris Derzhavets
2009-May-28 10:32 UTC
Re: [Xen-users] Re: Xen 3.4 Hackery on Ubuntu 9.04 (aka Jaunty) Server
The key trick is to be able :- # make world # make install # make uninstall Remove Hypervisor and tools been built with 2.6 # make uninstall This actions will result Xen packages to be installed in :- /usr/local/lib/python2.6/dist-packages/xen# ls -l total 36 -rw-r--r-- 1 root staff 2 2009-05-20 17:03 __init__.py -rw-r--r-- 1 root staff 140 2009-05-20 17:20 __init__.pyc drwxr-sr-x 2 root staff 4096 2009-05-20 17:20 lowlevel drwxr-sr-x 2 root staff 4096 2009-05-20 17:20 sv drwxr-sr-x 3 root staff 4096 2009-05-20 17:20 util drwxr-sr-x 2 root staff 4096 2009-05-20 17:20 web drwxr-sr-x 5 root staff 4096 2009-05-20 17:20 xend drwxr-sr-x 3 root staff 4096 2009-05-20 17:20 xm drwxr-sr-x 2 root staff 4096 2009-05-20 17:20 xsview Yes , it''s a hack rather then a legal way manage. Due to real Xen 3.4 build is supposed to be done on Ubuntu 8.10 Server (64-bit) with python2.5 . The default path for 2.6 is /usr/local/lib/python2.6/dist-packages The default path for 2.5 is /usr/lib/python2.5/site-packages. Regular Xen build puts on top of /usr/bin/pygrub:- #!/usr/bin/python i failed to switch this link to 2.5 and had to simulate Xen support for /usr/bin/pygrub with python 2.6 via fake install. Attempt to build Xen 3.4 with 2.6 seems to complete fine. Xen Host looks nice , and "xm info" in particular. However, hotplug scripts refuse to work at least through my experience. What means no DomUs can be created and loaded. Boris. BTW On F11(preview) with python 2.6 everything worked straight away. I don''t remember details now, will check in a week :) --- On Thu, 5/28/09, Niels Jende <mylists1@web.de> wrote: From: Niels Jende <mylists1@web.de> Subject: [Xen-users] Re: Xen 3.4 Hackery on Ubuntu 9.04 (aka Jaunty) Server To: xen-users@lists.xensource.com Date: Thursday, May 28, 2009, 5:31 AM Hi Boris, thanks for the HowTo for Jaunty, but for some reasons I am not able to run through.> Make Xen 3.4 biuld with python 2.6 (default) on Ubuntu 9.04 Server:- > Install all packages required by Xen build:- > > # cd /usr/src > # hg clone http://xenbits.xensource.com/xen-3.4-testing.hg > # cd xen-3.4-testing.hg > Set in Config.mk > PYTHON = python > PYTHON_PREFIX_ARG > # make install-xenThe make install-xen routine ran fine, but> # make install-toolscame up with an error. Here is what I got as an output: /bin/sh: git: not found make[1]: ***[ioemu-dir-find] Error 127 make[1]: Leaving Directory ''usr/src/xen-3.4-testing.hg/tools make: *** [tools/ioemu-dir] Error 2 Have you got an idea of what went wrong? Or maybe even a solution? Thanks for your help! Greets Niels ____________________________________________________________ Text: GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT! Jetzt freischalten unter http://produkte.web.de/go/04/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Christian Tramnitz
2009-May-28 11:12 UTC
[Xen-users] Re: Xen 3.4 Hackery on Ubuntu 9.04 (aka Jaunty) Server
Boris Derzhavets wrote: [...]> Remove Hypervisor and tools been built with 2.6 > # make uninstall[...] Be more careful with what you are suggesting! make uninstall will not only remove (own) xen and kernel builds, but virtually everything that might be related to any xen version including other kernels and their modules (if they happen to have -xen string) and will also move existing configurations away! Best regards, Christian This is what will be done by make uninstall: uninstall: [ -d $(D)/etc/xen ] && mv -f $(D)/etc/xen $(D)/etc/xen.old-`date +%s` || true rm -rf $(D)/etc/init.d/xend* rm -rf $(D)/etc/hotplug/xen-backend.agent rm -f $(D)/etc/udev/rules.d/xen-backend.rules rm -f $(D)/etc/udev/xen-backend.rules rm -f $(D)/etc/udev/rules.d/xend.rules rm -f $(D)/etc/udev/xend.rules rm -f $(D)/etc/sysconfig/xendomains rm -rf $(D)/var/run/xen* $(D)/var/lib/xen* rm -rf $(D)/boot/*xen* rm -rf $(D)/lib/modules/*xen* rm -rf $(D)/usr/bin/xen* $(D)/usr/bin/lomount rm -rf $(D)/usr/bin/cpuperf-perfcntr $(D)/usr/bin/cpuperf-xen rm -rf $(D)/usr/bin/xc_shadow rm -rf $(D)/usr/bin/pygrub rm -rf $(D)/usr/bin/setsize $(D)/usr/bin/tbctl rm -rf $(D)/usr/bin/xsls rm -rf $(D)/usr/include/xenctrl.h $(D)/usr/include/xenguest.h rm -rf $(D)/usr/include/xs_lib.h $(D)/usr/include/xs.h rm -rf $(D)/usr/include/xen rm -rf $(D)$(LIBDIR)/libxenctrl* $(D)$(LIBDIR)/libxenguest* rm -rf $(D)$(LIBDIR)/libxenstore* rm -rf $(D)$(LIBDIR)/python/xen $(D)$(LIBDIR)/python/grub rm -rf $(D)$(LIBDIR)/xen/ rm -rf $(D)/usr/lib/xen/ rm -rf $(D)/usr/local/sbin/setmask $(D)/usr/local/sbin/xen* rm -rf $(D)/usr/sbin/xen* $(D)/usr/sbin/netfix $(D)/usr/sbin/xm rm -rf $(D)/usr/share/doc/xen rm -rf $(D)/usr/share/xen rm -rf $(D)/usr/share/man/man1/xen* rm -rf $(D)/usr/share/man/man8/xen* rm -rf $(D)/boot/tboot* _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Boris Derzhavets
2009-May-28 11:52 UTC
[Xen-users] Re: Xen 3.4 Hackery on Ubuntu 9.04 (aka Jaunty) Server
Christian Tramnitz <chris.ace <at> gmx.net> writes:> rm -rf $(D)/usr/share/man/man1/xen* > rm -rf $(D)/usr/share/man/man8/xen* > rm -rf $(D)/boot/tboot* >All this stuff has to be removed due to after Xen 3.4 complete build on Ubuntu 8.10 Server with python 2.5 I intend (locally or remotely ) :- 1 mount root FS of Juanty instance as /mnt on Intrepid Server 2. cd /usr/src/xen-unstable.hg/; make world 3. make dist 4. cd dist 3. ./install.sh /mnt Boris. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Christian Tramnitz
2009-May-28 13:12 UTC
[Xen-users] Re: Xen 3.4 Hackery on Ubuntu 9.04 (aka Jaunty) Server
Boris Derzhavets wrote:> Christian Tramnitz <chris.ace <at> gmx.net> writes: >> rm -rf $(D)/usr/share/man/man1/xen* >> rm -rf $(D)/usr/share/man/man8/xen* >> rm -rf $(D)/boot/tboot* >> > All this stuff has to be removed due to > after Xen 3.4 complete build on Ubuntu 8.10 Server with python 2.5 > I intend (locally or remotely ) :- > 1 mount root FS of Juanty instance as /mnt on Intrepid Server > 2. cd /usr/src/xen-unstable.hg/; make world > 3. make dist > 4. cd dist > 3. ./install.sh /mntI''m not saying that the uninstall script does anything wrong nor that you shouldn''t use. All I wanted to express is that you should be more careful when telling people to run a command that will actually delete more than they would anticipate from what you were saying... Best regards, Christian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Boris Derzhavets
2009-May-28 15:58 UTC
Re: [Xen-users] Re: Xen 3.4 Hackery on Ubuntu 9.04 (aka Jaunty) Server
Christian, I know how to explain clear. The first install Xen on Ubuntu 9.04 aka Jaunty Server is supposed to create only :- # cd /usr/local/lib/python2.6/dist-packages/xen # ls -l total 36 -rw-r--r-- 1 root staff 2 2009-05-20 17:03 __init__.py -rw-r--r-- 1 root staff 140 2009-05-20 17:20 __init__.pyc drwxr-sr-x 2 root staff 4096 2009-05-20 17:20 lowlevel drwxr-sr-x 2 root staff 4096 2009-05-20 17:20 sv drwxr-sr-x 3 root staff 4096 2009-05-20 17:20 util drwxr-sr-x 2 root staff 4096 2009-05-20 17:20 web drwxr-sr-x 5 root staff 4096 2009-05-20 17:20 xend drwxr-sr-x 3 root staff 4096 2009-05-20 17:20 xm drwxr-sr-x 2 root staff 4096 2009-05-20 17:20 xsview By running # make uninstall you remove everything , but packages above. It''s a hack. Real Xen 3.4 build should be done on another Ubuntu 8.10 aka Intrepid Server. Servers may dual boot or to be on the same LAN:- # cd /usr/src # hg clone http://xenbits.xensource.com/xen-3.4-testing.hg # cd xen-3.4-testing.hg # make world # make dist Make dist is like "make install" on ./dist folder. It''s supposed to transfer Xen System to another Host. It''s root FS has to be mounted at Intrepid Server as a directory. Say /mnt. Then remote install :- # cd /usr/src/xen-3.4-testing.hg/dist # ./install.sh /mnt It should report to you:- Installing Xen from ''./install'' to ''/mnt''... - installing for udev-based system - modifying permissions All done. Checking to see whether prerequisite tools are installed... Xen CHECK-INSTALL Wed May 20 14:33:35 EDT 2009 Checking check_brctl: OK Checking check_crypto_lib: OK Checking check_curl: unused, OK Checking check_iproute: OK Checking check_python: OK Checking check_python_xml: OK Checking check_udev: OK Checking check_xml2: unused, OK Checking check_zlib_lib: OK All done. This step will install working Xen System on remote (or dual booting) Ubuntu Jaunty Server. More over it works without "fake install", but no "pygrub" in service. That''s said. Fake install was done only to bring back to life "pygrub" been transfered from Intrepid, because it silently invokes python 2.6 after transfer. Don''t forget to install python2.5 and python2.5-dev on Ubuntu Jaunty Server before Xen transfer. Thanks. Boris. --- On Thu, 5/28/09, Christian Tramnitz <chris.ace@gmx.net> wrote: From: Christian Tramnitz <chris.ace@gmx.net> Subject: [Xen-users] Re: Xen 3.4 Hackery on Ubuntu 9.04 (aka Jaunty) Server To: xen-users@lists.xensource.com Date: Thursday, May 28, 2009, 9:12 AM Boris Derzhavets wrote:> Christian Tramnitz <chris.ace <at> gmx.net> writes: >> rm -rf $(D)/usr/share/man/man1/xen* >> rm -rf $(D)/usr/share/man/man8/xen* >> rm -rf $(D)/boot/tboot* >> > All this stuff has to be removed due to after Xen 3.4 complete build on Ubuntu 8.10 Server with python 2.5 > I intend (locally or remotely ) :- > 1 mount root FS of Juanty instance as /mnt on Intrepid Server > 2. cd /usr/src/xen-unstable.hg/; make world > 3. make dist > 4. cd dist > 3. ./install.sh /mntI''m not saying that the uninstall script does anything wrong nor that you shouldn''t use. All I wanted to express is that you should be more careful when telling people to run a command that will actually delete more than they would anticipate from what you were saying... Best regards, Christian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Boris Derzhavets
2009-May-29 14:19 UTC
Re: [Xen-users] Xen 3.4 Hackery on Ubuntu 9.04 (aka Jaunty) Server
Have Synaptic running on Ubuntu 9.04 Server. Submit for search strings bellow ( some of them just patterns):- 1.openssl-dev will show libcurl-dev,... 2.xorg-dev will show xserver-dev 3.gettext 4.texinfo 5.gitk 6.bcc 7.python2.5 8.python2.5-dev 9.mercurial It requires patience. You are just missing packages. Tune Config.mk PYTHON = python PYTHON_PREFIX_ARG # make install-xen # make install-tools Now remove xen&tools # make uninstall Make sure you''ve been built pacakages:- /usr/local/lib/python2.6/dist-packages/xen# ls -l total 36 -rw-r--r-- 1 root staff 2 2009-05-20 17:03 __init__.py -rw-r--r-- 1 root staff 140 2009-05-20 17:20 __init__.pyc drwxr-sr-x 2 root staff 4096 2009-05-20 17:20 lowlevel drwxr-sr-x 2 root staff 4096 2009-05-20 17:20 sv drwxr-sr-x 3 root staff 4096 2009-05-20 17:20 util drwxr-sr-x 2 root staff 4096 2009-05-20 17:20 web drwxr-sr-x 5 root staff 4096 2009-05-20 17:20 xend drwxr-sr-x 3 root staff 4096 2009-05-20 17:20 xm drwxr-sr-x 2 root staff 4096 2009-05-20 17:20 xsview # make uninstall won''t remove this ones. It''s a fake build to create 2.6 xen packages under /usr/local/lib/python2.6/dist-packages. Real Xen would be built on Ubuntu 8.10 Server with python2.5 and transfered to Jaunty Server. Xen Core System python2.5 packages will go into /usr/lib/python2.5/site-packages. The ones above just to keep "pygrub" working. Boris --- On Fri, 5/29/09, Casper <kl@os.lv> wrote: From: Casper <kl@os.lv> Subject: Re: [Xen-users] Xen 3.4 Hackery on Ubuntu 9.04 (aka Jaunty) Server To: "Boris Derzhavets" <bderzhavets@yahoo.com>, xen-users-bounces@lists.xensource.com Date: Friday, May 29, 2009, 8:21 AM Thanks for help! But all my effort to compile xen 3.4 on Ubuntu, 8.04 or 9.04 after all deps satisfied and taped "make all" ends with many errors, just like this: kpathsea: Running mktextfm nullfont mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input nullfont This is METAFONT, Version 2.71828 (Web2C 7.5.6) kpathsea: Running mktexmf nullfont ! I can''t find file `nullfont''. <*> ...ljfour; mag:=1; nonstopmode; input nullfont Please type another input file name ! Emergency stop. <*> ...ljfour; mag:=1; nonstopmode; input nullfont Transcript written on mfput.log. grep: nullfont.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input nullfont'' failed to make nullfont.tfm. and it hangs... How I understand it`s same latex problems? sincerely, Casper Boris Derzhavets wrote:> >Maybe it is obsolete??? Who knows...However, I found ubuntu-server-xen and installed >that instead. However, I installed, as far as I can say, all xen packages and now I''m >looking for some sort of a HowTo. Haven''t found one yet for Ubuntu Server 9.04 aka >Jaunty. Shouldn''t I need a XEN-Kernel? > > http://bderzhavets.blogspot.com/2009/05/deployment-xen-3.html > > > As soon as "xm info" is running without problems. You have successfully installed and > > started Xen. > > That''s a mistake. > Have ever get a messages: > 1. "Device 0 (vif) cannot be connected. Hotplug scripts not working" > 2. "XENBUS timed out waiting for vbd" ? > > Boris. > > --- On *Wed, 5/27/09, Fabian Zimmermann /<xen-users@z-technologies.de>/* wrote: > > > From: Fabian Zimmermann <xen-users@z-technologies.de> > Subject: Re: [Xen-users] my first XEN Installation I need some advice > To: "Niels Jende" <mylists1@web.de> > Cc: xen-users@lists.xensource.com > Date: Wednesday, May 27, 2009, 10:45 AM > > Hi Niels Jende, > > > well, I gave the ubuntu-default-xen a try, but this package > couldn''t get find. Maybe it is obsolete??? Who knows...However, I > found ubuntu-server-xen and installed that instead. However, I > installed, as far as I can say, all xen packages and now I''m looking > for some sort of a HowTo. Haven''t found one yet for Ubuntu Server > 9.04 aka Jaunty. Shouldn''t I need a XEN-Kernel? > > Yes, you need a "-xen"-kernel at least in Dom0. I personally use > Debian, thats why I don''t know how the packages are called in Ubuntu. > > In Debian you have the choice: > > - Install "linux-image-2.6-xen-amd64/i686" and the suggested > xen-hypervisor. > > or: "Nichts ist besser als Handarbeit" > > As soon as "xm info" is running without problems. You have > successfully installed and started Xen. > > FYI: https://help.ubuntu.com/community/Xen > > Fabian > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > </mc/compose?to=Xen-users@lists.xensource.com> > http://lists.xensource.com/xen-users > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users