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 05-25-2010, 02:42 PM
Walter Souto
 
Default No guest network with KVM using vmbuilder

Hi, I hope I'm not asking something dummy, anyway...

So, I'd use vmbuilder to create a VM like this:

sudo vmbuilder kvm ubuntu
--suite lucid --flavour virtual --arch amd64 -o -v
--libvirt qemu:///system
--cpus 1 --mem 256
--rootsize 8192 --swapsize 2048
--hostname vm101
--ip 10.0.3.11 --mask 255.255.252.0 --net 10.0.0.0 --bcast 10.0.3.255
--gw 10.0.3.254 --dns 10.0.3.254 --bridge br0
--user sysadmin --name SysAdmin --pass 656667
--addpkg acpid
--addpkg openssh-server
--mirror http://ironman:9999/ubuntu
--raw /dev/vgvm/lvm01

The host (lucid) has bridge br0 configured and forwarding with
10.0.0.1 / 255.255.252.0. The configurations seems to be ok:

<domain type='kvm'>
<name>vm101</name>
<uuid>43cf30ee-1d29-2c34-ebda-f16b9c2472bc</uuid>
<memory>262144</memory>
<currentMemory>262144</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64' machine='pc-0.12'>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>
<disk type='file' device='disk'>
<source file='/dev/vgvm/lvm01'/>
<target dev='hda' bus='ide'/>
</disk>
<interface type='bridge'>
<mac address='52:54:00:19:fd:7c'/>
<source bridge='br0'/>
<target dev='vnet0'/>
<model type='virtio'/>
</interface>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1'/>
<video>
<model type='cirrus' vram='9216' heads='1'/>
</video>
</devices>
<seclabel type='dynamic' model='apparmor'/>
</domain>

I can't connect to the machine via SSH with the given IP. I can't ping
too. I have no clue about what can be wrong. I did some research on
this list but no lucky...

TIA,
--
Walter.

--
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 06-03-2010, 06:09 AM
Imre Gergely
 
Default No guest network with KVM using vmbuilder

Did you try connecting through VNC to it, to see what's happening? Does
the guest get an IP address on it's network interface?

On 05/25/2010 05:42 PM, Walter Souto wrote:
> Hi, I hope I'm not asking something dummy, anyway...
>
> So, I'd use vmbuilder to create a VM like this:
>
> sudo vmbuilder kvm ubuntu
> --suite lucid --flavour virtual --arch amd64 -o -v
> --libvirt qemu:///system
> --cpus 1 --mem 256
> --rootsize 8192 --swapsize 2048
> --hostname vm101
> --ip 10.0.3.11 --mask 255.255.252.0 --net 10.0.0.0 --bcast 10.0.3.255
> --gw 10.0.3.254 --dns 10.0.3.254 --bridge br0
> --user sysadmin --name SysAdmin --pass 656667
> --addpkg acpid
> --addpkg openssh-server
> --mirror http://ironman:9999/ubuntu
> --raw /dev/vgvm/lvm01
>
> The host (lucid) has bridge br0 configured and forwarding with
> 10.0.0.1 / 255.255.252.0. The configurations seems to be ok:
>
> <domain type='kvm'>
> <name>vm101</name>
> <uuid>43cf30ee-1d29-2c34-ebda-f16b9c2472bc</uuid>
> <memory>262144</memory>
> <currentMemory>262144</currentMemory>
> <vcpu>1</vcpu>
> <os>
> <type arch='x86_64' machine='pc-0.12'>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>
> <disk type='file' device='disk'>
> <source file='/dev/vgvm/lvm01'/>
> <target dev='hda' bus='ide'/>
> </disk>
> <interface type='bridge'>
> <mac address='52:54:00:19:fd:7c'/>
> <source bridge='br0'/>
> <target dev='vnet0'/>
> <model type='virtio'/>
> </interface>
> <input type='mouse' bus='ps2'/>
> <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1'/>
> <video>
> <model type='cirrus' vram='9216' heads='1'/>
> </video>
> </devices>
> <seclabel type='dynamic' model='apparmor'/>
> </domain>
>
> I can't connect to the machine via SSH with the given IP. I can't ping
> too. I have no clue about what can be wrong. I did some research on
> this list but no lucky...
>
> TIA,
> --
> Walter.
>

--
Imre Gergely
Yahoo!: gergelyimre | ICQ#: 101510959
MSN: gergely_imre | GoogleTalk: gergelyimre
gpg --keyserver subkeys.pgp.net --recv-keys 0x34525305

--
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 06-03-2010, 03:37 PM
Mark Foster
 
Default No guest network with KVM using vmbuilder

I have seen two separate cases where vmbuilder on lucid produces a
non-working VM.
The VMs will boot but the / is read-only and there are tons of
ATA errors upon booting.
It might be the same problem.

My work-around was to use virt-install method.

On 06/02/2010 11:09 PM, Imre Gergely wrote:
> Did you try connecting through VNC to it, to see what's happening? Does
> the guest get an IP address on it's network interface?
>
> On 05/25/2010 05:42 PM, Walter Souto wrote:
>
>> Hi, I hope I'm not asking something dummy, anyway...
>>
>> So, I'd use vmbuilder to create a VM like this:
>>
>> sudo vmbuilder kvm ubuntu
>> --suite lucid --flavour virtual --arch amd64 -o -v
>> --libvirt qemu:///system
>> --cpus 1 --mem 256
>> --rootsize 8192 --swapsize 2048
>> --hostname vm101
>> --ip 10.0.3.11 --mask 255.255.252.0 --net 10.0.0.0 --bcast 10.0.3.255
>> --gw 10.0.3.254 --dns 10.0.3.254 --bridge br0
>> --user sysadmin --name SysAdmin --pass 656667
>> --addpkg acpid
>> --addpkg openssh-server
>> --mirror http://ironman:9999/ubuntu
>> --raw /dev/vgvm/lvm01
>>
>> The host (lucid) has bridge br0 configured and forwarding with
>> 10.0.0.1 / 255.255.252.0. The configurations seems to be ok:
>>
>> <domain type='kvm'>
>> <name>vm101</name>
>> <uuid>43cf30ee-1d29-2c34-ebda-f16b9c2472bc</uuid>
>> <memory>262144</memory>
>> <currentMemory>262144</currentMemory>
>> <vcpu>1</vcpu>
>> <os>
>> <type arch='x86_64' machine='pc-0.12'>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>
>> <disk type='file' device='disk'>
>> <source file='/dev/vgvm/lvm01'/>
>> <target dev='hda' bus='ide'/>
>> </disk>
>> <interface type='bridge'>
>> <mac address='52:54:00:19:fd:7c'/>
>> <source bridge='br0'/>
>> <target dev='vnet0'/>
>> <model type='virtio'/>
>> </interface>
>> <input type='mouse' bus='ps2'/>
>> <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1'/>
>> <video>
>> <model type='cirrus' vram='9216' heads='1'/>
>> </video>
>> </devices>
>> <seclabel type='dynamic' model='apparmor'/>
>> </domain>
>>
>> I can't connect to the machine via SSH with the given IP. I can't ping
>> too. I have no clue about what can be wrong. I did some research on
>> this list but no lucky...
>>
>> TIA,
>> --
>> Walter.
>>
>>
>


--
I hate racists. Mark D. Foster <mark@foster.cc>
http://mark.foster.cc/ | http://www.freegeekseattle.org/



--
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 11:16 AM.

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