Re: [libvirt-users] assign static external IP to container

2013-12-22 Thread scar
Laine Stump @ 12/20/2013 01:04 AM: > TL;DR - put back the config for br0 if you've removed it, then modify > the guest's config to use br0 instead of the default network. thanks that's all i had to do :) then in the guest i just configured /etc/network/interfaces to use the static IP i wanted, a

Re: [libvirt-users] assign static external IP to container

2013-12-20 Thread Gao feng
On 12/20/2013 04:04 PM, Laine Stump wrote: > On 12/16/2013 04:47 AM, Gao feng wrote: >> On 12/14/2013 10:51 AM, scar wrote: >>> -BEGIN PGP SIGNED MESSAGE- >>> Hash: SHA256 >>> >>> Gao feng @ 12/12/2013 10:18 PM: I saw there are two bridge br0 and virbr0 in your host. which bridge

Re: [libvirt-users] assign static external IP to container

2013-12-20 Thread Laine Stump
On 12/16/2013 04:47 AM, Gao feng wrote: > On 12/14/2013 10:51 AM, scar wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA256 >> >> Gao feng @ 12/12/2013 10:18 PM: >>> I saw there are two bridge br0 and virbr0 in your host. which >>> bridge the libvirt uses? what's result of #virsh net-list

Re: [libvirt-users] assign static external IP to container

2013-12-16 Thread scar
Gao feng @ 12/15/2013 07:47 PM: >> remove this br0 sector from the interfaces file. and restart the network. >> (remove the bridge br0) >> I'm not familiar with the configure files in ubuntu, >> let's use the command. > >> 1, ifconfig eth0 0.0.0.0 >> 2, brctl addif virbr0 eth0 >> 3, ifconfig virb

Re: [libvirt-users] assign static external IP to container

2013-12-15 Thread Gao feng
On 12/14/2013 10:51 AM, scar wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Gao feng @ 12/12/2013 10:18 PM: >> I saw there are two bridge br0 and virbr0 in your host. which >> bridge the libvirt uses? what's result of #virsh net-list ? > > well i don't quite understand bridges an

Re: [libvirt-users] assign static external IP to container

2013-12-13 Thread scar
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Gao feng @ 12/12/2013 10:18 PM: > I saw there are two bridge br0 and virbr0 in your host. which > bridge the libvirt uses? what's result of #virsh net-list ? well i don't quite understand bridges and their function, i'm kinda just following directi

Re: [libvirt-users] assign static external IP to container

2013-12-12 Thread Gao feng
On 12/13/2013 01:18 PM, Gao feng wrote: > On 12/13/2013 12:33 PM, scar wrote: >> Gao feng @ 12/11/2013 01:49 AM: >>> I have a machine running libvirt lxc, >>> on this machine(host), the network configure looks like this >>> eth0 is the physical nic, virbr0 is the bridge libvirt created, and vnet0 >

Re: [libvirt-users] assign static external IP to container

2013-12-12 Thread Gao feng
On 12/13/2013 12:33 PM, scar wrote: > Gao feng @ 12/11/2013 01:49 AM: >> I have a machine running libvirt lxc, >> on this machine(host), the network configure looks like this >> eth0 is the physical nic, virbr0 is the bridge libvirt created, and vnet0 >> is the veth device created for libvirt lxc c

Re: [libvirt-users] assign static external IP to container

2013-12-12 Thread scar
Gao feng @ 12/11/2013 01:49 AM: > I have a machine running libvirt lxc, > on this machine(host), the network configure looks like this > eth0 is the physical nic, virbr0 is the bridge libvirt created, and vnet0 > is the veth device created for libvirt lxc container. you can see, the eth0 > is a por

Re: [libvirt-users] assign static external IP to container

2013-12-11 Thread Gao feng
On 12/09/2013 05:14 AM, scar wrote: > hello i have a server colocated in a datacenter with several external IP > addresses available to use. the physical server is using one of these > IPs, and i want to assign another, unused IP to the virtual machine. i > thought i could just do this by editing

[libvirt-users] assign static external IP to container

2013-12-10 Thread scar
hello i have a server colocated in a datacenter with several external IP addresses available to use. the physical server is using one of these IPs, and i want to assign another, unused IP to the virtual machine.i thought i could just do this by editing the container's /etc/network/interfaces,

[libvirt-users] assign static external IP to container

2013-12-10 Thread scar
hello i have a server colocated in a datacenter with several external IP addresses available to use. the physical server is using one of these IPs, and i want to assign another, unused IP to the virtual machine.i thought i could just do this by editing the container's /etc/network/interfaces,