In short: After having copied a running system I get a login-prompt, type in username + password, almost instantly I'm at login-prompt again with no message.
Typing in wrong username or password results in a short pause and "Login incorrect" - thus the system is running.
What I have done is copied a CentOS 6.4 xen-guest on virt-host1 ("centos-xen") to a CentOS 6.4 kvm-guest on virt-host2 ("centos-kvm").
virt-host1 runs Xen on OpenSuse 12.2, virt-host2 runs oVirt on CentOS 6.5
centos-xen has been running for about 6 months, and shall now be moved to other platform.
I copied the system by booting from live-cd and used ssh to directly copy from remote server (details below).
The only thing I can see in the logs is this "tty (/dev/tty1) main process ended, respawning". But I have no idea where to go from here?
Some details.
Code:
The copying was done like so:
1) Create a new CentOS-6.4 on virt-host2
2) Copy /boot & /etc on this centos-kvm to a backup-directory.
3) Start centos-kvm but from CentOS live-cd.
4) Mount the centos-kvm / directory under /media/<UUID>
5) cd to /media/<UUID>
6) Copy live from centos-xen with command:
ssh 192.168.1.10 'cd /;tar --exclude proc --exclude sys --exclude boot --exclude dev -cpf - * ' | tar xvpf -
7) Check that /boot is not changed
8) Copy <backup-dir>/etc/fstab to /media/<UUID>/etc/fstab
9) Delete /media/<UUID>/etc/udev/rules.d/70-persistent-net.rules
10) Reboot, start centos-kvm.
From logs:
Code:
/var/log/secure
Jan 27 14:10:55 alfa-app0 login: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
Jan 27 14:10:55 alfa-app0 login: ROOT LOGIN ON tty1
Jan 27 14:10:55 alfa-app0 login: pam_unix(login:session): session closed for user root
Jan 27 14:11:00 alfa-app0 login: pam_unix(login:session): session opened for user peter by LOGIN(uid=0)
Jan 27 14:11:00 alfa-app0 login: LOGIN ON tty1 BY peter
Jan 27 14:11:00 alfa-app0 login: pam_unix(login:session): session closed for user peter
Code:
/var/log/messages
Jan 24 12:18:32 alfa-app0 init: tty (/dev/tty1) main process ended, respawning
Jan 27 14:10:44 alfa-app0 /sbin/mingetty[1977]: tty1: invalid character 0x1b in login name
Jan 27 14:10:49 alfa-app0 init: tty (/dev/tty1) main process (1977) terminated with status 1
Jan 27 14:10:49 alfa-app0 init: tty (/dev/tty1) main process ended, respawning
Jan 27 14:10:55 alfa-app0 init: tty (/dev/tty1) main process ended, respawning
Jan 27 14:11:00 alfa-app0 init: tty (/dev/tty1) main process ended, respawning
Jan 27 14:18:21 alfa-app0 init: tty (/dev/tty1) main process ended, respawning
Jan 27 14:21:41 alfa-app0 init: tty (/dev/tty1) main process ended, respawning