PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > Running QEMU from a cron job
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

Running QEMU from a cron job

Réponse
 
LinkBack Outils de la discussion
Vieux 23/02/2007, 04h10   #1
Nate Bargmann
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Running QEMU from a cron job

I am wanting to restart a QEMU virtual machine from a cron entry, let
the VM do something, and then after a period of time freeze the VM
until the next day. After reading the docs and browsing the Web for a
few days, I'm not so sure this is possible.

Of course, much control is available interactively, and maybe I'm just
not seeing the way this could be done as few examples exist in the user
docs. Any tips will be appreciated.

- Nate >>

--
Wireless | Amateur Radio Station N0NB | Successfully Microsoft
Amateur radio exams; ham radio; Linux info @ | free since January 1998.
http://www.qsl.net/n0nb/ | "Debian, the choice of
My Kawasaki KZ-650 SR @ | a GNU generation!"
http://www.networksplus.net/n0nb/ | http://www.debian.org


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 23/02/2007, 18h50   #2
Joshua J. Kugler
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Running QEMU from a cron job

On Friday 23 February 2007 07:00, Linas Žvirblis wrote:
> And do not forget that QEMU is mostly a GUI application, so you will
> probably need to run xorg.


You can run qemu headless, with a virtual framebuffer. Makes for a virtual
machine you connect to via VNC to view.

--
Joshua Kugler
Lead System Admin -- Senior Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/ ID 0xDB26D7CE
PO Box 80086 -- Fairbanks, AK 99708 -- Ph: 907-456-5581 Fax: 907-456-3111
  Réponse avec citation
Vieux 23/02/2007, 19h10   #3
Nate Bargmann
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Running QEMU from a cron job

* Linas ??virblis <0x0007@gmail.com> [2007 Feb 23 10:01 -0600]:

> A much simpler solution would be to have QEMU started by cron, and set
> up the guest OS to shut down after doing something. Or you could run
> QEMU in snapshot mode and simply kill it, when not needed. Or... the
> possibilities are endless. What exactly do you want to achieve?


This was the way I had originally intended to do things and I think I
figured how to get this done. My issue was with getting qemu to shut
down. It now appears that if I start the VM with the -no-reboot option
and then tell the guest (Slackware 10.2) to 'shutdown -r now' qemu will
exit instead.

I don't need to have any interaction between the host and the guest, I
was just missing a reliable way to shut the thing down which I think
I've figured out.

My goal in all of this is to download a CVS tree of a project I'm
working on, build a snapshot tarball, upload it to a directory, delete
the tree, and exit. I've already got all of that working on a seperate
machine (which used to run full time) and now I'm trying to consolidate
everything onto this machine. It can do this in the middle of the
night when I sleep.

> And do not forget that QEMU is mostly a GUI application, so you will
> probably need to run xorg.


Thanks for pointing that out. That may be another area to work around
as well.

- Nate >>

--
Wireless | Amateur Radio Station N0NB | Successfully Microsoft
Amateur radio exams; ham radio; Linux info @ | free since January 1998.
http://www.qsl.net/n0nb/ | "Debian, the choice of
My Kawasaki KZ-650 SR @ | a GNU generation!"
http://www.networksplus.net/n0nb/ | http://www.debian.org


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 23/02/2007, 20h20   #4
Linas Žvirblis
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Running QEMU from a cron job

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nate Bargmann wrote:

>> And do not forget that QEMU is mostly a GUI application, so you will
>> probably need to run xorg.

>
> Thanks for pointing that out. That may be another area to work around
> as well.


As Joshua Kugler already stated, you can run QEMU headless; and there is
more than one way to do it. Apart from one already mentioned, you could
try starting QEMU in non-graphics mode, as if it had no VGA card. Same
way one would run a headless server.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF30oVztOe9mov/y4RApPKAJoCAqsfRBM3uQCnV4PYeyXM73/EVQCfcu63
1cfxrN91eG2btM9d6EOJTw8=
=Neot
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 19h38.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12811 seconds with 12 queries