qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] loadvm and tap problem (perhaps a bug?!)
@ 2006-11-21  8:29 The Moon Seeker
  2006-11-21  9:21 ` David Roberts
  0 siblings, 1 reply; 15+ messages in thread
From: The Moon Seeker @ 2006-11-21  8:29 UTC (permalink / raw)
  To: qemu-devel

Hi,

I've two server running on qemu, there are connecte via tun/tap. I try 
to save the vm state and then restart the servers from vm state. The vm 
start correctly but the the networkin doesn't work. I don't know, 
perhaps my scripts are wrong?!

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

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::3000,server,nowait -monitor tcp::4000,server,nowait -loadvm pc1.stm

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::3001,server,nowait -monitor tcp::4001,server,nowait -loadvm pc2.stm

# the vm starts buts it's impossible to ping vm ... what's happend??

what's wrongg????!!

Thank you

-Francis

^ permalink raw reply	[flat|nested] 15+ messages in thread
* [Qemu-devel] loadvm and tap problem (perhaps a bug?!)
@ 2006-11-21  1:17 The Moon Seeker
  2006-11-27  8:31 ` Lonnie Mendez
  0 siblings, 1 reply; 15+ messages in thread
From: The Moon Seeker @ 2006-11-21  1:17 UTC (permalink / raw)
  To: qemu-devel

Hi,

I've two server running on qemu, there are connecte via tun/tap. I try 
to save the vm state and then restart the servers from vm state. The vm 
start correctly but the the networkin doesn't work. I don't know, 
perhaps my scripts are wrong?!

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

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::3000,server,nowait -monitor tcp::4000,server,nowait -loadvm pc1.stm

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::3001,server,nowait -monitor tcp::4001,server,nowait -loadvm pc2.stm

# the vm starts buts it's impossible to ping vm ... what's happend??

what's wrongg????!!

Thank you

-Francis

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2006-12-14 13:29 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-21  8:29 [Qemu-devel] loadvm and tap problem (perhaps a bug?!) 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
2006-11-21 19:57           ` [Qemu-devel] Bounce message (was: loadvm and tap problem (perhaps a bug?!)) Joshua Root
2006-11-21 21:10             ` Michael McConnell
2006-12-07 22:51               ` [Qemu-devel] Bounce message Stefan Weil
2006-12-14  9:22                 ` RE : " Sylvain Petreolle
2006-12-14 13:29                   ` Martin Guy
  -- strict thread matches above, loose matches on Subject: below --
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 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).