qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Lonnie Mendez <lmendez19@austin.rr.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] loadvm and tap problem (perhaps a bug?!)
Date: Mon, 27 Nov 2006 02:31:33 -0600	[thread overview]
Message-ID: <1164616293.19394.14.camel@vaio> (raw)
In-Reply-To: <456253AA.5000109@gmail.com>

On Tue, 2006-11-21 at 02:17 +0100, The Moon Seeker wrote:
> 
> phase 1 (first boot)
> 
> brctl addbr link1
> 
> qemu -hda PC1.cow -hdb fat:qemuconfigs/pc1  -net 
> nic,macaddr=00:ab:cd:7a:91:8c -net 
> tap,script=pc1.eth1.sh,ifname=pc1.eth1 -net 
> nic,macaddr=00:ab:cd:28:14:c1 -net 
> tap,script=pc1.eth0.sh,ifname=pc1.eth0 -m 128 -serial 
> tcp::3001,server,nowait -monitor tcp::4001,server,nowait
> 
> qemu -hda PC2.cow -hdb fat:qemuconfigs/pc2  -net 
> nic,macaddr=00:ab:cd:51:66:69 -net 
> tap,script=pc2.eth0.sh,ifname=pc2.eth0 -net 
> nic,macaddr=00:ab:cd:2b:97:d7 -net 
> tap,script=pc2.eth1.sh,ifname=pc2.eth1 -m 128 -serial 
> tcp::3000,server,nowait -monitor tcp::4000,server,nowait
> 
> the tap scripts :
> 
> pc1.eth0
> 
> #!/bin/sh
> ifconfig $1 0
> sudo brctl addif link1 $1
> 
> pc1.eth1
> 
> #!/bin/sh
> ifconfig $1 0
> 
> pc2.eth0
> 
> #!/bin/sh
> ifconfig $1 0
> sudo brctl addif link1 $1
> 
> pc2.eth0
> 
> #!/bin/sh
> ifconfig $1 0
> 
> # at this point I can ping each vm
> 
> phase 2 (save vm state):
> 
> from each vm :
> 
> ctrl+alt+2, then
> savevm pc1.stm
> savevm pc2.stm
> 
> phase 3 (stop vm and delete the bridge) :
> 
> brctl delbr link1
> 
> phase 3 (reboot the vm and the network from state machine):
> 
> brctl addbr link1

You shouldn't have to delete the bridge interface - in fact deleting it
and then starting the qemu sessions without a bridge present invalidates
the qemu-ifup scripts usage of the bridge link1.

  reply	other threads:[~2006-11-27  8:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-21  1:17 [Qemu-devel] loadvm and tap problem (perhaps a bug?!) The Moon Seeker
2006-11-27  8:31 ` Lonnie Mendez [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-11-21  8:29 The Moon Seeker
2006-11-21  9:21 ` David Roberts
2006-11-21  9:50   ` The Moon Seeker
2006-11-21 10:27   ` The Moon Seeker
2006-11-21 11:16   ` The Moon Seeker
2006-11-21 11:19     ` David Roberts
2006-11-21 12:04       ` The Moon Seeker
2006-11-21 12:08         ` David Roberts

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1164616293.19394.14.camel@vaio \
    --to=lmendez19@austin.rr.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).