[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Starting VMs if not installed to /



Hi,

i try to run XEN which is not installed to / but /opt/xen-3.0.2.
I already tried installing XEN to / - works perfectly in my environment.

So, here the steps i made when installing xen to /opt/xen-3.0.2:


1. compiled XEN-3.0.2 with my xen0 and xenU kernels

2. installed a Debian Sarge installation on a host named faui31c
        (with bridge-utils and iproute)

3. installed the XEN compiled files on faui31c by using:

faui31c:/tmp/dist# ./install.sh /opt/xen-3.0.2
Installing Xen from './install' to '/opt/xen-3.0.2'...
 - installing for hotplug-based system
 - modifying permissions
All done.
Checking to see whether prerequisite tools are installed...
Xen CHECK-INSTALL  Fri Aug 11 11:10:33 CEST 2006
Checking check_brctl: OK
Checking check_hotplug: OK
Checking check_iproute: OK
Checking check_python: OK
Checking check_zlib_lib: OK
All done.
faui31c:/tmp/dist# mv /lib/tls /lib/tls.disabled
faui31c:/tmp/dist#

4. installed the links in /boot, modified boot-loader
        according to the README file in dist

5. reboot (XEN starts the domain0 perfectly)

6a. added the following environment variables:

        $ export LD_LIBRARY_PATH=/opt/xen-3.0.2/usr/lib
        $ export PYTHONPATH=/opt/xen-3.0.2/usr/lib/python
        $ export PATH=$PATH:/opt/xen-3.0.2/usr/bin:/opt/xen-3.0.2/usr/sbin

6b. copied the contents /tmp/dist/install/etc to /etc

6c. copied the contents /tmp/dist/install/var to /var

7. started xend - looks good:

faui31c:~# /etc/init.d/xend start
faui31c:~# xm list
Name                              ID Mem(MiB) VCPUs State  Time(s)
Domain-0                           0      939     1 r-----    13.4
faui31c:~#


8. added the environment variables to 
/opt/xen-3.0.2/etc/scripts/xen-hotplug-common.sh:

        $ export LD_LIBRARY_PATH=/opt/xen-3.0.2/usr/lib
        $ export PYTHONPATH=/opt/xen-3.0.2/usr/lib/python
        $ export PATH=$PATH:/opt/xen-3.0.2/usr/bin:/opt/xen-3.0.2/usr/sbin

9. trying to start the (modified: kernel path and hd) example domain:

faui31c:~# xm create -c xmexample1
Using config file "/etc/xen/xmexample1".
Started domain ED
Unexpected error: exceptions.OSError

Please report to xen-devel@xxxxxxxxxxxxxxxxxxx
Traceback (most recent call last):
  File "/opt/xen-3.0.2/usr/sbin/xm", line 10, in ?
    main.main(sys.argv)
  File
"/export/home.local/ortschae/xen-3.0.2/dist/install/usr/lib/python/xen/xm/main.py",
line 1075, in main
  File "<string>", line 1, in <lambda>
  File
"/export/home.local/ortschae/xen-3.0.2/dist/install/usr/lib/python/xen/xm/main.py",
line 534, in xm_subcommand
  File
"/export/home.local/ortschae/xen-3.0.2/dist/install/usr/lib/python/xen/xm/create.py",
line 907, in main
  File
"/export/home.local/ortschae/xen-3.0.2/dist/install/usr/lib/python/xen/xm/console.py",
line 26, in execConsole
  File
"/export/home.local/ortschae/xen-3.0.2/dist/install/usr/lib/python/xen/util/auxbin.py",
line 36, in execute
OSError: [Errno 2] No such file or directory

10. but the list command shows that the User Domain is running:

faui31c:~# xm list
Name                              ID Mem(MiB) VCPUs State  Time(s)
Domain-0                           0      937     1 r-----    14.4
ED                                 1       64     1 ------    13.5
faui31c:~#

11. connect to the console

faui31c:~# xm console 2
Unexpected error: exceptions.OSError

Please report to xen-devel@xxxxxxxxxxxxxxxxxxx
Traceback (most recent call last):
  File "/opt/xen-3.0.2/usr/sbin/xm", line 10, in ?
    main.main(sys.argv)
  File
"/export/home.local/ortschae/xen-3.0.2/dist/install/usr/lib/python/xen/xm/main.py",
line 1075, in main
  File
"/export/home.local/ortschae/xen-3.0.2/dist/install/usr/lib/python/xen/xm/main.py",
line 713, in xm_console
  File
"/export/home.local/ortschae/xen-3.0.2/dist/install/usr/lib/python/xen/xm/console.py",
line 26, in execConsole
  File
"/export/home.local/ortschae/xen-3.0.2/dist/install/usr/lib/python/xen/util/auxbin.py",
line 36, in execute
OSError: [Errno 2] No such file or directory


Hmm, looks like we can't connect to the console. Maybe a socket is
missing?

Thanks for your help,

        Olli

-- 
Dr.-Ing. Oliver Tschaeche         email:  tschaeche@xxxxxxxxxxxxxxxxxxxxxxxxxx
University of Erlangen-Nuremberg  Phone +49 9131 85-27612, Fax +49 9131 85-27239
Department of Computer Science, IMMD III, Martensstr. 3, 91058 Erlangen, Germany
http://www3.informatik.uni-erlangen.de/Staff/ortschae/ortschae.html

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.