All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Auto start script
@ 2012-12-07 12:39 Ignacio Geli
  0 siblings, 0 replies; only message in thread
From: Ignacio Geli @ 2012-12-07 12:39 UTC (permalink / raw)
  To: qemu-devel

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-12-07 12:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-07 12:39 [Qemu-devel] Auto start script Ignacio Geli

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.