FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Server Development

 
 
LinkBack Thread Tools
 
Old 12-01-2008, 07:33 PM
Lionel Porcheron
 
Default 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:
>
> <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>

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
 
Old 12-01-2008, 09:22 PM
"Kent Tenney"
 
Default vmbuilder questions

On Tue, Dec 2, 2008 at 2:33 PM, Lionel Porcheron
<lionel.porcheron@ubuntu.com> 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
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 12-01-2008, 10:14 PM
Dave Walker
 
Default 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
 
Old 12-02-2008, 02:01 PM
"Kent Tenney"
 
Default vmbuilder questions

On Tue, Dec 2, 2008 at 5:14 PM, Dave Walker <DaveWalker@ubuntu.com> 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
 
Old 12-03-2008, 04:38 PM
"Kent Tenney"
 
Default vmbuilder questions

On Wed, Dec 3, 2008 at 2:29 PM, Jens Riboe <jens.riboe@ribomation.com> 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: ubuntu-server-bounces@lists.ubuntu.com
> [mailto:ubuntu-server-bounces@lists.ubuntu.com] 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 <DaveWalker@ubuntu.com> 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
 
Old 12-15-2008, 01:59 PM
Soren Hansen
 
Default 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:
> <interface type='bridge'>
> <source network='default'/>
> <source bridge='br0'/>
> </interface>

Er... No.

--
Soren Hansen |
Virtualisation specialist | Ubuntu Server Team
Canonical Ltd. | http://www.ubuntu.com/
--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 12-15-2008, 07:29 PM
"Kent Tenney"
 
Default vmbuilder questions

On Tue, Dec 16, 2008 at 8:59 AM, Soren Hansen <soren@ubuntu.com> 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:
>> <interface type='bridge'>
>> <source network='default'/>
>> <source bridge='br0'/>
>> </interface>
>
> 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:

<interface type='network'>
<source network='default'/>
</interface>

To:

<interface type='bridge'>
<source network='br0'/>
</interface>
================================================


>
> --
> 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+xTOx8 C88Ies4aRW6CLV
> 7EqpypBBOO8lB9upuVRWleKdf0EaeF7PKdg5ncjQon3blimMXu XC9RnM7jiTpYqb
> 5WblrmSOmgINx5wG5Qb+F78ijwdyrf0LV8mn8SZ6a15rpxZSgf VHZckxJmVeh0VJ
> 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
 
Old 12-15-2008, 08:47 PM
Nick Barcet
 
Default vmbuilder questions

Kent Tenney wrote:
> On Tue, Dec 16, 2008 at 8:59 AM, Soren Hansen <soren@ubuntu.com> 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:
>>> <interface type='bridge'>
>>> <source network='default'/>
>>> <source bridge='br0'/>
>>> </interface>
>> 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

--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 12-15-2008, 09:09 PM
"Kent Tenney"
 
Default vmbuilder questions

On Tue, Dec 16, 2008 at 3:47 PM, Nick Barcet <nick.barcet@canonical.com> wrote:
> Kent Tenney wrote:
>> On Tue, Dec 16, 2008 at 8:59 AM, Soren Hansen <soren@ubuntu.com> 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:
>>>> <interface type='bridge'>
>>>> <source network='default'/>
>>>> <source bridge='br0'/>
>>>> </interface>
>>> 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
<interface type='bridge'>
<source bridge='br0'/>
</interface>

The 2nd link (https://help.ubuntu.com/community/KVM)
describes changing a different /etc/vmbuilder/libvirt/libvirtxml.tmpl
<interface type='bridge'>
<mac address='%MAC%'/>
<source bridge='br0'/>
</interface>

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
 
Old 12-15-2008, 09:15 PM
Nick Barcet
 
Default vmbuilder questions

Kent Tenney wrote:
> On Tue, Dec 16, 2008 at 3:47 PM, Nick Barcet <nick.barcet@canonical.com> 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
> <interface type='bridge'>
> <source bridge='br0'/>
> </interface>
>
> The 2nd link (https://help.ubuntu.com/community/KVM)
> describes changing a different /etc/vmbuilder/libvirt/libvirtxml.tmpl
> <interface type='bridge'>
> <mac address='%MAC%'/>
> <source bridge='br0'/>
> </interface>
>
> 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

--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 

Thread Tools




All times are GMT. The time now is 09:17 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org