LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-14-2016, 03:19 PM   #1
mikenash
Member
 
Registered: Dec 2014
Posts: 84

Rep: Reputation: Disabled
KVM and Guest network with static ip


I have a KVM enterprise host as a guest on VM with a Red Hat 7.1 virtual guest. The KVM host has a fixed IP address and the Red Hat 7.1 virtual guest has dhcp configured. I am able to ssh into the Red Hat 7.1 virtual guest from the KVM host. I want to be able to ssh in from my desktop as I am able to do with the KVM host. Can I achieve this connectivity if I provide a static ip address to the Red Hat 7.1 virtual guest that is on the same sub-net as the KVM host?

I have tried several unsuccessful attempts with using bridges, macvtap, and vlans. The host is connected via OSA connections. The system has an additional OSA connection if needed. I have been unable to piece this part of the network. I am seeking guidance with the network components
that will achieve this task. Thanks
 
Old 07-17-2016, 05:26 PM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
You should be able to set the network adapter to bridge mode then assign an IP on the network on which it is connected to and then access it from the rest of the network.

Have a look at THIS SITE.
 
Old 07-25-2016, 04:00 PM   #3
mikenash
Member
 
Registered: Dec 2014
Posts: 84

Original Poster
Rep: Reputation: Disabled
Found my solution. The main issue preventing this configuration was that I had the wrong type of OSA connection. I needed a real OSA device and not a virtual OSA device. Then I needed to configure the OSA device with a different layer2 field that is specified on the OPTIONS parameter.
Changed -
OPTIONS="layer2=0 portname=VSWVM portno=0 buffer_count=128"
To -
OPTIONS="layer2=1 portname=VSWVM portno=0 buffer_count=128"
Configured the virual guest to use a macvtap bridge in the .xml file.
<interface type="direct">
<mac address="02:00:00:85:00:69"/>
<source dev='enccw0.0.2e10' mode='bridge'/>
<model type="virtio"/>
<address type="ccw" cssid="0xfe" ssid="0x0" devno="0x0004"/>
</interface>
Then defined the guest's ifcfg-eth0 connection to use the ip address that I wanted to use.
I am able to ssh directly into the virtual guest system from my workstation.
 
Old 07-26-2016, 11:06 AM   #4
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Glad you found your answer. Please make this as Solved.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel-based Virtual Machine (KVM): Switching from KVM guest to host (e.g. Linux Mint) & maximize guest screen fanoflq Linux - Newbie 2 07-13-2016 07:10 PM
KVM guest with 2 network interfaces in diferrent VLANs tklima Linux - Networking 1 07-20-2014 03:26 PM
Not able to establish network between host and guest in KVM Jerico91 Linux - Newbie 2 10-18-2013 05:06 PM
Can't configure network for KVM guest. bluefish1 Linux - Server 9 05-09-2013 02:25 PM
[KVM] adding guest computer to the network djgerbavore Linux - Networking 5 06-10-2009 03:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:33 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