Re: vmbuilder questions
Kent Tenney wrote: > On Tue, Dec 16, 2008 at 3:47 PM, Nick Barcet > wrote: >> No, it means that the proposed correction is wrong. The correct one can >> be found at: >> >> * https://bugs.launchpad.net/ubuntu/+source/ubuntu-docs/+bug/307582 >> * https://help.ubuntu.com/community/KVM >> * https://help.ubuntu.com/community/JeOSVMBuilder > > I am using the setting described in 1 and 3 > > > > > The 2nd link (https://help.ubuntu.com/community/KVM) > describes changing a different /etc/vmbuilder/libvirt/libvirtxml.tmpl > > > > > > Should my libvirtxml.tmpl look like the one described in the 2nd link? The three examples are essentially the same, apart that in the second one a place holder for fixed MAC address is provided (in the old ubuntu-vm-builder format), which is not mandatory. If what you are doing is what is described in 1 and 3 but is not working, then I would check that your bridging configuration on the host is working, as many of us are using this with success. Hope this helps, Nick signature.asc Description: OpenPGP digital signature -- ubuntu-server mailing list ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
Re: vmbuilder questions
On Tue, Dec 16, 2008 at 3:47 PM, Nick Barcet wrote: > Kent Tenney wrote: >> On Tue, Dec 16, 2008 at 8:59 AM, Soren Hansen wrote: >>> On Mon, Dec 01, 2008 at 09:33:27PM +0100, Lionel Porcheron wrote: Your modification of the tmpl file is wrong. You should have: >>> Er... No. >> >> does "No" mean the instructions on the doc page are correct? > > No, it means that the proposed correction is wrong. The correct one can > be found at: > > * https://bugs.launchpad.net/ubuntu/+source/ubuntu-docs/+bug/307582 > * https://help.ubuntu.com/community/KVM > * https://help.ubuntu.com/community/JeOSVMBuilder I am using the setting described in 1 and 3 The 2nd link (https://help.ubuntu.com/community/KVM) describes changing a different /etc/vmbuilder/libvirt/libvirtxml.tmpl Should my libvirtxml.tmpl look like the one described in the 2nd link? Thanks, Kent > > Nick > > -- ubuntu-server mailing list ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
Re: vmbuilder questions
Kent Tenney wrote: > On Tue, Dec 16, 2008 at 8:59 AM, Soren Hansen wrote: >> On Mon, Dec 01, 2008 at 09:33:27PM +0100, Lionel Porcheron wrote: >>> Your modification of the tmpl file is wrong. You should have: >>> >>> >>> >>> >> Er... No. > > does "No" mean the instructions on the doc page are correct? No, it means that the proposed correction is wrong. The correct one can be found at: * https://bugs.launchpad.net/ubuntu/+source/ubuntu-docs/+bug/307582 * https://help.ubuntu.com/community/KVM * https://help.ubuntu.com/community/JeOSVMBuilder Nick signature.asc Description: OpenPGP digital signature -- ubuntu-server mailing list ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
Re: vmbuilder questions
On Tue, Dec 16, 2008 at 8:59 AM, Soren Hansen wrote: > On Mon, Dec 01, 2008 at 09:33:27PM +0100, Lionel Porcheron wrote: >> Your modification of the tmpl file is wrong. You should have: >> >> >> >> > > Er... No. does "No" mean the instructions on the doc page are correct? We can then edit VMBuilder/plugins/libvirt/templates/libvirtxml.tmpl to change: To: > > -- > Soren Hansen | > Virtualisation specialist | Ubuntu Server Team > Canonical Ltd. | http://www.ubuntu.com/ > > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.9 (GNU/Linux) > > iJwEAQECAAYFAklGcN8ACgkQo+Mz6+DAzGxn4QQAhJGi+xTOx8C88Ies4aRW6CLV > 7EqpypBBOO8lB9upuVRWleKdf0EaeF7PKdg5ncjQon3blimMXuXC9RnM7jiTpYqb > 5WblrmSOmgINx5wG5Qb+F78ijwdyrf0LV8mn8SZ6a15rpxZSgfVHZckxJmVeh0VJ > 4/zjOWmRqljdR2b7GFs= > =NOYl > -END PGP SIGNATURE- > > -- > ubuntu-server mailing list > ubuntu-server@lists.ubuntu.com > https://lists.ubuntu.com/mailman/listinfo/ubuntu-server > More info: https://wiki.ubuntu.com/ServerTeam > -- ubuntu-server mailing list ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
Re: vmbuilder questions
On Mon, Dec 01, 2008 at 09:33:27PM +0100, Lionel Porcheron wrote: > Your modification of the tmpl file is wrong. You should have: > > > > Er... No. -- Soren Hansen | Virtualisation specialist | Ubuntu Server Team Canonical Ltd. | http://www.ubuntu.com/ signature.asc Description: Digital signature -- ubuntu-server mailing list ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
Re: vmbuilder questions
On Wed, Dec 3, 2008 at 2:29 PM, Jens Riboe <[EMAIL PROTECTED]> wrote: > Hi, > > Please, forgive me if I'm chiming in, missing the point. > > I just want to comment on the fragment below. >>> This gave me hope regarding being able to build and use vm's but >>> it seems the page presupposes a considerable amount of >>> understanding I don't have. > > I recently found myself in the same situation, and had to spend some > amount of time figuring out how to make it tick. Eventually, I got kvm and > networking ticking and decided to write about my findings. > * http://www.ribomation.com/2008/09/23/virtualization-ubuntu/ > * > http://www.ribomation.com/2008/11/20/convenient-installation-of-ubuntu-kvm/ These pages have good information, but the first, longer document seems to describe procedures which are not required if using vmbuilder. > > Perhaps, the first entry can be of some help for people starting fresh with > virtualization. > > Best regards, >/jens > > > -Ursprungligt meddelande- > Från: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] För Kent Tenney > Skickat: den 2 december 2008 16:02 > Till: Dave Walker > Kopia: ubuntu-server@lists.ubuntu.com > Ämne: Re: vmbuilder questions > > On Tue, Dec 2, 2008 at 5:14 PM, Dave Walker <[EMAIL PROTECTED]> wrote: >> Kent Tenney wrote: >>> >>> I made the changes you recommend, still no bridging. >>> When I do >>> $ sudo kvm disk0.qcow2 >>> >>> >> Hi Kent, >> >> Is this really the best way to start the virtual machine? > > I haven't a clue. > It produces a window which displays a machine boot sequence, > which is what I expect to see. There's clearly large gaps in my > understanding of what's going on. The sequence described at > https://help.ubuntu.com/community/JeOSVMBuilder > > "This page aims at documenting how to a create virtual > appliance using Ubuntu Server Edition's JeOS and vmbuilder." > > This gave me hope regarding being able to build and use vm's but > it seems the page presupposes a considerable amount of > understanding I don't have. > >> You aren't >> passing any parameters, other than the actual img/qcow2 to use. >> Wouldn't it be better to launch it via "virsh", using the .cfg file that >> the vmbuilder generated? > > Where would I find that file? > (the .cfg file I quoted above is one I wrote according to instructions on > https://help.ubuntu.com/community/JeOSVMBuilder) > >> >> Once inside virsh: >> "create /path/to/image.cfg" >> >> The the network settings you have set out will be applied to KVM as >> parameters. (Unless you want to use routed networking, which doesn't >> work right IMO) >> >> Kind Regards, >> Dave Walker > > > >> > > -- > ubuntu-server mailing list > ubuntu-server@lists.ubuntu.com > https://lists.ubuntu.com/mailman/listinfo/ubuntu-server > More info: https://wiki.ubuntu.com/ServerTeam > -- ubuntu-server mailing list ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
Re: vmbuilder questions
On Tue, Dec 2, 2008 at 5:14 PM, Dave Walker <[EMAIL PROTECTED]> wrote: > Kent Tenney wrote: >> >> I made the changes you recommend, still no bridging. >> When I do >> $ sudo kvm disk0.qcow2 >> >> > Hi Kent, > > Is this really the best way to start the virtual machine? I haven't a clue. It produces a window which displays a machine boot sequence, which is what I expect to see. There's clearly large gaps in my understanding of what's going on. The sequence described at https://help.ubuntu.com/community/JeOSVMBuilder "This page aims at documenting how to a create virtual appliance using Ubuntu Server Edition's JeOS and vmbuilder." This gave me hope regarding being able to build and use vm's but it seems the page presupposes a considerable amount of understanding I don't have. > You aren't > passing any parameters, other than the actual img/qcow2 to use. > Wouldn't it be better to launch it via "virsh", using the .cfg file that > the vmbuilder generated? Where would I find that file? (the .cfg file I quoted above is one I wrote according to instructions on https://help.ubuntu.com/community/JeOSVMBuilder) > > Once inside virsh: > "create /path/to/image.cfg" > > The the network settings you have set out will be applied to KVM as > parameters. (Unless you want to use routed networking, which doesn't > work right IMO) > > Kind Regards, > Dave Walker > -- ubuntu-server mailing list ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
Re: vmbuilder questions
Kent Tenney wrote: > > I made the changes you recommend, still no bridging. > When I do > $ sudo kvm disk0.qcow2 > > Hi Kent, Is this really the best way to start the virtual machine? You aren't passing any parameters, other than the actual img/qcow2 to use. Wouldn't it be better to launch it via "virsh", using the .cfg file that the vmbuilder generated? Once inside virsh: "create /path/to/image.cfg" The the network settings you have set out will be applied to KVM as parameters. (Unless you want to use routed networking, which doesn't work right IMO) Kind Regards, Dave Walker -- ubuntu-server mailing list ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
Re: vmbuilder questions
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: >> >> >> >> >> >> To: >> >> >> >> >> > > Your modification of the tmpl file is wrong. You should have: > > > > 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:/ubuntu suite = intrepid flavour = virtual addpkg = tree [kvm] libvirt = qemu:///system /etc/vmbuilder/libvirt/libvirtxml.tmpl: $hostname #echo $mem * 1024 # 1 hvm destroy restart destroy /usr/bin/kvm #for $disk in $disks #end for 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 ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
Re: vmbuilder questions
-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: > > > > > > To: > > > > > Your modification of the tmpl file is wrong. You should have: 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 ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam