On Tue, Dec 2, 2008 at 2:33 PM, Lionel Porcheron <[EMAIL PROTECTED]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Kent, > > Kent Tenney a écrit : >> Howdy, >> >> I'm trying to figure out vmbuilder. >> I see 2 doc pages, the same but different; >> https://help.ubuntu.com/8.10/serverguide/C/jeos-and-vmbuilder.html >> https://help.ubuntu.com/community/JeOSVMBuilder >> >> Is one more likely to be current, correct ... ? >> >> I have had no luck getting bridging working. >> What would be evidence that the following >> edit made a difference in the image? >> >> ================================================ >> We can then edit VMBuilder/plugins/libvirt/templates/libvirtxml.tmpl to >> change: >> >> <interface type='network'> >> <source network='default'/> >> </interface> >> >> To: >> >> <interface type='bridge'> >> <source network='br0'/> >> </interface> >> ================================================ > > Your modification of the tmpl file is wrong. You should have: > <interface type='bridge'> > <source network='default'/> > <source bridge='br0'/> > </interface>
That's what's specified in the 2 doc pages I mentioned. I made the changes you recommend, still no bridging. When I do $ sudo kvm disk0.qcow2 then, on the vm $ ifconfig I have eth0 and lo configured, cannot reach the network. I'm working from a minimal server install, the only additional package is python-vm-builder. my command is $ sudo vmbuilder kvm ubuntu -c ubunt2vm.cfg -o ubunt2vm.cfg: [DEFAULT] domain = ASHLANDCOUNTY arch = i386 ip = 192.168.0.45 user = ubuntu name = ubuntu pass = ubuntu tmpfs = - [ubuntu] mirror = http://192.168.0.33:9999/ubuntu suite = intrepid flavour = virtual addpkg = tree [kvm] libvirt = qemu:///system /etc/vmbuilder/libvirt/libvirtxml.tmpl: <domain type='kvm'> <name>$hostname</name> <memory>#echo $mem * 1024 #</memory> <vcpu>1</vcpu> <os> <type>hvm</type> <boot dev='hd'/> </os> <features> <acpi/> </features> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <devices> <emulator>/usr/bin/kvm</emulator> <interface type='bridge'> <source network='default'/> <source bridge='br0'/> </interface> <input type='mouse' bus='ps2'/> <graphics type='vnc' port='-1' listen='127.0.0.1'/> #for $disk in $disks <disk type='file' device='disk'> <source file='$disk.filename' /> <target dev='hd$disk.devletters()' /> </disk> #end for </devices> </domain> Any help is appreciated. Thanks, Kent > > Cheers! > > Lionel > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iEYEARECAAYFAkk0ShMACgkQ5DXvknyEePwaQQCg8LmMxIX/KfoaYTNyWW/2Q+nH > t2oAoKXfV7mmh9VD9vG0dEAWn2132rMB > =/kGk > -----END PGP SIGNATURE----- > -- ubuntu-server mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
