How to use qemu with a network brdige The bridge should have dhcp Not nat
On Sun, 4 Jul 2010, mattias jonsson wrote:
Assuming you're using the CentOS 5.x libvirt setup, then
1. Create /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0 TYPE=Bridge BOOTPROTO=dhcp ONBOOT=yes DELAY=0
2. Edit /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0 HWADDR=xx:xx:xx:xx:xx:xx ONBOOT=yes
3. Edit /etc/libvirt/qemu/networks/default.xml
<network> <name>default</name> <uuid>...long uuid...</uuid> <bridge name="br0" /> <forward mode="route" dev="eth0"/> </network>
Restart networking on the host server, then create (or modify) your qemu VM.
On Sun, Jul 4, 2010 at 7:55 AM, Stephen Harris lists@spuddy.org wrote:
On Sun, Jul 04, 2010 at 07:47:40AM -0700, Paul Heinlein wrote:
Yes. Some more useful info can be found in the doc:
http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Virtualizat...
Akemi
Ok thanks But how to use qemu with it?
-----Ursprungligt meddelande----- Från: centos-bounces@centos.org [mailto:centos-bounces@centos.org] För Akemi Yagi Skickat: den 4 juli 2010 17:39 Till: CentOS mailing list Ämne: Re: [CentOS] qemu
On Sun, Jul 4, 2010 at 7:55 AM, Stephen Harris lists@spuddy.org wrote:
On Sun, Jul 04, 2010 at 07:47:40AM -0700, Paul Heinlein wrote:
Yes. Some more useful info can be found in the doc:
http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Virtualizat ion_Guide/sect-Virtualization-Network_Configuration-Bridged_networking_with_ libvirt.html
Akemi _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Thanks for all info But how to start agust not created with virt-install E.g a downloaded image
-----Ursprungligt meddelande----- Från: centos-bounces@centos.org [mailto:centos-bounces@centos.org] För Mathieu Baudier Skickat: den 4 juli 2010 21:27 Till: CentOS mailing list Ämne: Re: [CentOS] qemu
Why is this third step needed?
Isn't it enough to simply add a network interface to the guest with br0 as source? (that's how I'm currently proceeding)
e.g.: <interface type='bridge'> <mac address='yy:yy:yy:yy:yy:yy' /> <source bridge='br0' /> <model type='virtio' /> </interface> _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 05/07/10 06:05, mattias jonsson wrote:
Just to confirm what you are asking for. 1. You have a host with a bridge already setup? 2. That bridge is attached to a network that has a DNCP server on it? 3. You want to run a qemu guest from the command-line on a disk image file?
Does using the userspace network get you what you want? That is,
qemu-kvm -M pc -net nic -net user -hda foo.img
K
On Sun, 4 Jul 2010, Mathieu Baudier wrote:
Yes, that's enough. The OP's question, however, suggested that he wanted the bridged networking to be the default, so I added the third step to make that setup automatic.