logs archiveIRC Archive / Freenode / #centos / 2015 / September / 21 / 1
arinov
what is the best way to install python 2.7 in centos 6.7?
pj
@ius arinov
centbot
A good source for more modern and trusted mysql, php and python packages is the IUS repo. For more information please see http://iuscommunity.org and the #iuscommunity channel on this network.
arinov
pj, should I set priority settings for IUS? can it crash my installed packages and deps?
pj
IUS is designed not to stomp on base packages, but it won't hurt to set priorities as a precaution.
arinov
pj, thanks
i just have already several repositories enabled and i want to stay with stable system a next couple of years
pj
IUS should play well with just about any other repo, but no guarantees, there are some pretty bad repos in the wild that can wreck just about any system.
arinov
which one?
pj
@repos
         

centbot
Additional packages are often in 3rd party repos. Information on additional CentOS repos is available at http://wiki.centos.org/AdditionalResources/Repositories Pay attention to the reference on yum-priorities.
pj
check this page for a list of what are known good and bad repos ^^^^^
Bahhumbug
pj: That list is non-inclusive and needs to be re-worded; vetted and trusted should stay, craptastic garbage like remi/webtatic/etc should be removed and a blurb added that any repo that is unlisted on the page is concerned bad news and renders boxes unsupportable in this venue.
s/concerned/considered/
Case in point, the curl issue from yesterday. Installed from non-vetted, broke system. Replaced with crap from yet another unvetted repo. We can not support this type of nonsense.
pr0fess0r
hey all. could really use some help/advice on trying to use a DHCP server installed on CentOS 6.7 to lease IP address to KVM guest.
i'm not sure about a lot of things from how I should configure the NIC for the guest OS to configuring the DHCP so it will respond to guest request for an IP
anyone familiar with this teritory or tried to do such a thing? I can pm if it will help
TrevorH
you don't already have a dhcp server built into your router or available on the LAN?
chder
I thought if you have the guest networking setup as NAT it already runs a DHCP server on that virtual interface.
pr0fess0r
i do but I want to keep it separate. long story short, I have a wlan0 which my box gets a DHCP IP address for my LAN. I also have a wired eth0 connected to a switch with two servers I want to use for a virtual network (ESXi).
I have the DHCP setup for the range for the virtual network. I need one Microsoft VM to manage/administer the ESXi server and it would nice if I could get it to use the same IP range as the VM i will create on my ESXi server
chder: i hosed the default virtual network already in an attempt to make it request IP leases from my DHCP server.
i could just really use some advice. I've never done something like this before. I assume it's possible but I'm not a network admin guru
i know enough to be dangerous. the configs is where I am unsure
TrevorH
libvirt already sets up a dhcp server and a NAT LAN for guests out of the box
pr0fess0r
TrevorH: i am aware. I was hoping to use my own DHCP server instead of libvirtd virtual networks
chder
So you want the Guest bridged to eth0 (so it can talk to ESXi) but you want to run DHCP for the subnet on your workstation? Or are you trying to make a routed network?
pr0fess0r
I am open to suggestions. I can put back the libvirtd virtual network and go with another approach. I just don't know what's best or has been done successfully in practice
TrevorH
so use bridged networking and attach the interface to a bridge attached to the interface that has access to the dhcp server
pr0fess0r
chder: it will have the ability to be a routed network. I am trying to keep my server DHCP from my wireless router for my home network, and use eth0 as a private network for a lab of virtual machines (ESXi)
fenrus02
most wifi adapters dont do bridging in linux.
pr0fess0r
TrevorH: awesome. I was going in that direction but my Windows guest VM is not receiving the DHCPOFFER.
i disabled by firewall completely but no dice.
i even used tcpdump and it looks like I'm sending the broadcast back to the MAC but on the Windows guest, it never receives a packet back
fenrus02: i'm not bridging the wlan0. my private network will be wired to my eth0
eth0 is what I want DHCP listening one.
chder
Which bridging option are you using? Did you make a virtual interface and then bridge that to eth0 or did you just select the host device with macvtap?
pr0fess0r
i've been searching the internet since yesterday but I can't seem to find a solid how-to and there are still several questions I am not certain of the answer to
chder: i set the VM guest to use eth0 bridged (macvtap)
chder
If you set a static IP is it able to communicate?
pr0fess0r
i don't even know if that was the right approach. Hence I'm here hoping to gain a better understanding of what this setup should look like
on guest?
chder
Yes. There's a limitation for host to guest with macvtap.
         

pr0fess0r
ok. i can try. Can you maybe enlighten me a little on that limitation?
chder
"In most configurations, macvtap does not work for host to guest netowrk communication."
(Warning in the virt-manager network selection dialog)
pr0fess0r
chder: it takes the IP I assigned it but the guest Windows OS still seems to not be able to see the physical eth0
ipconfig /renew throws an error and no ping it returned
chder: so you're saying that I can bridge the guest OS on eth0, but it may not be able to communicate with services listening on eth0?
chder
So you have Windows Guest on KVM connected via vtap (bridged) to eth0 then to a switch then to a server running ESXi? You're using DHCP on your workstation also on eth0. You want VM to get IP from host to talk to ESXi?
Correct, you may not be ablt to talk to your host's dhcp server reliably but with a static address on the VM you should be able to tlak to ESXi.
(Action) needs his autocorrect back for spelling.
pr0fess0r
chder: yes. That is my goal. I am will to change directions if this is a bad approach. I was hoping to have the KVM guest receive IP leases from the same DHCP server that will serve the guest running on my ESXi. This would not be necessary if there was a vSphere client available for linux but there is not so I need at least one Windows machine and a KVM is best for what I have to work with
if its better to leave libvirtd to serve out DHCP leases to the KVM guest than I am ok with that. Like I said, I was hoping to have both my ESXi guest and my KVM guest just use my DHCP server I setup and use the same subnet for their IP range
mind you this is the first time I've setup a DHCP server so my configuration knowledge is basic at best for the moment. I want to learn more and this was kind of a learning opportunity for me
chder
You are sure the DHCP server is functioning correctly? Do you have another device you could attach to the switch to get a lease?
pr0fess0r
chder: no because I cannot setup a guest VM on my ESXi without a Windows host to connect to the adminstration client for it to deploy anything (i hope that makes sense)
actually, I have two servers connected to that switch. I hard coded their IP'
chder
No spare laptop with an ethernet port?
pr0fess0r
IP's. I can try to make it obtain from DHCP and see if that works.
the other server is a CentOS box I was going to use for NFS/datastore
let me try that
i think I can test it that way. don't know why I didn't think of that before
chder
Yeah, it seems like a good idea to make sure DHCP is functioning before blaming the bridge since as you said, it's your first time.
Though from what I read, it should be working. http://virt.kernelnewbies.org/MacVTap
pr0fess0r
chder: yes you are right. I guess I was so bogged down reading everything i could find I neglected to test. I know that my DNS works when I try to query something on that network (BTW, network domain is home.local)
chder
So you were assigned a lease?
xcryptomind
I have just installed nvidia from elrepo, but again I have black screen. Could you please help me ?
chder
.local is not always a real result if avahi-daemon is installed. It might have resolved it with mdns.
pr0fess0r
chder: still testing. I was just saying my DNS seems to work find. I have the two servers on that network connected to the switch and I know I can use dig to query other DNS A records I setup and get a result
so they talk on the network but the IP's I assigned those two boxes are static.
i'm booting up my work laptop now (Windows 8) and connected it to my switch. about to find out in a min if the wired LAN gets a 10.100.x.x address from my DHCP
chder
Cool
pr0fess0r
sho nuff. my laptop just got 10.100.0.3 from DHCP
see it in the logs and I am not seeing that same result when I try to use my KVM guest to request an IP
must be something with the KVM NIC setup
maybe a bridge is a bad idea. dunno honestly. suggestions?
chder
First the guest actually need to talk to the host for anything?
pr0fess0r
just establishing networking for the most part. then it will be used as a router to communicate with the ESXi administration client
chder
I'd probably just reserve it an IP and staticly assign it. It should be able to talk to ESXi.
pr0fess0r
so KVM guest (Winderrs) will run vSphere client. It will need to be able to communicate on the 10.100.x.x network
i agree but it seems the host can see the guest packets (DHCP request) but the guest never recieves the broadcast back from the host to take what DHCP is offering
since I'm not familiar with the various types when selecting the guest NIC, I'm going to try some of the other modes I haven't tried yet... like private and passthrough (altough I assume passthrough won't work)
chder
I don't know why that is the case but a static IP will tell us if it can ping ESXi. At that point we know it is macvtap's fault.
pr0fess0r
i'm not even trying to ping ESXi yet. I'm just need to get the guest to be able to communicate with the DHCP service on the my host box (the one running dhcpd)
chder
Yeah, and I'm suggesting skipping the dhcp part since host <=> guest has known limitations.
My theory is, add the static and it will be able to communicate with any IP in that 10.100 except the host (dhcp server)
pr0fess0r
chder: ohh. i see what your saying now
HOLY SHIT!!! You were right
i can ping my ESXi
You are the man!
chder
Awesome.
pr0fess0r
i have to say, i didn't understand that is what you were trying to saw before. I'm not the best with this stuff but I am def not a n00b. Thanks for being so patient with me
chder
No problem. You're welcome.
pr0fess0r
you're ops? Is there some way to give you like credit or a thumbs up or something somewhere
chder
Yeah it's odd to think you can talk to other computers from the guest and yet not the host but its just the way macvtap's works. I have no idea. I haven't hung out in this channel all that long but you don't need to.
xcryptomind
can someone help me about nvidia drivers, please
pr0fess0r
that is stupid to me. I have my DHCP and my DNS server both running on my hosts 10.100.0.1. it would be helpful if my guest could utilize those for connecting to other things on the network as well. I do have the net.ipv4_forward kernel para enable so I can have these guest machines grab stuff off the internet.
but at least I got something working for now
« prev 1 2 3 4 5 6 7 next »