From: Edward Batraev <BatraevEM@mail.ru>
To: j.a.popov@mail.ru
Cc: Saratov Linux User Group Maillist <sarlug@lists.lug.ru>
Subject: Re: [Sarlug] QEMU корректное выключение гостевой машиной
Date: Fri, 11 Sep 2009 20:36:45 +0400
Message-ID: <4AAA7C9D.7030305@mail.ru> (raw)
In-Reply-To: <1252660016.6803.1.camel@popov-desktop>
вот так запускаю
echo "Mounting RAM file systems"
mount -t ramfs -o maxsize=1540M none /mnt/ram
echo "Copying Swap images"
cp /mnt/test/img/ram0.img /mnt/ram/ram1.img
cp /mnt/test/img/ram0.img /mnt/ram/ram2.img
cp /mnt/test/img/ram0.img /mnt/ram/ram3.img
echo "Starting Win1"
qemu -daemonize -m 256 -vnc xx.xx.xx.xx:0 -localtime -name win1 \
-k ru -hda /mnt/raid0/win1/test.img -hdb /mnt/ram/ram1.img \
-net nic,macaddr=52:54:00:12:34:55 \
-net tap,ifname=tap0,script=/usr/sbin/guest-ifup.sh &>/dev/null \
sleep 10
echo "Starting Win2"
qemu -daemonize -m 256 -vnc xx.xx.xx.xx:1 -localtime -name win2 \
-k ru -hda /mnt/raid0/win2/test.img -hdb /mnt/ram/ram2.img \
-net nic,macaddr=52:54:00:12:34:56 \
-net tap,ifname=tap1,script=/usr/sbin/guest-ifup.sh &>/dev/null \
sleep 10
echo "Starting Win3"
qemu -daemonize -m 256 -vnc xx.xx.xx.xx:1 -localtime -name win3 \
-k ru -hda /mnt/raid0/win3/test.img -hdb /mnt/ram/ram2.img \
-net nic,macaddr=52:54:00:12:34:57 \
-net tap,ifname=tap2,script=/usr/sbin/guest-ifup.sh &>/dev/null \
sleep 10
а так выключаю...
echo "Shutdown guest systems"
for i in `ps awx | grep qemu | grep win | awk '{print $1}'`; do
kill -s TERM $i
done
sleep 5
echo "Unmounting RAM file system"
umount /mnt/ram
винда никак не ругается...
Яков Попов пишет:
> Ради интереса:
> 1) вы использовали kill, да?
> 2) попробуйте посмотреть виртуальную винду, когда все qemu вырубаются.
> Винда-то должна как-то отреагировать?
>
> Напишите, это интересно
>
--
Best regards Edward Batraev aka AbLoM.
BatraevEM@mail.ru
next prev parent reply other threads:[~2009-09-11 16:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-09 16:30 Edward Batraev
2009-09-09 17:20 ` Яков Попов
2009-09-09 18:04 ` Edward Batraev
2009-09-09 17:59 ` Edward Batraev
2009-09-09 18:07 ` Edward Batraev
2009-09-09 19:04 ` Ivan Afonichev
2009-09-09 19:10 ` Michael Zherebin
2009-09-10 3:10 ` Edward Batraev
2009-09-10 4:11 ` Sergey Mihailov
2009-09-10 4:31 ` Яков Попов
2009-09-10 16:29 ` Edward Batraev
2009-09-11 16:36 ` Edward Batraev [this message]
2009-09-13 3:21 ` Edward Batraev
2009-09-10 7:26 ` Ivan Afonichev
2009-09-10 14:25 ` Яков Попов
2009-09-10 16:17 ` Aleksei Sinitsyn
2009-09-10 16:34 ` Edward Batraev
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=4AAA7C9D.7030305@mail.ru \
--to=batraevem@mail.ru \
--cc=j.a.popov@mail.ru \
--cc=sarlug@lists.lug.ru \
/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
Saratov Linux User Group
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sarlug/0 sarlug/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sarlug sarlug/ http://lore.altlinux.org/sarlug \
sarlug@lists.lug.ru sarlug@lug.ru
public-inbox-index sarlug
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sarlug
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git