source: MondoRescue/branches/stable/tools/mkqemu@ 1471

Last change on this file since 1471 was 1467, checked in by Bruno Cornec, 17 years ago
  • QEMU on x86_64 should not use kqemu
  • bkphw documented and fixed (first step)
  • Property svn:executable set to *
File size: 591 bytes
RevLine 
[440]1#!/bin/bash
2#
3# $Id$
4#
[556]5# Call virtual machine with qemu
[440]6#
[1334]7(
8dname=`dirname $0`
9prem=`echo $dname |cut -c1`
10if [ _${prem} = _"/" ]; then
11 export TOOLHOME=$dname
12else
13 export TOOLHOME=${PWD}/$dname
14fi
[440]15
[1334]16. $TOOLHOME/common-env
17. $TOOLHOME/distro-env
18
[1042]19if [ _"$1" = _"" ]; then
[556]20 echo "Syntax: qemu vm"
[440]21 exit -1
22else
[556]23 m=$1
[440]24fi
[1467]25. $TOOLHOME/qemu-env
[440]26
[1340]27if [ _"$QEMUAPP" != _"" ]; then
28 $qemucmd -m 256 $QEMUOPT -append "$QEMUAPP" -redir tcp:${sp}:${ipvm}:22 /users/qemu/$m.qemu
29else
30 $qemucmd -m 256 $QEMUOPT -redir tcp:${sp}:${ipvm}:22 /users/qemu/$m.qemu
31fi
[1334]32) 2>&1 | tee /tmp/mkqemu.log
Note: See TracBrowser for help on using the repository browser.