~ubuntu-branches/ubuntu/trusty/libguestfs/trusty

« back to all changes in this revision

Viewing changes to po-docs/ja/guestfs.pod

  • Committer: Bazaar Package Importer
  • Author(s): Hilko Bengen
  • Date: 2011-10-20 13:13:00 UTC
  • mto: (1.2.1 upstream) (15.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: james.westby@ubuntu.com-20111020131300-vtuaa253sbrvmn7b
Tags: upstream-1.12.8
ImportĀ upstreamĀ versionĀ 1.12.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
910
910
Note that libguestfs also calls qemu with the -help and -version options in
911
911
order to determine features.
912
912
 
 
913
Wrappers can also be used to edit the options passed to qemu.  In the
 
914
following example, the C<-machine ...> option (C<-machine> and the following
 
915
argument) are removed from the command line and replaced with C<-machine
 
916
pc,accel=tcg>.  The while loop iterates over the options until it finds the
 
917
right one to remove, putting the remaining options into the C<args> array.
 
918
 
 
919
 #!/bin/bash -
 
920
 
 
921
 i=0
 
922
 while [ $# -gt 0 ]; do
 
923
     case "$1" in
 
924
     -machine)
 
925
         shift 2;;
 
926
     *)
 
927
         args[i]="$1"
 
928
         (( i++ ))
 
929
         shift ;;
 
930
     esac
 
931
 done
 
932
 
 
933
 exec qemu-kvm -machine pc,accel=tcg "${args[@]}"
 
934
 
913
935
=head2 ATTACHING TO RUNNING DAEMONS
914
936
 
915
937
I<Note (1):> This is B<highly experimental> and has a tendency to eat
2765
2787
 
2766
2788
L<virt-rescue(1)> command and documentation.
2767
2789
 
 
2790
=item C<resize>
 
2791
 
 
2792
L<virt-resize(1)> command and documentation.
 
2793
 
2768
2794
=item C<src>
2769
2795
 
2770
2796
Source code to the C library.
2771
2797
 
2772
2798
=item C<tools>
2773
2799
 
2774
 
Command line tools written in Perl (L<virt-resize(1)> and many others).
 
2800
Command line tools written in Perl (L<virt-win-reg(1)> and many others).
2775
2801
 
2776
2802
=item C<test-tool>
2777
2803
 
3014
3040
L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>,
3015
3041
L<virt-inspector(1)>, L<virt-list-filesystems(1)>,
3016
3042
L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>,
3017
 
L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>,
3018
 
L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>,
 
3043
L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>,
 
3044
L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>,
3019
3045
L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>.
3020
3046
 
3021
3047
Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>,