asb / spindle

http://asbradbury.org/projects/spindle/
Other
185 stars 43 forks source link

SSH connection refused #142

Open bobweaver opened 10 years ago

bobweaver commented 10 years ago

Hello there I am using spindle as a backend and am writing a gui for it in qt. But I am running into issues that I do not know how to handle. After running the downgrade of qemu I am getting errors that I dpkg can not install things because of dependency issues (though it worked the other night)

joseph@JosephDell:~/qemu_vm/Scripts/spindle$ sudo ./downgrade_qemu
(Reading database ... 14492 files and directories currently installed.)
Preparing to unpack librados2_0.43-1_amd64.deb ...
Unpacking librados2 (0.43-1) over (0.43-1) ...
Preparing to unpack librbd1_0.43-1_amd64.deb ...
Unpacking librbd1 (0.43-1) over (0.43-1) ...
Preparing to unpack qemu-keymaps_1.0.1+dfsg-1_all.deb ...
Unpacking qemu-keymaps (1.0.1+dfsg-1) over (1.0.1+dfsg-1) ...
Preparing to unpack qemu-system_1.0.1+dfsg-1_amd64.deb ...
Unpacking qemu-system (1.0.1+dfsg-1) over (1.0.1+dfsg-1) ...
Replaced by files in installed package qemu-system-common (2.0.0+dfsg-6+b1) ...
Replaced by files in installed package qemu-system-misc (2.0.0+dfsg-6+b1) ...
Replaced by files in installed package qemu-system-ppc (2.0.0+dfsg-6+b1) ...
Replaced by files in installed package qemu-system-sparc (2.0.0+dfsg-6+b1) ...
Replaced by files in installed package qemu-system-arm (2.0.0+dfsg-6+b1) ...
Replaced by files in installed package qemu-system-mips (2.0.0+dfsg-6+b1) ...
Replaced by files in installed package qemu-system-x86 (2.0.0+dfsg-6+b1) ...
Preparing to unpack qemu-user_1.0.1+dfsg-1_amd64.deb ...
Unpacking qemu-user (1.0.1+dfsg-1) over (1.0.1+dfsg-1) ...
Preparing to unpack qemu-utils_1.0.1+dfsg-1_amd64.deb ...
Unpacking qemu-utils (1.0.1+dfsg-1) over (1.0.1+dfsg-1) ...
Preparing to unpack qemu_1.0.1+dfsg-1_amd64.deb ...
Unpacking qemu (1.0.1+dfsg-1) over (1.0.1+dfsg-1) ...
dpkg: dependency problems prevent configuration of librados2:
 librados2 depends on libcrypto++9; however:
  Package libcrypto++9 is not installed.

dpkg: error processing package librados2 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of librbd1:
 librbd1 depends on librados2 (= 0.43-1); however:
  Package librados2 is not configured yet.

dpkg: error processing package librbd1 (--install):
 dependency problems - leaving unconfigured
Setting up qemu-keymaps (1.0.1+dfsg-1) ...
dpkg: dependency problems prevent configuration of qemu-system:
 qemu-system depends on libbrlapi0.5; however:
  Package libbrlapi0.5 is not installed.
 qemu-system depends on libiscsi1; however:
  Package libiscsi1 is not installed.
 qemu-system depends on librados2; however:
  Package librados2 is not configured yet.
 qemu-system depends on librbd1; however:
  Package librbd1 is not configured yet.
 qemu-system depends on libxen-4.1 (>= 4.1.2); however:
  Package libxen-4.1 is not installed.
 qemu-system depends on vgabios (>= 0.6c-3~); however:
  Package vgabios is not installed.
 qemu-system-ppc (2.0.0+dfsg-6+b1) breaks qemu-system (<< 1.3.0+dfsg-5) and is installed.
  Version of qemu-system to be configured is 1.0.1+dfsg-1.
 qemu-system-common (2.0.0+dfsg-6+b1) breaks qemu-system (<< 1.3.0+dfsg-5) and is installed.
  Version of qemu-system to be configured is 1.0.1+dfsg-1.
 qemu-system-mips (2.0.0+dfsg-6+b1) breaks qemu-system (<< 1.3.0+dfsg-5) and is installed.
  Version of qemu-system to be configured is 1.
dpkg: error processing package qemu-system (--install):
 dependency problems - leaving unconfigured
Setting up qemu-user (1.0.1+dfsg-1) ...
dpkg: dependency problems prevent configuration of qemu-utils:
 qemu-utils depends on libiscsi1; however:
  Package libiscsi1 is not installed.
 qemu-utils depends on librados2; however:
  Package librados2 is not configured yet.
 qemu-utils depends on librbd1; however:
  Package librbd1 is not configured yet.
 qemu-system-common (2.0.0+dfsg-6+b1) breaks qemu-utils (<< 1.3.0+dfsg-4) and is installed.
  Version of qemu-utils to be configured is 1.0.1+dfsg-1.

dpkg: error processing package qemu-utils (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of qemu:
 qemu depends on qemu-system (>= 1.0.1+dfsg-1); however:
  Package qemu-system is not configured yet.
 qemu depends on qemu-utils (>= 1.0.1+dfsg-1); however:
  Package qemu-utils is not configured yet.

dpkg: error processing package qemu (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.6.7.1-1) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Errors were encountered while processing:
 librados2
 librbd1
 qemu-system
 qemu-utils
 qemu
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  librados2 librbd1 qemu-system qemu-utils
The following packages will be upgraded:
  librados2 librbd1 qemu-system qemu-utils
4 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
5 not fully installed or removed.
Need to get 0 B/2402 kB of archives.
After this operation, 72.7 MB disk space will be freed.
Do you want to continue? [Y/n] Y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 14492 files and directories currently installed.)
Preparing to unpack .../librbd1_0.80.1-1+b1_amd64.deb ...
Unpacking librbd1 (0.80.1-1+b1) over (0.43-1) ...
Preparing to unpack .../librados2_0.80.1-1+b1_amd64.deb ...
Unpacking librados2 (0.80.1-1+b1) over (0.43-1) ...
Preparing to unpack .../qemu-system_2.0.0+dfsg-6+b1_amd64.deb ...
Unpacking qemu-system (2.0.0+dfsg-6+b1) over (1.0.1+dfsg-1) ...
Preparing to unpack .../qemu-utils_2.0.0+dfsg-6+b1_amd64.deb ...
Unpacking qemu-utils (2.0.0+dfsg-6+b1) over (1.0.1+dfsg-1) ...
Processing triggers for man-db (2.6.7.1-1) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up librados2 (0.80.1-1+b1) ...
Setting up librbd1 (0.80.1-1+b1) ...
Setting up qemu-system (2.0.0+dfsg-6+b1) ...
Setting up qemu-utils (2.0.0+dfsg-6+b1) ...
Setting up qemu (1.0.1+dfsg-1) ...
Processing triggers for libc-bin (2.19-1) ...
Hopefully downgraded to qemu 1.0.1 successfully, take a look...
ii  ipxe-qemu                      1.0.0+git-20131111.c3d1e78-2 all          PXE boot firmware - ROM images for qemu
ii  qemu                           1.0.1+dfsg-1                 amd64        fast processor emulator
ii  qemu-keymaps                   1.0.1+dfsg-1                 all          QEMU keyboard maps
ii  qemu-slof                      20131015+dfsg-1              all          Slimline Open Firmware -- QEMU PowerPC version
ii  qemu-system                    2.0.0+dfsg-6+b1              amd64        QEMU full system emulation binaries
ii  qemu-system-arm                2.0.0+dfsg-6+b1              amd64        QEMU full system emulation binaries (arm)
ii  qemu-system-common             2.0.0+dfsg-6+b1              amd64        QEMU full system emulation binaries (common files)
ii  qemu-system-mips               2.0.0+dfsg-6+b1              amd64        QEMU full system emulation binaries (mips)
ii  qemu-system-misc               2.0.0+dfsg-6+b1              amd64        QEMU full system emulation binaries (miscelaneous)
ii  qemu-system-ppc                2.0.0+dfsg-6+b1              amd64        QEMU full system emulation binaries (ppc)
ii  qemu-system-sparc              2.0.0+dfsg-6+b1              amd64        QEMU full system emulation binaries (sparc)
ii  qemu-system-x86                2.0.0+dfsg-6+b1              amd64        QEMU full system emulation binaries (x86)
ii  qemu-user                      1.0.1+dfsg-1                 amd64        QEMU user mode emulation binaries
ii  qemu-utils                     2.0.0+dfsg-6+b1              amd64        QEMU utilities
(spindle)joseph@JosephDell:~/qemu_vm/Scripts/spindle$ sudo aptitude -f install 
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
perl: warning: Setting locale failed.    
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

(spindle)joseph@JosephDell:~/qemu_vm/Scripts/spindle$ sudo ./downgrade_qemu
dpkg: warning: downgrading librados2 from 0.80.1-1+b1 to 0.43-1
(Reading database ... 14493 files and directories currently installed.)
Preparing to unpack librados2_0.43-1_amd64.deb ...
Unpacking librados2 (0.43-1) over (0.80.1-1+b1) ...
dpkg: warning: downgrading librbd1 from 0.80.1-1+b1 to 0.43-1
Preparing to unpack librbd1_0.43-1_amd64.deb ...
Unpacking librbd1 (0.43-1) over (0.80.1-1+b1) ...
Preparing to unpack qemu-keymaps_1.0.1+dfsg-1_all.deb ...
Unpacking qemu-keymaps (1.0.1+dfsg-1) over (1.0.1+dfsg-1) ...
dpkg: warning: downgrading qemu-system from 2.0.0+dfsg-6+b1 to 1.0.1+dfsg-1
Preparing to unpack qemu-system_1.0.1+dfsg-1_amd64.deb ...
Unpacking qemu-system (1.0.1+dfsg-1) over (2.0.0+dfsg-6+b1) ...
Replaced by files in installed package qemu-system-common (2.0.0+dfsg-6+b1) ...
Replaced by files in installed package qemu-system-misc (2.0.0+dfsg-6+b1) ...
Replaced by files in installed package qemu-system-ppc (2.0.0+dfsg-6+b1) ...
Replaced by files in installed package qemu-system-sparc (2.0.0+dfsg-6+b1) ...
Replaced by files in installed package qemu-system-arm (2.0.0+dfsg-6+b1) ...
Replaced by files in installed package qemu-system-mips (2.0.0+dfsg-6+b1) ...
Replaced by files in installed package qemu-system-x86 (2.0.0+dfsg-6+b1) ...
Preparing to unpack qemu-user_1.0.1+dfsg-1_amd64.deb ...
Unpacking qemu-user (1.0.1+dfsg-1) over (1.0.1+dfsg-1) ...
dpkg: warning: downgrading qemu-utils from 2.0.0+dfsg-6+b1 to 1.0.1+dfsg-1
Preparing to unpack qemu-utils_1.0.1+dfsg-1_amd64.deb ...
Unpacking qemu-utils (1.0.1+dfsg-1) over (2.0.0+dfsg-6+b1) ...
Preparing to unpack qemu_1.0.1+dfsg-1_amd64.deb ...
Unpacking qemu (1.0.1+dfsg-1) over (1.0.1+dfsg-1) ...
dpkg: dependency problems prevent configuration of librados2:
 librados2 depends on libcrypto++9; however:
  Package libcrypto++9 is not installed.

dpkg: error processing package librados2 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of librbd1:
 librbd1 depends on librados2 (= 0.43-1); however:
  Package librados2 is not configured yet.

dpkg: error processing package librbd1 (--install):
 dependency problems - leaving unconfigured
Setting up qemu-keymaps (1.0.1+dfsg-1) ...
dpkg: dependency problems prevent configuration of qemu-system:
 qemu-system depends on libbrlapi0.5; however:
  Package libbrlapi0.5 is not installed.
 qemu-system depends on libiscsi1; however:
  Package libiscsi1 is not installed.
 qemu-system depends on librados2; however:
  Package librados2 is not configured yet.
 qemu-system depends on librbd1; however:
  Package librbd1 is not configured yet.
 qemu-system depends on libxen-4.1 (>= 4.1.2); however:
  Package libxen-4.1 is not installed.
 qemu-system depends on vgabios (>= 0.6c-3~); however:
  Package vgabios is not installed.
 qemu-system-ppc (2.0.0+dfsg-6+b1) breaks qemu-system (<< 1.3.0+dfsg-5) and is installed.
  Version of qemu-system to be configured is 1.0.1+dfsg-1.
 qemu-system-common (2.0.0+dfsg-6+b1) breaks qemu-system (<< 1.3.0+dfsg-5) and is installed.
  Version of qemu-system to be configured is 1.0.1+dfsg-1.
 qemu-system-mips (2.0.0+dfsg-6+b1) breaks qemu-system (<< 1.3.0+dfsg-5) and is installed.
  Version of qemu-system to be configured is 1.
dpkg: error processing package qemu-system (--install):
 dependency problems - leaving unconfigured
Setting up qemu-user (1.0.1+dfsg-1) ...
dpkg: dependency problems prevent configuration of qemu-utils:
 qemu-utils depends on libiscsi1; however:
  Package libiscsi1 is not installed.
 qemu-utils depends on librados2; however:
  Package librados2 is not configured yet.
 qemu-utils depends on librbd1; however:
  Package librbd1 is not configured yet.
 qemu-system-common (2.0.0+dfsg-6+b1) breaks qemu-utils (<< 1.3.0+dfsg-4) and is installed.
  Version of qemu-utils to be configured is 1.0.1+dfsg-1.

dpkg: error processing package qemu-utils (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of qemu:
 qemu depends on qemu-system (>= 1.0.1+dfsg-1); however:
  Package qemu-system is not configured yet.
 qemu depends on qemu-utils (>= 1.0.1+dfsg-1); however:
  Package qemu-utils is not configured yet.

dpkg: error processing package qemu (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.6.7.1-1) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Errors were encountered while processing:
 librados2
 librbd1
 qemu-system
 qemu-utils
 qemu
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  librados2 librbd1 qemu-system qemu-utils
The following packages will be upgraded:
  librados2 librbd1 qemu-system qemu-utils
4 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
5 not fully installed or removed.
Need to get 0 B/2402 kB of archives.
After this operation, 72.7 MB disk space will be freed.
Do you want to continue? [Y/n] Y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 14492 files and directories currently installed.)
Preparing to unpack .../librbd1_0.80.1-1+b1_amd64.deb ...
Unpacking librbd1 (0.80.1-1+b1) over (0.43-1) ...
Preparing to unpack .../librados2_0.80.1-1+b1_amd64.deb ...
Unpacking librados2 (0.80.1-1+b1) over (0.43-1) ...
Preparing to unpack .../qemu-system_2.0.0+dfsg-6+b1_amd64.deb ...
Unpacking qemu-system (2.0.0+dfsg-6+b1) over (1.0.1+dfsg-1) ...
Preparing to unpack .../qemu-utils_2.0.0+dfsg-6+b1_amd64.deb ...
Unpacking qemu-utils (2.0.0+dfsg-6+b1) over (1.0.1+dfsg-1) ...
Processing triggers for man-db (2.6.7.1-1) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up librados2 (0.80.1-1+b1) ...
Setting up librbd1 (0.80.1-1+b1) ...
Setting up qemu-system (2.0.0+dfsg-6+b1) ...
Setting up qemu-utils (2.0.0+dfsg-6+b1) ...
Setting up qemu (1.0.1+dfsg-1) ...
Processing triggers for libc-bin (2.19-1) ...
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

Hopefully downgraded to qemu 1.0.1 successfully, take a look...
ii  ipxe-qemu                      1.0.0+git-20131111.c3d1e78-2 all          PXE boot firmware - ROM images for qemu
ii  qemu                           1.0.1+dfsg-1                 amd64        fast processor emulator
ii  qemu-keymaps                   1.0.1+dfsg-1                 all          QEMU keyboard maps
ii  qemu-slof                      20131015+dfsg-1              all          Slimline Open Firmware -- QEMU PowerPC version
ii  qemu-system                    2.0.0+dfsg-6+b1              amd64        QEMU full system emulation binaries
ii  qemu-system-arm                2.0.0+dfsg-6+b1              amd64        QEMU full system emulation binaries (arm)
ii  qemu-system-common             2.0.0+dfsg-6+b1              amd64        QEMU full system emulation binaries (common files)
ii  qemu-system-mips               2.0.0+dfsg-6+b1              amd64        QEMU full system emulation binaries (mips)
ii  qemu-system-misc               2.0.0+dfsg-6+b1              amd64        QEMU full system emulation binaries (miscelaneous)
ii  qemu-system-ppc                2.0.0+dfsg-6+b1              amd64        QEMU full system emulation binaries (ppc)
ii  qemu-system-sparc              2.0.0+dfsg-6+b1              amd64        QEMU full system emulation binaries (sparc)
ii  qemu-system-x86                2.0.0+dfsg-6+b1              amd64        QEMU full system emulation binaries (x86)
ii  qemu-user                      1.0.1+dfsg-1                 amd64        QEMU user mode emulation binaries
ii  qemu-utils                     2.0.0+dfsg-6+b1              amd64        QEMU utilities

Here is the ssh issues that I am running into

ssh: connect to host localhost port 22000: Connection refused
'do_second_stage_debootstrap' failed (returned 255) - Quit? [Y/n] : n
ssh: connect to host localhost port 22000: Connection refused

I have tried to remove all know_hosts and also remove everything that has been built before. including schroot stuff under /etc/schroot. It seems like either the redirect port is not working with qemu (wondering if I have the correct versions installed)

Why does it have to be version 1 of qemu ? why the need to downgrade ?

bobweaver commented 10 years ago

Here is some more info about the setup I am on Debian Jessie (64bit)

my version of schroot Package: schroot Source: schroot (1.6.10-1) Version: 1.6.10-1+b1

dash is default yes

QEMU stuff on host

dpkg -l | grep qemu
ii  aqemu                                 0.8.2-2+b1                         amd64        Qt4 front-end for QEMU and KVM
ii  ipxe-qemu                             1.0.0+git-20131111.c3d1e78-2       all          PXE boot firmware - ROM images for qemu
ii  qemu                                  2.0.0+dfsg-6+b1                    amd64        fast processor emulator
ii  qemu-keymaps                          2.0.0+dfsg-6                       all          QEMU keyboard maps
ii  qemu-kvm                              2.0.0+dfsg-6+b1                    amd64        QEMU Full virtualization on x86 hardware
ii  qemu-slof                             20131015+dfsg-1                    all          Slimline Open Firmware -- QEMU PowerPC version
ii  qemu-system                           2.0.0+dfsg-6+b1                    amd64        QEMU full system emulation binaries
ii  qemu-system-arm                       2.0.0+dfsg-6                       amd64        QEMU full system emulation binaries (arm)
ii  qemu-system-common                    2.0.0+dfsg-6+b1                    amd64        QEMU full system emulation binaries (common files)
ii  qemu-system-mips                      2.0.0+dfsg-6                       amd64        QEMU full system emulation binaries (mips)
ii  qemu-system-misc                      2.0.0+dfsg-6                       amd64        QEMU full system emulation binaries (miscelaneous)
ii  qemu-system-ppc                       2.0.0+dfsg-6                       amd64        QEMU full system emulation binaries (ppc)
ii  qemu-system-sparc                     2.0.0+dfsg-6                       amd64        QEMU full system emulation binaries (sparc)
ii  qemu-system-x86                       2.0.0+dfsg-6                       amd64        QEMU full system emulation binaries (x86)
ii  qemu-user                             2.0.0+dfsg-6+b1                    amd64        QEMU user mode emulation binaries
ii  qemu-user-static                      2.0.0+dfsg-6+b1                    amd64        QEMU user mode emulation binaries (static version)
ii  qemu-utils                            2.0.0+dfsg-6+b1                    amd64        QEMU utilities
ii  qemulator                             0.6.352-1                          all          transitional dummy package to virtualbriks
ii  virtualbricks                         0.6.352-1                          all          is a Virtualization suite for qemu/kvm VMs and vde2 networks

Will post more latter.