LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 10-07-2013, 08:58 AM   #1
essential1
LQ Newbie
 
Registered: May 2012
Posts: 17

Rep: Reputation: Disabled
Redirect logs from KVM guest to KVM host


It is very common to redirect system logs within networks, from one computer to another. On Linux machines we can usually do this by changing to config file of rsyslog or syslog.

I am curious about whether or not we can do this directly from a virtual machine to a host machine, but without sending any information outside the physical host machine. ie the data is sent directly to the host machine without being sent outside to a router for direction to the final address, which is how it would be done in a regular network. I also know that doing it the regular way would probably be possible, but I want to explore the possibility of doing it without the data leaving the physical machine.

I use KVM for my hypervisor. Does anybody know any way of doing this please?
 
Old 10-07-2013, 09:00 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
Of course it's possible. if the host and the guest are on the same network segment, then naturally the path between them for a syslog connection will not leave the box. The is totally down to how you design your network interfaces and VM routing, but if you just appreciate the host and guest as independent systems at a network level, then implicitly if that's what your network permits, then it's possible. Try NOT to look at this as ANYTHING to do with virtualization whatsoever and it'll probably look much easier and more straight forward to you.
 
Old 10-08-2013, 03:29 PM   #3
dt64
Member
 
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 141

Rep: Reputation: 18
It depends on your setup of your VM's NICs.
In you decide to connect your host's NIC directly to the VM it may be the case that the routing goes outside or not, there are more dependencies kicking in.
If you assign a virtual NIC to your VM and connect it to a virtual bridge running on your host with the right settings, your traffic between your host and guest will never leave the hardware machine.
To answer more specific we would need to see your host's and VM's network setup.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
accessing a KVM guest from outside the host rootaccess Linux - General 2 04-27-2013 11:29 PM
KVM guest cannot access host thehemi Linux - Virtualization and Cloud 8 03-28-2012 04:36 AM
LXer: Set up Spicevmc Channel on Ubuntu 11.04 as KVM Server and spice-vdagent as a KVM guest LXer Syndicated Linux News 0 06-15-2011 07:10 PM
ubuntu move kvm guest from one host to another thllgo Linux - Software 1 04-18-2011 06:12 PM
Share between Qemu-Kvm host and guest Alexvader General 1 06-13-2010 03:07 PM


All times are GMT -5. The time now is 01:46 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration