Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Anyone here could point me to a good link where i can look for information regarding the bridge br0 in regard to the KVM i am trying to install Red Hat on via FTP..
i am able to load the initial files to start off the Red Hat installation via FTP..but once the installation started, the connection to the FTP is lost..
i believe, it has to do with the network connection within the KVM itself..
but i couldn't figure out.
Could someone with the knowledge able to enlighten me.
Does the NAT (default configuration by KVM) allow the installation of the Red Hat over FTP ?
or do i need to configure a Bridge or Routed configuration for the VM?
Thanks
Hi. Sorry that I didn't understand your original request and fired back with a list of questions to be answered.
In any case, I have been able to do an ftp installation, even unattended using kickstart, on a KVM virtual machine attached to the host with NAT.
My ftp server was on the host.
Now I did find out that guest-to-guest networking can be tricky. If your ftp server is on another KVM guest, this could be the reason for your trouble. I solved my problem by tweaking the host's firewall.
i am able to access the internet on my host machine, however, in my VM (Centos 5.10) , i;m not able to launch a webpage says "google.com". But if i ping "www.google.com",it could resolve to it's IP address. And if i ping to it's ip address which is "74.125.135.184" there is no reply, the cursor just blinks on the next line.
In the VM, the ifconfig shows the only the eth0 and lo. Is there other adapter need to be shown and activated?
It should show bridge interface in ifconfig output. How do you setup bridge? I know you give a link but I can't find out which link point to setup bridge interface.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0 set 0 to 1 in your case. i use vms too but i pass a nic to a firewall and the bridge is on the lan side so i don't need the packets to be forwarded. I think this is your missing step.
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1
# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
# Controls the default maxmimum size of a mesage queue
kernel.msgmnb = 65536
# Controls the maximum size of a message, in bytes
kernel.msgmax = 65536
# Controls the maximum shared segment size, in bytes
kernel.shmmax = 68719476736
# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296
then run
Code:
#service network restart
All the above goes on your host not virtual machines. then when you use the virtual machine add it's nic to the bridge./ once the instalation starts, make sure to enable the nic in the installation menu.
Last edited by ericson007; 12-30-2013 at 09:53 PM.
Thanks Ericson, i will take note of your feedback.
Nini09, actually i;m not too familiar with the bridge setup .. so hopefully someone could advise you.
I did manage to make it work by follow the instructions on the link this time round. Now the KVM is able to install a VM (Centos 5.10) via FTP (from another machine).
Now i am able to proceed with my study of the RHCSA ..Wish me goodluck !
Good stuff mate!
The Michael Jang book is pretty good for that. I have it even though not really intending to do the exam, but it does look like it will work rather well.
For your vm's the main thing you are after is to do nat. You don't need a bridge per se. A bridge will allow access to virtual machines from your whole network. The labs are configured on a virtual network , the virtual network hosts should be able to connect to each other and then to get them to download the updates or access the net, you need nat translation and thus forwarding of packets via sysctl.conf will be required.
Best of luck. The rhcsa is actually pretty interesting!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.