X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=rescue%2Fvirt-rescue.pod;h=415bcda9a39c24f256885e1e11b3b8fc7b9fef65;hb=75893a554c374f59318844bca3433e6a2d6c774b;hp=df4fb30cc964306c5ecbe085c3b128bc2e5cfb78;hpb=94e1465129ae738367421c2515ee23623ee80ed9;p=libguestfs.git diff --git a/rescue/virt-rescue.pod b/rescue/virt-rescue.pod index df4fb30..415bcda 100755 --- a/rescue/virt-rescue.pod +++ b/rescue/virt-rescue.pod @@ -73,6 +73,9 @@ want to partition that file (although we would recommend using L instead as it is more suitable for this purpose). You can even use virt-rescue on things like SD cards. +Virt-rescue does not require root. You only need to run it as root if +you need root to open the disk image. + This tool is just designed for quick interactive hacking on a virtual machine. For more structured access to a virtual machine disk image, you should use L. To get a structured shell that you can @@ -152,7 +155,7 @@ parameter is specified in megabytes. =item B<--network> -Enable QEMU user networking in the guest. +Enable QEMU user networking in the guest. See L. =item B<-r> @@ -203,6 +206,42 @@ name as a guest. For compatibility the old style is still supported. +=head1 NETWORK + +Adding the I<--network> option enables QEMU user networking +in the rescue appliance. There are some differences between +user networking and ordinary networking: + +=over 4 + +=item ping does not work + +Because the ICMP ECHO_REQUEST protocol generally requires root in +order to send the ping packets, and because virt-rescue must be able +to run as non-root, QEMU user networking is not able to emulate the +L command. The ping command will appear to resolve addresses +but will not be able to send or receive any packets. This does not +mean that the network is not working. + +=item cannot receive connections + +QEMU user networking cannot receive incoming connections. + +=item making TCP connections + +The virt-rescue appliance needs to be small and so does not include +many network tools. In particular there is no L command. +You can make TCP connections from the shell using the magical +ChostnameE/EportE> syntax: + + exec 3<>/dev/tcp/redhat.com/80 + echo "GET /" >&3 + cat <&3 + +See L for more details. + +=back + =head1 ENVIRONMENT VARIABLES Several environment variables affect virt-rescue. See