From: Ignacio Geli <igeli@itecnis.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Auto start script
Date: Fri, 07 Dec 2012 09:39:12 -0300 [thread overview]
Message-ID: <50C1E370.7030007@itecnis.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1338 bytes --]
Hi all...
Sorry if im not posting in the proper list, but i have a solaris
2.5.1 up and running under qemu virtualization, the thing is that every
time i boot it i need to enter "boot disk0" on the console to get it up
and if I close that console i goes down.
I write a few lines to make it automatic:
/usr/local/sbin/boot-sun.sh
----------------------------------
#!/usr/bin/expect
set timeout -1
log_user 0
spawn /usr/local/sbin/start-sun.sh
expect "ok"
send "boot disk0 \r"
expect eof
----------------------------------
/usr/local/sbin/start-sun.sh:
----------------------------------
sudo /opt/qemu/sparc-softmmu/qemu-system-sparc -M SS-5 -startdate
2009-12-13 -m 256 -bios /opt/solaris/ss5.bin -nographic -hda
/srv/discos-solaris/solaris.disk1 -hdb /srv/discos-solaris/solaris.disk2
-hdc /srv/discos-solaris/solaris.disk3 -device lance -net nic -net
tap,ifname=tap0
----------------------------------
It did work some times, but now is not working. Im no expert and do not
know how to debub the script since i cant get output from expect
command. Maybe someone write something similar to make it boot
automatically. any help will be apreciated
Regards
Ignacio
--
ITECNIS SRL <http:/www.itecnis.com>
Simplicity is the ultimate sophistication
Ignacio Geli
Implementación y Soporte
[-- Attachment #2.1: Type: text/html, Size: 2937 bytes --]
[-- Attachment #2.2: logo-mail2.jpg --]
[-- Type: image/jpeg, Size: 6391 bytes --]
reply other threads:[~2012-12-07 12:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=50C1E370.7030007@itecnis.com \
--to=igeli@itecnis.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.