CentOS Virtualization

General support questions
User avatar
TrevorH
Forum Moderator
Posts: 24118
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS Virtualization

Post by TrevorH » 2018/07/17 23:07:22

No, it's more likely the guest isn't set up to use that console. Do you have ssh access to the guest? If so then check to see if it has console=ttyS0 as part of its kernel command line in /proc/cmdline and if not, you could try adding it via the grub.cfg/conf file for the guest version.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

jough
Posts: 7
Joined: 2018/07/10 22:34:11

Re: CentOS Virtualization

Post by jough » 2018/07/18 21:34:59

So I can access this VM from putty now. Now I just need to dump the mysql data from the database running on it.

Thanks for the help!

MartinR
Posts: 348
Joined: 2015/05/11 07:53:27
Location: UK

Re: CentOS Virtualization

Post by MartinR » 2018/07/19 10:44:24

Thanks Trevor, that sorted out my VMs.

jough
Posts: 7
Joined: 2018/07/10 22:34:11

Re: CentOS Virtualization

Post by jough » 2018/08/09 17:07:22

So i am back again and need more assistance on this. I have made a mistake by removing access via SSH to this VM and have no way to access it. Can anyone assist in telling me how i can re-enable SSH from the VM on the host machine? To be more specific, it had a pubkey that was used and I needed to remove it so I could run this Linux VM through VMware converter. I added PubkeyAuthentication no to /etc/ssh/sshd_config and now I am unable to access it at all. So now I am back to this:

# virsh console <myhost>7
Connected to domain <myhost>7
Escape character is ^]

and I need to get onto that VM so i can remove the PubkeyAuthentication no line from the sshd_config

#struggling

cup
Posts: 5
Joined: 2018/09/05 18:10:42

Re: CentOS Virtualization

Post by cup » 2018/09/06 19:34:33

You do know that you can run both VMWare and Virtual Box on Linux.

User avatar
TrevorH
Forum Moderator
Posts: 24118
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS Virtualization

Post by TrevorH » 2018/09/06 19:45:55

But kvm and libvirt are what we ship as part of CentOS.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

aks
Posts: 2567
Joined: 2014/09/20 11:22:14

Re: CentOS Virtualization

Post by aks » 2018/09/07 20:14:39

If you can access the "real" console, you can define the init to be a shell (init=/bin/bash for example)..... it depends.

Post Reply