/srv/irclogs.ubuntu.com/2015/05/24/#ubuntu-server.txt

=== zz_DenBeiren is now known as DenBeiren
=== dmsimard_ is now known as dmsimard
=== zz_DenBeiren is now known as DenBeiren
=== veebull is now known as veebull_away
tekemperorGreetings all. I am having trouble pinging ubuntu cloud virtual machines from other machines on my network.05:10
tekemperoruvt-kvm ssh <servername> #works, but using another machine on the network and trying to ping (even by IP does not work).05:11
tekemperorI followed the guide here... https://help.ubuntu.com/lts/serverguide/cloud-images-and-uvtool.html05:12
jdvare they on the same subnet05:12
tekemperorNo. Host subnet differs from virtual machines.05:13
tekemperorCan I bridge the virtual machines to get their IPs from the same DHCP server as the vm host?05:14
sarnolddid your libvirt set up bridged network with your nic? or are they are on their own private bridge?05:14
tekemperorsarnold: I did no manual bridge configuration for this, I am not sure how to answer your question.  Is there a command I can give you out put from to answer your question?05:16
tekemperoreth0 on host is 192.168.1.183, virbr0 is 192.168.122.105:18
jdvunless I am misunderstanding you, you should not expect them to be able to see one another until you either add a router or a bridge to allow it.05:20
tekemperorjdv, that is correct.  I do not know how to create that bridge.  The instructions I found on http://wiki.libvirt.org/page/VirtualNetworking showed how to do it with a gui, but I have no gui.05:21
tekemperorThe mode I am after matches the routed mode on that page.05:22
jdvwhat are the subnet masks05:25
tekemperor255.255.255.0 for everything.05:26
tekemperorThe physical setup is one router (handles dhcp) and two physical machines. The server with the virtual machines, and my desktop. 192.168.1.1 is the router and all physical machines get their IPs from that. Ideally the virtual machines will behave like additional machines on the network.05:28
tekemperorSorry for not starting with that, been at this for a while.05:29
jdvyoure half in one mode and half in the other, it seems05:31
tekemperorYeah. I'm okay completely wiping the virtual machines and starting over, I just can't find a guide that allows me to set up the libvirt routing mode from the command line with external dhcp.05:36
jdvyou need them on the same subnet05:40
jdvor you put a static route into your physical router, but I am not sure why you want to do this05:41
tekemperorI would rather not modify the physical network. I think I need to make virbr0 use 192.168.1.X where X is defined from my router (or outside of its DHCP range).05:43
jdvyes, but you have it using 122 which is for switching mode05:43
tekemperorI did not manually create virbr0. I don't know how to change it.05:44
jdvman libvirt ?05:44
jdvit says on your link that it uses dnsmasq05:44
tekemperorAll right, I think I have to do a little more reading. Thanks for your help.05:46
jdvwhy do you want it in routing mode05:51
jdvrouted*05:52
jdvregardless I think the issue might be your dhcp config, so look at dnsmasq05:52
tekemperorIdeally the virtual machines will mimic public web virtual machines.05:54
tekemperorI'm trying to create that locally.05:54
cryptodan_laptoptekemperor: hav you tried using bridged mode?05:55
tekemperorcryptodan_laptop: I have tried, but I must be doing something wrong.05:55
cryptodan_laptopbridged mode would allow virtual box the ability to connect directly to your router for a dhcp ip address05:56
tekemperorjdv: thanks for your help. I will look into dnsmasq if I cannot figure out how to fix virbr0.05:56
tekemperorcryptodan_laptop: how can I set that up?05:57
cryptodan_laptoptekemperor: via the network settings in virtualbox05:57
tekemperorcryptodan_laptop: I am using uvt-kvm, not virtualbox.05:57
cryptodan_laptophave a read here http://manpages.ubuntu.com/manpages/trusty/man1/uvt-kvm.1.html05:59
tekemperorSo that is the last thing I tried... "virsh iface-bridge eth0 br0; uvt-kvm create testbox --bridge br0"06:01
tekemperoruvt-kvm: error: libvirt domain 'testbox' has no NIC MACs available.06:01
tekemperorOh, I just found something I overlooked before... "--template"  I think that will allow me to use the stuff here... https://libvirt.org/formatnetwork.html06:05
tekemperorThanks everyone, I think that will solve my problem.06:06
tekemperorProblem resolved, can ping my VMs externally. Thanks again for the assistance. If anyone is curious, uvt-kvm {ssh|wait} breaks on bridged connections. See "https://bugs.launchpad.net/uvtools/+bug/1408596". Wish I found that earlier.06:57
jdvinteresting. what setup did you end up with06:58
tekemperorIt is a bridged connection, the DHCP comes from the router. I used "virsh iface-bridge eth0 br0" to create the bridge, and appended "--bridge br0" to uvt-kvm create. Did not have to do any manual network configuration, but I have a vnet0 now in addition to the virbr0 I had before.07:02
tekemperoronly br0 has a valid IP address.07:03
=== Lcawte|Away is now known as Lcawte
=== Lcawte is now known as Lcawte|Away
=== Lcawte|Away is now known as Lcawte
=== bradm_ is now known as bradm
=== Lcawte is now known as Lcawte|Away
=== markthomas|away is now known as markthomas
=== markthomas is now known as markthomas|away
=== Lcawte|Away is now known as Lcawte
=== Lcawte is now known as Lcawte|Away
=== Lcawte|Away is now known as Lcawte
speedyhi everone16:59
=== Lcawte is now known as Lcawte|Away
=== Lcawte|Away is now known as Lcawte
speedyhi everone18:04
pmatulishello18:07
speedyhi18:16
speedy* hugs pmatulis ... so lonely in here!!18:16
speedyhi hi18:17
speedyPryMar56,18:17
=== Lcawte is now known as Lcawte|Away

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!