LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 06-26-2012, 07:29 PM   #1
malak33
Member
 
Registered: Dec 2011
Location: Amish Country PA, USA
Distribution: CentOS 6.2
Posts: 104

Rep: Reputation: 3
Quick KVM question


So after i install a virt machine using KVM on my CentOS host machine. I want to then get to the virt machine using CLI on my host machine. What is the command to do this if say my virt machine is called testserver1.example.com
Thanks
 
Old 06-27-2012, 04:48 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Well generically I'd strongly recommend using SSH, but you can use "virsh console <domain>" to connect to a serial console on a vm.
 
1 members found this post helpful.
Old 06-28-2012, 08:36 PM   #3
malak33
Member
 
Registered: Dec 2011
Location: Amish Country PA, USA
Distribution: CentOS 6.2
Posts: 104

Original Poster
Rep: Reputation: 3
thank you for the information it worked. Now what if i wanted to switch to a different console?(like pressing ctrl+alt+f2 in a gui)
also in ssh is there a way to do the same?
thanks again!!
 
Old 06-29-2012, 01:59 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the console is a text only version of the vm's output, so I'm sure you can but I can't remember for the life of me if there's a special key combination to do it. I know I can remember watching kickstart installs and switching between its different screens... unless that was through an ilo interface... actually, maybe it was that.

For SSH, no there's certainily no way as you are using a proper dedicated console created for the ssh connection itself. In those sorts of cases you may wish to look at the "screen" utility to achieve what you want.
 
Old 07-01-2012, 02:04 AM   #5
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
When you access the console you get one TTY, the Alt+Fn are virtual consoles.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] kvm switch question tuxandpucks Linux - Hardware 3 11-14-2011 06:15 PM
KVM with VDE Networking Question dman777 Linux - Virtualization and Cloud 0 09-27-2011 02:01 AM
[Debian/Qemu/KVM] Why qemu --enable-kvm works but not kvm directly? gb2312 Linux - Virtualization and Cloud 2 03-21-2011 02:05 PM
KVM Question HyperTrey Linux - Hardware 1 04-06-2009 01:21 PM
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 11:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration