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

xen, connecting to a domU



Hi all,

I finally got enough of  a grasp on xen to create a guest 
system.  But I think it didn't get created properly because 
I can't log in to it. 

I tried xen-shell expecting a prompt but only got what looks
like an unfinished sequence of boot args:

-------- begin excerpt ------------
Activating swapfile swap...done.
Setting up networking....
Configuring network interfaces...done.
INIT: Entering runlevel: 2
Starting enhanced syslogd: rsyslogd.
Starting periodic command scheduler: crond.
----------- end excerpt ------------


I also tried to ssh into it, but that gave no more joy:

-------------- begin transcript --------
# ssh 192.168.153.110
ssh: connect to host 192.168.1.110 port 22: Connection refused
--------------- end transcript ---------


I can successfully shutdown (xm shutdown <domid>) and then 
restart (xm create -c <configfile>) the guest, but the result 
is the same.

I'm wondering if maybe ssh didn't get installed.  There is the 
following suspicious entry in /var/log/xen-tools/<machinename>.log

------------- begin excerpt ---------
Running hook 70-install-ssh ['/usr/lib/xen-tools/lenny.d/70-install-ssh
/tmp/obazSqjXy0']
--
Script /usr/lib/xen-tools/lenny.d/70-install-ssh starting
Installing Debian packages ssh to prefix /tmp/obazSqjXy0
start-stop-daemon disabled / made a stub.
Reading package lists...
Building dependency tree...
E: Couldn't find package ssh
-------------- end excerpt ----------


There is an identical message for sudo. 


There are slightly different error messages for libc6-xen, locales, and 
util-linux-locales:

----------- begin excerpt -------------
Running hook 95-configure-locales
['/usr/lib/xen-tools/lenny.d/95-configure-locales /tmp/obazSqjXy0']
--
Script /usr/lib/xen-tools/lenny.d/95-configure-locales starting
Installing Debian packages locales to prefix /tmp/obazSqjXy0
start-stop-daemon disabled / made a stub.
Reading package lists...
Building dependency tree...
Package locales is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package locales has no installation candidate
------------ end excerpt --------------


The mirror I was using was a DVD mount to /mnt.  All the above
pkgs should have been available:

------------- begin transcript -----------
# find /mnt -iname '*ssh*' -o -iname '*sudo*' -o -iname \
'*libc6-xen*' -o -i name '*locales*'
./pool/main/g/glibc/locales_2.7-18_all.deb
./pool/main/o/openssh
./pool/main/o/openssh/openssh-server_5.1p1-5_i386.deb
./pool/main/o/openssh/openssh-server-udeb_5.1p1-5_i386.udeb
./pool/main/o/openssh/openssh-client_5.1p1-5_i386.deb
./pool/main/o/openssh/openssh-client-udeb_5.1p1-5_i386.udeb
./pool/main/o/openssh-blacklist
./pool/main/o/openssh-blacklist/openssh-blacklist_0.4.1_all.deb
./pool/main/s/sudo
./pool/main/s/sudo/sudo_1.6.9p17-2_i386.deb
./pool/main/u/util-linux/util-linux-locales_2.13.1.1-1_all.deb
--------------- end transcript ---------


There were other bothersome messages in the log as well:

-------------- begin excerpt ---------
Script /usr/lib/xen-tools/lenny.d/20-setup-apt starting
The use of a proxy detected.
The use of a proxy detected.
The use of a proxy detected.
Ign file: lenny Release.gpg
Ign file: lenny Release
Ign file: lenny/main Packages
Ign file: lenny/contrib Packages
Ign file: lenny/non-free Packages
Ign file: lenny/main Sources
Ign file: lenny/contrib Sources
Ign file: lenny/non-free Sources
Err file: lenny/main Packages
  File not found
Err file: lenny/contrib Packages
  File not found
Err file: lenny/non-free Packages
  File not found
Err file: lenny/main Sources
  File not found
Err file: lenny/contrib Sources
  File not found
Err file: lenny/non-free Sources
  File not found
W: Failed to fetch file:/mnt/debian/dists/lenny/main/binary-i386/Packages
File not found

W: Failed to fetch file:/mnt/debian/dists/lenny/contrib/binary-i386/Packages
File not found

W: Failed to fetch
file:/mnt/debian/dists/lenny/non-free/binary-i386/Packages  
File not found

W: Failed to fetch file:/mnt/debian/dists/lenny/main/source/Sources  File
not found

W: Failed to fetch file:/mnt/debian/dists/lenny/contrib/source/Sources  File
not found

W: Failed to fetch file:/mnt/debian/dists/lenny/non-free/source/Sources
File not found

E: Some index files failed to download, they have been ignored, or old ones
used instead.
--------------- end excerpt ----------



The contrib and non-free related errors I get but the main 
Packages file I don't understand:

---------------- begin transcript ------
# find /mnt -iname '*packages*' 
./dists/lenny/main/binary-i386/Packages
./dists/lenny/main/binary-i386/Packages.gz
./dists/lenny/main/debian-installer/binary-i386/Packages
./dists/lenny/main/debian-installer/binary-i386/Packages.gz
----------------- end transcript -------

Can anybody help me out?

Thanks,

gc


Reply to: