[libvirt-users] Setup a network

Felix Blanke felixblanke at gmail.com
Thu Mar 15 10:42:17 UTC 2012



On 3/15/12 10:29 AM, Martin Kletzander wrote:
> On 03/15/2012 10:13 AM, Felix Blanke wrote:
>> On 3/15/12 9:22 AM, Martin Kletzander wrote:
>>> On 03/14/2012 10:24 PM, Felix Blanke wrote:
> [...]
>>> http://libvirt.org/formatnetwork.html
>>> http://libvirt.org/formatnwfilter.html
>>
>> So I could use something like "virt-install ... --network=default"? The
>> problem with that was I couldn't find a switch to set the lease time to
>> forever or configure the build in dhcp to map "mac ->  ip address". Do
>> you know a way to configure this?
>
> I believe it is --network network=default but I'm not that used to
> virt-install, so your version might work too. I didn't know how to
> configure mac-based dhcp leases until now when I checked here:
>
> http://libvirt.org/formatnetwork.html#elementsAddress
>
> Example:
>
> <dhcp>
>    <range start="192.168.122.100" end="192.168.122.254" />
>    <host mac="00:16:3e:77:e2:ed" name="foo.example.com"
> ip="192.168.122.10" />
>    <host mac="00:16:3e:3e:a9:1a" name="bar.example.com"
> ip="192.168.122.11" />
> </dhcp>
>
> And I think that should do the trick =)

Ouch, I'm sorry. I didn't had a lot of sleep this night :) Thanks again. 
I'll try things out next week and let you know if it works.




More information about the libvirt-users mailing list