|
|
9bac43 |
From dfa2037d390047a7d7c7b13f779443bfc6c3709d Mon Sep 17 00:00:00 2001
|
|
|
9bac43 |
From: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9bac43 |
Date: Fri, 14 Nov 2014 08:51:50 +0100
|
|
|
9bac43 |
Subject: Use qemu-kvm in documentation instead of qemu-system-<arch>
|
|
|
9bac43 |
|
|
|
9bac43 |
Patchwork-id: 62380
|
|
|
9bac43 |
O-Subject: [RHEV-7.1 qemu-kvm-rhev PATCHv4] Use qemu-kvm in documentation instead of qemu-system-i386
|
|
|
9bac43 |
Bugzilla: 1140620
|
|
|
9bac43 |
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
9bac43 |
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
|
|
|
9bac43 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
9bac43 |
|
|
|
9bac43 |
From: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9bac43 |
|
|
|
9bac43 |
We change the name and location of qemu-kvm binaries. Update documentation
|
|
|
9bac43 |
to reflect this change. Only architectures available in RHEL are updated.
|
|
|
9bac43 |
|
|
|
9bac43 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9bac43 |
|
|
|
9bac43 |
Rebase Notes (2.10.0):
|
|
|
9bac43 |
- Changed patch name and updated commit message.
|
|
|
9bac43 |
|
|
|
9bac43 |
Rebase Notes (2.9.0):
|
|
|
9bac43 |
- fixed chunks missed on 2.8 rebase
|
|
|
9bac43 |
|
|
|
9bac43 |
(cherry picked from commit 1c2dac56d5e710faebe25b7aa9cac594ec0f9d4b)
|
|
|
9bac43 |
---
|
|
|
9bac43 |
qemu-doc.texi | 110 ++++++++++++++++++++---------------------
|
|
|
9bac43 |
qemu-options.hx | 148 ++++++++++++++++++++++++++++----------------------------
|
|
|
9bac43 |
2 files changed, 129 insertions(+), 129 deletions(-)
|
|
|
9bac43 |
|
|
|
9bac43 |
diff --git a/qemu-doc.texi b/qemu-doc.texi
|
|
|
9bac43 |
index 9811476..da0e513 100644
|
|
|
9bac43 |
--- a/qemu-doc.texi
|
|
|
9bac43 |
+++ b/qemu-doc.texi
|
|
|
9bac43 |
@@ -202,12 +202,12 @@ Note that, by default, GUS shares IRQ(7) with parallel ports and so
|
|
|
9bac43 |
QEMU must be told to not have parallel ports to have working GUS.
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 dos.img -soundhw gus -parallel none
|
|
|
9bac43 |
+qemu-kvm dos.img -soundhw gus -parallel none
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
Alternatively:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 dos.img -device gus,irq=5
|
|
|
9bac43 |
+qemu-kvm dos.img -device gus,irq=5
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
Or some other unclaimed IRQ.
|
|
|
9bac43 |
@@ -223,7 +223,7 @@ CS4231A is the chip used in Windows Sound System and GUSMAX products
|
|
|
9bac43 |
Download and uncompress the linux image (@file{linux.img}) and type:
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 linux.img
|
|
|
9bac43 |
+qemu-kvm linux.img
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
Linux should boot and give you a prompt.
|
|
|
9bac43 |
@@ -233,7 +233,7 @@ Linux should boot and give you a prompt.
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
@c man begin SYNOPSIS
|
|
|
9bac43 |
-@command{qemu-system-i386} [@var{options}] [@var{disk_image}]
|
|
|
9bac43 |
+@command{qemu-kvm} [@var{options}] [@var{disk_image}]
|
|
|
9bac43 |
@c man end
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
@@ -891,7 +891,7 @@ QEMU can automatically create a virtual FAT disk image from a
|
|
|
9bac43 |
directory tree. In order to use it, just type:
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 linux.img -hdb fat:/my_directory
|
|
|
9bac43 |
+qemu-kvm linux.img -hdb fat:/my_directory
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
Then you access access to all the files in the @file{/my_directory}
|
|
|
9bac43 |
@@ -901,14 +901,14 @@ them via SAMBA or NFS. The default access is @emph{read-only}.
|
|
|
9bac43 |
Floppies can be emulated with the @code{:floppy:} option:
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 linux.img -fda fat:floppy:/my_directory
|
|
|
9bac43 |
+qemu-kvm linux.img -fda fat:floppy:/my_directory
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
A read/write support is available for testing (beta stage) with the
|
|
|
9bac43 |
@code{:rw:} option:
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 linux.img -fda fat:floppy:rw:/my_directory
|
|
|
9bac43 |
+qemu-kvm linux.img -fda fat:floppy:rw:/my_directory
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
What you should @emph{never} do:
|
|
|
9bac43 |
@@ -926,14 +926,14 @@ QEMU can access directly to block device exported using the Network Block Device
|
|
|
9bac43 |
protocol.
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 linux.img -hdb nbd://my_nbd_server.mydomain.org:1024/
|
|
|
9bac43 |
+qemu-kvm linux.img -hdb nbd://my_nbd_server.mydomain.org:1024/
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
If the NBD server is located on the same host, you can use an unix socket instead
|
|
|
9bac43 |
of an inet socket:
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 linux.img -hdb nbd+unix://?socket=/tmp/my_socket
|
|
|
9bac43 |
+qemu-kvm linux.img -hdb nbd+unix://?socket=/tmp/my_socket
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
In this case, the block device must be exported using qemu-nbd:
|
|
|
9bac43 |
@@ -950,23 +950,23 @@ qemu-nbd --socket=/tmp/my_socket --share=2 my_disk.qcow2
|
|
|
9bac43 |
@noindent
|
|
|
9bac43 |
and then you can use it with two guests:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 linux1.img -hdb nbd+unix://?socket=/tmp/my_socket
|
|
|
9bac43 |
-qemu-system-i386 linux2.img -hdb nbd+unix://?socket=/tmp/my_socket
|
|
|
9bac43 |
+qemu-kvm linux1.img -hdb nbd+unix://?socket=/tmp/my_socket
|
|
|
9bac43 |
+qemu-kvm linux2.img -hdb nbd+unix://?socket=/tmp/my_socket
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
If the nbd-server uses named exports (supported since NBD 2.9.18, or with QEMU's
|
|
|
9bac43 |
own embedded NBD server), you must specify an export name in the URI:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 -cdrom nbd://localhost/debian-500-ppc-netinst
|
|
|
9bac43 |
-qemu-system-i386 -cdrom nbd://localhost/openSUSE-11.1-ppc-netinst
|
|
|
9bac43 |
+qemu-kvm -cdrom nbd://localhost/debian-500-ppc-netinst
|
|
|
9bac43 |
+qemu-kvm -cdrom nbd://localhost/openSUSE-11.1-ppc-netinst
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
The URI syntax for NBD is supported since QEMU 1.3. An alternative syntax is
|
|
|
9bac43 |
also available. Here are some example of the older syntax:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 linux.img -hdb nbd:my_nbd_server.mydomain.org:1024
|
|
|
9bac43 |
-qemu-system-i386 linux2.img -hdb nbd:unix:/tmp/my_socket
|
|
|
9bac43 |
-qemu-system-i386 -cdrom nbd:localhost:10809:exportname=debian-500-ppc-netinst
|
|
|
9bac43 |
+qemu-kvm linux.img -hdb nbd:my_nbd_server.mydomain.org:1024
|
|
|
9bac43 |
+qemu-kvm linux2.img -hdb nbd:unix:/tmp/my_socket
|
|
|
9bac43 |
+qemu-kvm -cdrom nbd:localhost:10809:exportname=debian-500-ppc-netinst
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
@node disk_images_sheepdog
|
|
|
9bac43 |
@@ -991,7 +991,7 @@ qemu-img convert @var{filename} sheepdog:///@var{image}
|
|
|
9bac43 |
|
|
|
9bac43 |
You can boot from the Sheepdog disk image with the command:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 sheepdog:///@var{image}
|
|
|
9bac43 |
+qemu-kvm sheepdog:///@var{image}
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
You can also create a snapshot of the Sheepdog image like qcow2.
|
|
|
9bac43 |
@@ -1003,7 +1003,7 @@ where @var{tag} is a tag name of the newly created snapshot.
|
|
|
9bac43 |
To boot from the Sheepdog snapshot, specify the tag name of the
|
|
|
9bac43 |
snapshot.
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 sheepdog:///@var{image}#@var{tag}
|
|
|
9bac43 |
+qemu-kvm sheepdog:///@var{image}#@var{tag}
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
You can create a cloned image from the existing snapshot.
|
|
|
9bac43 |
@@ -1016,14 +1016,14 @@ is its tag name.
|
|
|
9bac43 |
You can use an unix socket instead of an inet socket:
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 sheepdog+unix:///@var{image}?socket=@var{path}
|
|
|
9bac43 |
+qemu-kvm sheepdog+unix:///@var{image}?socket=@var{path}
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
If the Sheepdog daemon doesn't run on the local host, you need to
|
|
|
9bac43 |
specify one of the Sheepdog servers to connect to.
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
qemu-img create sheepdog://@var{hostname}:@var{port}/@var{image} @var{size}
|
|
|
9bac43 |
-qemu-system-i386 sheepdog://@var{hostname}:@var{port}/@var{image}
|
|
|
9bac43 |
+qemu-kvm sheepdog://@var{hostname}:@var{port}/@var{image}
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
@node disk_images_iscsi
|
|
|
9bac43 |
@@ -1065,7 +1065,7 @@ Various session related parameters can be set via special options, either
|
|
|
9bac43 |
in a configuration file provided via '-readconfig' or directly on the
|
|
|
9bac43 |
command line.
|
|
|
9bac43 |
|
|
|
9bac43 |
-If the initiator-name is not specified qemu will use a default name
|
|
|
9bac43 |
+If the initiator-name is not specified qemu-kvm will use a default name
|
|
|
9bac43 |
of 'iqn.2008-11.org.linux-kvm[:<name>'] where <name> is the name of the
|
|
|
9bac43 |
virtual machine.
|
|
|
9bac43 |
|
|
|
9bac43 |
@@ -1112,7 +1112,7 @@ cat >iscsi.conf <
|
|
|
9bac43 |
header-digest = "CRC32C"
|
|
|
9bac43 |
EOF
|
|
|
9bac43 |
|
|
|
9bac43 |
-qemu-system-i386 -drive file=iscsi://127.0.0.1/iqn.qemu.test/1 \
|
|
|
9bac43 |
+qemu-kvm -drive file=iscsi://127.0.0.1/iqn.qemu.test/1 \
|
|
|
9bac43 |
-readconfig iscsi.conf
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
@@ -1131,7 +1131,7 @@ tgtadm --lld iscsi --mode logicalunit --op new --tid 1 --lun 2 \
|
|
|
9bac43 |
-b /IMAGES/cd.iso --device-type=cd
|
|
|
9bac43 |
tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
|
|
|
9bac43 |
|
|
|
9bac43 |
-qemu-system-i386 -iscsi initiator-name=iqn.qemu.test:my-initiator \
|
|
|
9bac43 |
+qemu-kvm -iscsi initiator-name=iqn.qemu.test:my-initiator \
|
|
|
9bac43 |
-boot d -drive file=iscsi://127.0.0.1/iqn.qemu.test/1 \
|
|
|
9bac43 |
-cdrom iscsi://127.0.0.1/iqn.qemu.test/2
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
@@ -1144,11 +1144,11 @@ GlusterFS is a user space distributed file system.
|
|
|
9bac43 |
You can boot from the GlusterFS disk image with the command:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
URI:
|
|
|
9bac43 |
-qemu-system-x86_64 -drive file=gluster[+@var{type}]://[@var{host}[:@var{port}]]/@var{volume}/@var{path}
|
|
|
9bac43 |
+qemu-kvm -drive file=gluster[+@var{type}]://[@var{host}[:@var{port}]]/@var{volume}/@var{path}
|
|
|
9bac43 |
[?socket=...][,file.debug=9][,file.logfile=...]
|
|
|
9bac43 |
|
|
|
9bac43 |
JSON:
|
|
|
9bac43 |
-qemu-system-x86_64 'json:@{"driver":"qcow2",
|
|
|
9bac43 |
+qemu-kvm 'json:@{"driver":"qcow2",
|
|
|
9bac43 |
"file":@{"driver":"gluster",
|
|
|
9bac43 |
"volume":"testvol","path":"a.img","debug":9,"logfile":"...",
|
|
|
9bac43 |
"server":[@{"type":"tcp","host":"...","port":"..."@},
|
|
|
9bac43 |
@@ -1196,22 +1196,22 @@ qemu-img create gluster://@var{host}/@var{volume}/@var{path} @var{size}
|
|
|
9bac43 |
|
|
|
9bac43 |
Examples
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-x86_64 -drive file=gluster://1.2.3.4/testvol/a.img
|
|
|
9bac43 |
-qemu-system-x86_64 -drive file=gluster+tcp://1.2.3.4/testvol/a.img
|
|
|
9bac43 |
-qemu-system-x86_64 -drive file=gluster+tcp://1.2.3.4:24007/testvol/dir/a.img
|
|
|
9bac43 |
-qemu-system-x86_64 -drive file=gluster+tcp://[1:2:3:4:5:6:7:8]/testvol/dir/a.img
|
|
|
9bac43 |
-qemu-system-x86_64 -drive file=gluster+tcp://[1:2:3:4:5:6:7:8]:24007/testvol/dir/a.img
|
|
|
9bac43 |
-qemu-system-x86_64 -drive file=gluster+tcp://server.domain.com:24007/testvol/dir/a.img
|
|
|
9bac43 |
-qemu-system-x86_64 -drive file=gluster+unix:///testvol/dir/a.img?socket=/tmp/glusterd.socket
|
|
|
9bac43 |
-qemu-system-x86_64 -drive file=gluster+rdma://1.2.3.4:24007/testvol/a.img
|
|
|
9bac43 |
-qemu-system-x86_64 -drive file=gluster://1.2.3.4/testvol/a.img,file.debug=9,file.logfile=/var/log/qemu-gluster.log
|
|
|
9bac43 |
-qemu-system-x86_64 'json:@{"driver":"qcow2",
|
|
|
9bac43 |
+qemu-kvm -drive file=gluster://1.2.3.4/testvol/a.img
|
|
|
9bac43 |
+qemu-kvm -drive file=gluster+tcp://1.2.3.4/testvol/a.img
|
|
|
9bac43 |
+qemu-kvm -drive file=gluster+tcp://1.2.3.4:24007/testvol/dir/a.img
|
|
|
9bac43 |
+qemu-kvm -drive file=gluster+tcp://[1:2:3:4:5:6:7:8]/testvol/dir/a.img
|
|
|
9bac43 |
+qemu-kvm -drive file=gluster+tcp://[1:2:3:4:5:6:7:8]:24007/testvol/dir/a.img
|
|
|
9bac43 |
+qemu-kvm -drive file=gluster+tcp://server.domain.com:24007/testvol/dir/a.img
|
|
|
9bac43 |
+qemu-kvm -drive file=gluster+unix:///testvol/dir/a.img?socket=/tmp/glusterd.socket
|
|
|
9bac43 |
+qemu-kvm -drive file=gluster+rdma://1.2.3.4:24007/testvol/a.img
|
|
|
9bac43 |
+qemu-kvm -drive file=gluster://1.2.3.4/testvol/a.img,file.debug=9,file.logfile=/var/log/qemu-gluster.log
|
|
|
9bac43 |
+qemu-kvm 'json:@{"driver":"qcow2",
|
|
|
9bac43 |
"file":@{"driver":"gluster",
|
|
|
9bac43 |
"volume":"testvol","path":"a.img",
|
|
|
9bac43 |
"debug":9,"logfile":"/var/log/qemu-gluster.log",
|
|
|
9bac43 |
"server":[@{"type":"tcp","host":"1.2.3.4","port":24007@},
|
|
|
9bac43 |
@{"type":"unix","socket":"/var/run/glusterd.socket"@}]@}@}'
|
|
|
9bac43 |
-qemu-system-x86_64 -drive driver=qcow2,file.driver=gluster,file.volume=testvol,file.path=/path/a.img,
|
|
|
9bac43 |
+qemu-kvm -drive driver=qcow2,file.driver=gluster,file.volume=testvol,file.path=/path/a.img,
|
|
|
9bac43 |
file.debug=9,file.logfile=/var/log/qemu-gluster.log,
|
|
|
9bac43 |
file.server.0.type=tcp,file.server.0.host=1.2.3.4,file.server.0.port=24007,
|
|
|
9bac43 |
file.server.1.type=unix,file.server.1.socket=/var/run/glusterd.socket
|
|
|
9bac43 |
@@ -1224,13 +1224,13 @@ You can access disk images located on a remote ssh server
|
|
|
9bac43 |
by using the ssh protocol:
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-x86_64 -drive file=ssh://[@var{user}@@]@var{server}[:@var{port}]/@var{path}[?host_key_check=@var{host_key_check}]
|
|
|
9bac43 |
+qemu-kvm -drive file=ssh://[@var{user}@@]@var{server}[:@var{port}]/@var{path}[?host_key_check=@var{host_key_check}]
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
Alternative syntax using properties:
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-x86_64 -drive file.driver=ssh[,file.user=@var{user}],file.host=@var{server}[,file.port=@var{port}],file.path=@var{path}[,file.host_key_check=@var{host_key_check}]
|
|
|
9bac43 |
+qemu-kvm -drive file.driver=ssh[,file.user=@var{user}],file.host=@var{server}[,file.port=@var{port}],file.path=@var{path}[,file.host_key_check=@var{host_key_check}]
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
@var{ssh} is the protocol.
|
|
|
9bac43 |
@@ -1372,7 +1372,7 @@ On Linux hosts, a shared memory device is available. The basic syntax
|
|
|
9bac43 |
is:
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-x86_64 -device ivshmem-plain,memdev=@var{hostmem}
|
|
|
9bac43 |
+qemu-kvm -device ivshmem-plain,memdev=@var{hostmem}
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
where @var{hostmem} names a host memory backend. For a POSIX shared
|
|
|
9bac43 |
@@ -1393,7 +1393,7 @@ memory server is:
|
|
|
9bac43 |
ivshmem-server -p @var{pidfile} -S @var{path} -m @var{shm-name} -l @var{shm-size} -n @var{vectors}
|
|
|
9bac43 |
|
|
|
9bac43 |
# Then start your qemu instances with matching arguments
|
|
|
9bac43 |
-qemu-system-x86_64 -device ivshmem-doorbell,vectors=@var{vectors},chardev=@var{id}
|
|
|
9bac43 |
+qemu-kvm -device ivshmem-doorbell,vectors=@var{vectors},chardev=@var{id}
|
|
|
9bac43 |
-chardev socket,path=@var{path},id=@var{id}
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
@@ -1418,7 +1418,7 @@ Instead of specifying the <shm size> using POSIX shm, you may specify
|
|
|
9bac43 |
a memory backend that has hugepage support:
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-x86_64 -object memory-backend-file,size=1G,mem-path=/dev/hugepages/my-shmem-file,share,id=mb1
|
|
|
9bac43 |
+qemu-kvm -object memory-backend-file,size=1G,mem-path=/dev/hugepages/my-shmem-file,share,id=mb1
|
|
|
9bac43 |
-device ivshmem-plain,memdev=mb1
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
@@ -1434,7 +1434,7 @@ kernel testing.
|
|
|
9bac43 |
|
|
|
9bac43 |
The syntax is:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 -kernel arch/i386/boot/bzImage -hda root-2.4.20.img -append "root=/dev/hda"
|
|
|
9bac43 |
+qemu-kvm -kernel arch/i386/boot/bzImage -hda root-2.4.20.img -append "root=/dev/hda"
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
Use @option{-kernel} to provide the Linux kernel image and
|
|
|
9bac43 |
@@ -1449,7 +1449,7 @@ If you do not need graphical output, you can disable it and redirect
|
|
|
9bac43 |
the virtual serial port and the QEMU monitor to the console with the
|
|
|
9bac43 |
@option{-nographic} option. The typical command line is:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 -kernel arch/i386/boot/bzImage -hda root-2.4.20.img \
|
|
|
9bac43 |
+qemu-kvm -kernel arch/i386/boot/bzImage -hda root-2.4.20.img \
|
|
|
9bac43 |
-append "root=/dev/hda console=ttyS0" -nographic
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
@@ -1515,7 +1515,7 @@ Network adapter that supports CDC ethernet and RNDIS protocols. @var{id}
|
|
|
9bac43 |
specifies a netdev defined with @code{-netdev @dots{},id=@var{id}}.
|
|
|
9bac43 |
For instance, user-mode networking can be used with
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 [...] -netdev user,id=net0 -device usb-net,netdev=net0
|
|
|
9bac43 |
+qemu-kvm [...] -netdev user,id=net0 -device usb-net,netdev=net0
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
@item usb-ccid
|
|
|
9bac43 |
Smartcard reader device
|
|
|
9bac43 |
@@ -1534,7 +1534,7 @@ no type is given, the HCI logic corresponds to @code{-bt hci,vlan=0}.
|
|
|
9bac43 |
This USB device implements the USB Transport Layer of HCI. Example
|
|
|
9bac43 |
usage:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-@command{qemu-system-i386} [...@var{OPTIONS}...] @option{-usbdevice} bt:hci,vlan=3 @option{-bt} device:keyboard,vlan=3
|
|
|
9bac43 |
+@command{qemu-kvm} [...@var{OPTIONS}...] @option{-usbdevice} bt:hci,vlan=3 @option{-bt} device:keyboard,vlan=3
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
@end table
|
|
|
9bac43 |
|
|
|
9bac43 |
@@ -1612,7 +1612,7 @@ For this setup it is recommended to restrict it to listen on a UNIX domain
|
|
|
9bac43 |
socket only. For example
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 [...OPTIONS...] -vnc unix:/home/joebloggs/.qemu-myvm-vnc
|
|
|
9bac43 |
+qemu-kvm [...OPTIONS...] -vnc unix:/home/joebloggs/.qemu-myvm-vnc
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
This ensures that only users on local box with read/write access to that
|
|
|
9bac43 |
@@ -1635,7 +1635,7 @@ is running the password is set with the monitor. Until the monitor is used to
|
|
|
9bac43 |
set the password all clients will be rejected.
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 [...OPTIONS...] -vnc :1,password -monitor stdio
|
|
|
9bac43 |
+qemu-kvm [...OPTIONS...] -vnc :1,password -monitor stdio
|
|
|
9bac43 |
(qemu) change vnc password
|
|
|
9bac43 |
Password: ********
|
|
|
9bac43 |
(qemu)
|
|
|
9bac43 |
@@ -1652,7 +1652,7 @@ support provides a secure session, but no authentication. This allows any
|
|
|
9bac43 |
client to connect, and provides an encrypted session.
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 [...OPTIONS...] -vnc :1,tls,x509=/etc/pki/qemu -monitor stdio
|
|
|
9bac43 |
+qemu-kvm [...OPTIONS...] -vnc :1,tls,x509=/etc/pki/qemu -monitor stdio
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
In the above example @code{/etc/pki/qemu} should contain at least three files,
|
|
|
9bac43 |
@@ -1670,7 +1670,7 @@ then validate against the CA certificate. This is a good choice if deploying
|
|
|
9bac43 |
in an environment with a private internal certificate authority.
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 [...OPTIONS...] -vnc :1,tls,x509verify=/etc/pki/qemu -monitor stdio
|
|
|
9bac43 |
+qemu-kvm [...OPTIONS...] -vnc :1,tls,x509verify=/etc/pki/qemu -monitor stdio
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
|
|
|
9bac43 |
@@ -1681,7 +1681,7 @@ Finally, the previous method can be combined with VNC password authentication
|
|
|
9bac43 |
to provide two layers of authentication for clients.
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 [...OPTIONS...] -vnc :1,password,tls,x509verify=/etc/pki/qemu -monitor stdio
|
|
|
9bac43 |
+qemu-kvm [...OPTIONS...] -vnc :1,password,tls,x509verify=/etc/pki/qemu -monitor stdio
|
|
|
9bac43 |
(qemu) change vnc password
|
|
|
9bac43 |
Password: ********
|
|
|
9bac43 |
(qemu)
|
|
|
9bac43 |
@@ -1704,7 +1704,7 @@ used for authentication, but assuming use of one supporting SSF,
|
|
|
9bac43 |
then QEMU can be launched with:
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 [...OPTIONS...] -vnc :1,sasl -monitor stdio
|
|
|
9bac43 |
+qemu-kvm [...OPTIONS...] -vnc :1,sasl -monitor stdio
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
@node vnc_sec_certificate_sasl
|
|
|
9bac43 |
@@ -1718,7 +1718,7 @@ credentials. This can be enabled, by combining the 'sasl' option
|
|
|
9bac43 |
with the aforementioned TLS + x509 options:
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 [...OPTIONS...] -vnc :1,tls,x509,sasl -monitor stdio
|
|
|
9bac43 |
+qemu-kvm [...OPTIONS...] -vnc :1,tls,x509,sasl -monitor stdio
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
|
|
|
9bac43 |
@@ -1894,7 +1894,7 @@ QEMU has a primitive support to work with gdb, so that you can do
|
|
|
9bac43 |
In order to use gdb, launch QEMU with the '-s' option. It will wait for a
|
|
|
9bac43 |
gdb connection:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 -s -kernel arch/i386/boot/bzImage -hda root-2.4.20.img \
|
|
|
9bac43 |
+qemu-kvm -s -kernel arch/i386/boot/bzImage -hda root-2.4.20.img \
|
|
|
9bac43 |
-append "root=/dev/hda"
|
|
|
9bac43 |
Connected to host network interface: tun0
|
|
|
9bac43 |
Waiting gdb connection on port 1234
|
|
|
9bac43 |
@@ -2076,7 +2076,7 @@ differences are mentioned in the following sections.
|
|
|
9bac43 |
@section PowerPC System emulator
|
|
|
9bac43 |
@cindex system emulation (PowerPC)
|
|
|
9bac43 |
|
|
|
9bac43 |
-Use the executable @file{qemu-system-ppc} to simulate a complete PREP
|
|
|
9bac43 |
+Use the executable @file{qemu-kvm} to simulate a complete PREP
|
|
|
9bac43 |
or PowerMac PowerPC system.
|
|
|
9bac43 |
|
|
|
9bac43 |
QEMU emulates the following PowerMac peripherals:
|
|
|
9bac43 |
@@ -2140,7 +2140,7 @@ Set the initial VGA graphic mode. The default is 800x600x32.
|
|
|
9bac43 |
Set OpenBIOS variables in NVRAM, for example:
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-ppc -prom-env 'auto-boot?=false' \
|
|
|
9bac43 |
+qemu-kvm -prom-env 'auto-boot?=false' \
|
|
|
9bac43 |
-prom-env 'boot-device=hd:2,\yaboot' \
|
|
|
9bac43 |
-prom-env 'boot-args=conf=hd:2,\yaboot.conf'
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
diff --git a/qemu-options.hx b/qemu-options.hx
|
|
|
9bac43 |
index 568fc7c..5220120 100644
|
|
|
9bac43 |
--- a/qemu-options.hx
|
|
|
9bac43 |
+++ b/qemu-options.hx
|
|
|
9bac43 |
@@ -252,7 +252,7 @@ This option defines a free-form string that can be used to describe @var{fd}.
|
|
|
9bac43 |
|
|
|
9bac43 |
You can open an image using pre-opened file descriptors from an fd set:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386
|
|
|
9bac43 |
+qemu-kvm
|
|
|
9bac43 |
-add-fd fd=3,set=2,opaque="rdwr:/path/to/file"
|
|
|
9bac43 |
-add-fd fd=4,set=2,opaque="rdonly:/path/to/file"
|
|
|
9bac43 |
-drive file=/dev/fdset/2,index=0,media=disk
|
|
|
9bac43 |
@@ -281,7 +281,7 @@ STEXI
|
|
|
9bac43 |
Set default value of @var{driver}'s property @var{prop} to @var{value}, e.g.:
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 -global ide-hd.physical_block_size=4096 disk-image.img
|
|
|
9bac43 |
+qemu-kvm -global ide-hd.physical_block_size=4096 disk-image.img
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
In particular, you can use this to set driver properties for devices which are
|
|
|
9bac43 |
@@ -326,7 +326,7 @@ the recommended is 320x240, 640x480, 800x640.
|
|
|
9bac43 |
|
|
|
9bac43 |
A timeout could be passed to bios, guest will pause for @var{rb_timeout} ms
|
|
|
9bac43 |
when boot failed, then reboot. If @var{rb_timeout} is '-1', guest will not
|
|
|
9bac43 |
-reboot, qemu passes '-1' to bios by default. Currently Seabios for X86
|
|
|
9bac43 |
+reboot, qemu-kvm passes '-1' to bios by default. Currently Seabios for X86
|
|
|
9bac43 |
system support it.
|
|
|
9bac43 |
|
|
|
9bac43 |
Do strict boot via @option{strict=on} as far as firmware/BIOS
|
|
|
9bac43 |
@@ -335,11 +335,11 @@ bootindex options. The default is non-strict boot.
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
# try to boot from network first, then from hard disk
|
|
|
9bac43 |
-qemu-system-i386 -boot order=nc
|
|
|
9bac43 |
+qemu-kvm -boot order=nc
|
|
|
9bac43 |
# boot from CD-ROM first, switch back to default order after reboot
|
|
|
9bac43 |
-qemu-system-i386 -boot once=d
|
|
|
9bac43 |
+qemu-kvm -boot once=d
|
|
|
9bac43 |
# boot with a splash picture for 5 seconds.
|
|
|
9bac43 |
-qemu-system-i386 -boot menu=on,splash=/root/boot.bmp,splash-time=5000
|
|
|
9bac43 |
+qemu-kvm -boot menu=on,splash=/root/boot.bmp,splash-time=5000
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
Note: The legacy format '-boot @var{drives}' is still supported but its
|
|
|
9bac43 |
@@ -368,7 +368,7 @@ For example, the following command-line sets the guest startup RAM size to
|
|
|
9bac43 |
memory the guest can reach to 4GB:
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-x86_64 -m 1G,slots=3,maxmem=4G
|
|
|
9bac43 |
+qemu-kvm -m 1G,slots=3,maxmem=4G
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
If @var{slots} and @var{maxmem} are not specified, memory hotplug won't
|
|
|
9bac43 |
@@ -437,12 +437,12 @@ Enable audio and selected sound hardware. Use 'help' to print all
|
|
|
9bac43 |
available sound hardware.
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 -soundhw sb16,adlib disk.img
|
|
|
9bac43 |
-qemu-system-i386 -soundhw es1370 disk.img
|
|
|
9bac43 |
-qemu-system-i386 -soundhw ac97 disk.img
|
|
|
9bac43 |
-qemu-system-i386 -soundhw hda disk.img
|
|
|
9bac43 |
-qemu-system-i386 -soundhw all disk.img
|
|
|
9bac43 |
-qemu-system-i386 -soundhw help
|
|
|
9bac43 |
+qemu-kvm -soundhw sb16,adlib disk.img
|
|
|
9bac43 |
+qemu-kvm -soundhw es1370 disk.img
|
|
|
9bac43 |
+qemu-kvm -soundhw ac97 disk.img
|
|
|
9bac43 |
+qemu-kvm -soundhw hda disk.img
|
|
|
9bac43 |
+qemu-kvm -soundhw all disk.img
|
|
|
9bac43 |
+qemu-kvm -soundhw help
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
Note that Linux's i810_audio OSS kernel (for AC97) module might
|
|
|
9bac43 |
@@ -934,21 +934,21 @@ is off.
|
|
|
9bac43 |
|
|
|
9bac43 |
Instead of @option{-cdrom} you can use:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 -drive file=file,index=2,media=cdrom
|
|
|
9bac43 |
+qemu-kvm -drive file=file,index=2,media=cdrom
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
Instead of @option{-hda}, @option{-hdb}, @option{-hdc}, @option{-hdd}, you can
|
|
|
9bac43 |
use:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 -drive file=file,index=0,media=disk
|
|
|
9bac43 |
-qemu-system-i386 -drive file=file,index=1,media=disk
|
|
|
9bac43 |
-qemu-system-i386 -drive file=file,index=2,media=disk
|
|
|
9bac43 |
-qemu-system-i386 -drive file=file,index=3,media=disk
|
|
|
9bac43 |
+qemu-kvm -drive file=file,index=0,media=disk
|
|
|
9bac43 |
+qemu-kvm -drive file=file,index=1,media=disk
|
|
|
9bac43 |
+qemu-kvm -drive file=file,index=2,media=disk
|
|
|
9bac43 |
+qemu-kvm -drive file=file,index=3,media=disk
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
You can open an image using pre-opened file descriptors from an fd set:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386
|
|
|
9bac43 |
+qemu-kvm
|
|
|
9bac43 |
-add-fd fd=3,set=2,opaque="rdwr:/path/to/file"
|
|
|
9bac43 |
-add-fd fd=4,set=2,opaque="rdonly:/path/to/file"
|
|
|
9bac43 |
-drive file=/dev/fdset/2,index=0,media=disk
|
|
|
9bac43 |
@@ -956,28 +956,28 @@ qemu-system-i386
|
|
|
9bac43 |
|
|
|
9bac43 |
You can connect a CDROM to the slave of ide0:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 -drive file=file,if=ide,index=1,media=cdrom
|
|
|
9bac43 |
+qemu-kvm -drive file=file,if=ide,index=1,media=cdrom
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
If you don't specify the "file=" argument, you define an empty drive:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 -drive if=ide,index=1,media=cdrom
|
|
|
9bac43 |
+qemu-kvm -drive if=ide,index=1,media=cdrom
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
Instead of @option{-fda}, @option{-fdb}, you can use:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 -drive file=file,index=0,if=floppy
|
|
|
9bac43 |
-qemu-system-i386 -drive file=file,index=1,if=floppy
|
|
|
9bac43 |
+qemu-kvm -drive file=file,index=0,if=floppy
|
|
|
9bac43 |
+qemu-kvm -drive file=file,index=1,if=floppy
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
By default, @var{interface} is "ide" and @var{index} is automatically
|
|
|
9bac43 |
incremented:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 -drive file=a -drive file=b"
|
|
|
9bac43 |
+qemu-kvm -drive file=a -drive file=b"
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
is interpreted like:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 -hda a -hdb b
|
|
|
9bac43 |
+qemu-kvm -hda a -hdb b
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
ETEXI
|
|
|
9bac43 |
|
|
|
9bac43 |
@@ -2115,7 +2115,7 @@ can not be resolved.
|
|
|
9bac43 |
|
|
|
9bac43 |
Example:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu -net user,dnssearch=mgmt.example.org,dnssearch=example.org [...]
|
|
|
9bac43 |
+qemu-kvm -net user,dnssearch=mgmt.example.org,dnssearch=example.org [...]
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
@item tftp=@var{dir}
|
|
|
9bac43 |
@@ -2131,7 +2131,7 @@ a guest from a local directory.
|
|
|
9bac43 |
|
|
|
9bac43 |
Example (using pxelinux):
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 -hda linux.img -boot n -net user,tftp=/path/to/tftp/files,bootfile=/pxelinux.0
|
|
|
9bac43 |
+qemu-kvm -hda linux.img -boot n -net user,tftp=/path/to/tftp/files,bootfile=/pxelinux.0
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
@item smb=@var{dir}[,smbserver=@var{addr}]
|
|
|
9bac43 |
@@ -2166,7 +2166,7 @@ screen 0, use the following:
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
# on the host
|
|
|
9bac43 |
-qemu-system-i386 -net user,hostfwd=tcp:127.0.0.1:6001-:6000 [...]
|
|
|
9bac43 |
+qemu-kvm -net user,hostfwd=tcp:127.0.0.1:6001-:6000 [...]
|
|
|
9bac43 |
# this host xterm should open in the guest X11 server
|
|
|
9bac43 |
xterm -display :1
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
@@ -2176,7 +2176,7 @@ the guest, use the following:
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
# on the host
|
|
|
9bac43 |
-qemu-system-i386 -net user,hostfwd=tcp::5555-:23 [...]
|
|
|
9bac43 |
+qemu-kvm -net user,hostfwd=tcp::5555-:23 [...]
|
|
|
9bac43 |
telnet localhost 5555
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
@@ -2195,7 +2195,7 @@ lifetime, like in the following example:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
# open 10.10.1.1:4321 on bootup, connect 10.0.2.100:1234 to it whenever
|
|
|
9bac43 |
# the guest accesses it
|
|
|
9bac43 |
-qemu -net user,guestfwd=tcp:10.0.2.100:1234-tcp:10.10.1.1:4321 [...]
|
|
|
9bac43 |
+qemu-kvm -net user,guestfwd=tcp:10.0.2.100:1234-tcp:10.10.1.1:4321 [...]
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
Or you can execute a command on every TCP connection established by the guest,
|
|
|
9bac43 |
@@ -2204,7 +2204,7 @@ so that QEMU behaves similar to an inetd process for that virtual server:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
# call "netcat 10.10.1.1 4321" on every TCP connection to 10.0.2.100:1234
|
|
|
9bac43 |
# and connect the TCP stream to its stdin/stdout
|
|
|
9bac43 |
-qemu -net 'user,guestfwd=tcp:10.0.2.100:1234-cmd:netcat 10.10.1.1 4321'
|
|
|
9bac43 |
+qemu-kvm -net 'user,guestfwd=tcp:10.0.2.100:1234-cmd:netcat 10.10.1.1 4321'
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
@end table
|
|
|
9bac43 |
@@ -2237,13 +2237,13 @@ Examples:
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
#launch a QEMU instance with the default network script
|
|
|
9bac43 |
-qemu-system-i386 linux.img -net nic -net tap
|
|
|
9bac43 |
+qemu-kvm linux.img -net nic -net tap
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
#launch a QEMU instance with two NICs, each one connected
|
|
|
9bac43 |
#to a TAP device
|
|
|
9bac43 |
-qemu-system-i386 linux.img \
|
|
|
9bac43 |
+qemu-kvm linux.img \
|
|
|
9bac43 |
-net nic,vlan=0 -net tap,vlan=0,ifname=tap0 \
|
|
|
9bac43 |
-net nic,vlan=1 -net tap,vlan=1,ifname=tap1
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
@@ -2251,7 +2251,7 @@ qemu-system-i386 linux.img \
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
#launch a QEMU instance with the default network helper to
|
|
|
9bac43 |
#connect a TAP device to bridge br0
|
|
|
9bac43 |
-qemu-system-i386 linux.img \
|
|
|
9bac43 |
+qemu-kvm linux.img \
|
|
|
9bac43 |
-net nic -net tap,"helper=/path/to/qemu-bridge-helper"
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
@@ -2269,13 +2269,13 @@ Examples:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
#launch a QEMU instance with the default network helper to
|
|
|
9bac43 |
#connect a TAP device to bridge br0
|
|
|
9bac43 |
-qemu-system-i386 linux.img -net bridge -net nic,model=virtio
|
|
|
9bac43 |
+qemu-kvm linux.img -net bridge -net nic,model=virtio
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
#launch a QEMU instance with the default network helper to
|
|
|
9bac43 |
#connect a TAP device to bridge qemubr0
|
|
|
9bac43 |
-qemu-system-i386 linux.img -net bridge,br=qemubr0 -net nic,model=virtio
|
|
|
9bac43 |
+qemu-kvm linux.img -net bridge,br=qemubr0 -net nic,model=virtio
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
@item -netdev socket,id=@var{id}[,fd=@var{h}][,listen=[@var{host}]:@var{port}][,connect=@var{host}:@var{port}]
|
|
|
9bac43 |
@@ -2291,12 +2291,12 @@ specifies an already opened TCP socket.
|
|
|
9bac43 |
Example:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
# launch a first QEMU instance
|
|
|
9bac43 |
-qemu-system-i386 linux.img \
|
|
|
9bac43 |
+qemu-kvm linux.img \
|
|
|
9bac43 |
-net nic,macaddr=52:54:00:12:34:56 \
|
|
|
9bac43 |
-net socket,listen=:1234
|
|
|
9bac43 |
# connect the VLAN 0 of this instance to the VLAN 0
|
|
|
9bac43 |
# of the first instance
|
|
|
9bac43 |
-qemu-system-i386 linux.img \
|
|
|
9bac43 |
+qemu-kvm linux.img \
|
|
|
9bac43 |
-net nic,macaddr=52:54:00:12:34:57 \
|
|
|
9bac43 |
-net socket,connect=127.0.0.1:1234
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
@@ -2322,15 +2322,15 @@ Use @option{fd=h} to specify an already opened UDP multicast socket.
|
|
|
9bac43 |
Example:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
# launch one QEMU instance
|
|
|
9bac43 |
-qemu-system-i386 linux.img \
|
|
|
9bac43 |
+qemu-kvm linux.img \
|
|
|
9bac43 |
-net nic,macaddr=52:54:00:12:34:56 \
|
|
|
9bac43 |
-net socket,mcast=230.0.0.1:1234
|
|
|
9bac43 |
# launch another QEMU instance on same "bus"
|
|
|
9bac43 |
-qemu-system-i386 linux.img \
|
|
|
9bac43 |
+qemu-kvm linux.img \
|
|
|
9bac43 |
-net nic,macaddr=52:54:00:12:34:57 \
|
|
|
9bac43 |
-net socket,mcast=230.0.0.1:1234
|
|
|
9bac43 |
# launch yet another QEMU instance on same "bus"
|
|
|
9bac43 |
-qemu-system-i386 linux.img \
|
|
|
9bac43 |
+qemu-kvm linux.img \
|
|
|
9bac43 |
-net nic,macaddr=52:54:00:12:34:58 \
|
|
|
9bac43 |
-net socket,mcast=230.0.0.1:1234
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
@@ -2339,7 +2339,7 @@ Example (User Mode Linux compat.):
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
# launch QEMU instance (note mcast address selected
|
|
|
9bac43 |
# is UML's default)
|
|
|
9bac43 |
-qemu-system-i386 linux.img \
|
|
|
9bac43 |
+qemu-kvm linux.img \
|
|
|
9bac43 |
-net nic,macaddr=52:54:00:12:34:56 \
|
|
|
9bac43 |
-net socket,mcast=239.192.168.1:1102
|
|
|
9bac43 |
# launch UML
|
|
|
9bac43 |
@@ -2348,7 +2348,7 @@ qemu-system-i386 linux.img \
|
|
|
9bac43 |
|
|
|
9bac43 |
Example (send packets from host's 1.2.3.4):
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 linux.img \
|
|
|
9bac43 |
+qemu-kvm linux.img \
|
|
|
9bac43 |
-net nic,macaddr=52:54:00:12:34:56 \
|
|
|
9bac43 |
-net socket,mcast=239.192.168.1:1102,localaddr=1.2.3.4
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
@@ -2407,7 +2407,7 @@ brctl addif br-lan vmtunnel0
|
|
|
9bac43 |
# on 4.3.2.1
|
|
|
9bac43 |
# launch QEMU instance - if your network has reorder or is very lossy add ,pincounter
|
|
|
9bac43 |
|
|
|
9bac43 |
-qemu-system-i386 linux.img -net nic -net l2tpv3,src=4.2.3.1,dst=1.2.3.4,udp,srcport=16384,dstport=16384,rxsession=0xffffffff,txsession=0xffffffff,counter
|
|
|
9bac43 |
+qemu-kvm linux.img -net nic -net l2tpv3,src=4.2.3.1,dst=1.2.3.4,udp,srcport=16384,dstport=16384,rxsession=0xffffffff,txsession=0xffffffff,counter
|
|
|
9bac43 |
|
|
|
9bac43 |
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
@@ -2425,7 +2425,7 @@ Example:
|
|
|
9bac43 |
# launch vde switch
|
|
|
9bac43 |
vde_switch -F -sock /tmp/myswitch
|
|
|
9bac43 |
# launch QEMU instance
|
|
|
9bac43 |
-qemu-system-i386 linux.img -net nic -net vde,sock=/tmp/myswitch
|
|
|
9bac43 |
+qemu-kvm linux.img -net nic -net vde,sock=/tmp/myswitch
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
@item -netdev hubport,id=@var{id},hubid=@var{hubid}
|
|
|
9bac43 |
@@ -2447,11 +2447,11 @@ be created for multiqueue vhost-user.
|
|
|
9bac43 |
|
|
|
9bac43 |
Example:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu -m 512 -object memory-backend-file,id=mem,size=512M,mem-path=/hugetlbfs,share=on \
|
|
|
9bac43 |
- -numa node,memdev=mem \
|
|
|
9bac43 |
- -chardev socket,id=chr0,path=/path/to/socket \
|
|
|
9bac43 |
- -netdev type=vhost-user,id=net0,chardev=chr0 \
|
|
|
9bac43 |
- -device virtio-net-pci,netdev=net0
|
|
|
9bac43 |
+qemu-kvm -m 512 -object memory-backend-file,id=mem,size=512M,mem-path=/hugetlbfs,share=on \
|
|
|
9bac43 |
+ -numa node,memdev=mem \
|
|
|
9bac43 |
+ -chardev socket,id=chr0,path=/path/to/socket \
|
|
|
9bac43 |
+ -netdev type=vhost-user,id=net0,chardev=chr0 \
|
|
|
9bac43 |
+ -device virtio-net-pci,netdev=net0
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
@item -net dump[,vlan=@var{n}][,file=@var{file}][,len=@var{len}]
|
|
|
9bac43 |
@@ -2819,7 +2819,7 @@ images for the guest storage. Both disk and cdrom images are supported.
|
|
|
9bac43 |
Syntax for specifying iSCSI LUNs is
|
|
|
9bac43 |
``iscsi://<target-ip>[:<port>]/<target-iqn>/<lun>''
|
|
|
9bac43 |
|
|
|
9bac43 |
-By default qemu will use the iSCSI initiator-name
|
|
|
9bac43 |
+By default qemu-kvm will use the iSCSI initiator-name
|
|
|
9bac43 |
'iqn.2008-11.org.linux-kvm[:<name>]' but this can also be set from the command
|
|
|
9bac43 |
line or a configuration file.
|
|
|
9bac43 |
|
|
|
9bac43 |
@@ -2830,21 +2830,21 @@ is specified in seconds. The default is 0 which means no timeout. Libiscsi
|
|
|
9bac43 |
|
|
|
9bac43 |
Example (without authentication):
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 -iscsi initiator-name=iqn.2001-04.com.example:my-initiator \
|
|
|
9bac43 |
+qemu-kvm -iscsi initiator-name=iqn.2001-04.com.example:my-initiator \
|
|
|
9bac43 |
-cdrom iscsi://192.0.2.1/iqn.2001-04.com.example/2 \
|
|
|
9bac43 |
-drive file=iscsi://192.0.2.1/iqn.2001-04.com.example/1
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
Example (CHAP username/password via URL):
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 -drive file=iscsi://user%password@@192.0.2.1/iqn.2001-04.com.example/1
|
|
|
9bac43 |
+qemu-kvm -drive file=iscsi://user%password@@192.0.2.1/iqn.2001-04.com.example/1
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
Example (CHAP username/password via environment variables):
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
LIBISCSI_CHAP_USERNAME="user" \
|
|
|
9bac43 |
LIBISCSI_CHAP_PASSWORD="password" \
|
|
|
9bac43 |
-qemu-system-i386 -drive file=iscsi://192.0.2.1/iqn.2001-04.com.example/1
|
|
|
9bac43 |
+qemu-kvm -drive file=iscsi://192.0.2.1/iqn.2001-04.com.example/1
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
iSCSI support is an optional feature of QEMU and only available when
|
|
|
9bac43 |
@@ -2874,12 +2874,12 @@ Syntax for specifying a NBD device using Unix Domain Sockets
|
|
|
9bac43 |
|
|
|
9bac43 |
Example for TCP
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 --drive file=nbd:192.0.2.1:30000
|
|
|
9bac43 |
+qemu-kvm --drive file=nbd:192.0.2.1:30000
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
Example for Unix Domain Sockets
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 --drive file=nbd:unix:/tmp/nbd-socket
|
|
|
9bac43 |
+qemu-kvm --drive file=nbd:unix:/tmp/nbd-socket
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
@item SSH
|
|
|
9bac43 |
@@ -2887,8 +2887,8 @@ QEMU supports SSH (Secure Shell) access to remote disks.
|
|
|
9bac43 |
|
|
|
9bac43 |
Examples:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 -drive file=ssh://user@@host/path/to/disk.img
|
|
|
9bac43 |
-qemu-system-i386 -drive file.driver=ssh,file.user=user,file.host=host,file.port=22,file.path=/path/to/disk.img
|
|
|
9bac43 |
+qemu-kvm -drive file=ssh://user@@host/path/to/disk.img
|
|
|
9bac43 |
+qemu-kvm -drive file.driver=ssh,file.user=user,file.host=host,file.port=22,file.path=/path/to/disk.img
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
Currently authentication must be done using ssh-agent. Other
|
|
|
9bac43 |
@@ -2906,7 +2906,7 @@ sheepdog[+tcp|+unix]://[host:port]/vdiname[?socket=path][#snapid|#tag]
|
|
|
9bac43 |
|
|
|
9bac43 |
Example
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 --drive file=sheepdog://192.0.2.1:30000/MyVirtualMachine
|
|
|
9bac43 |
+qemu-kvm --drive file=sheepdog://192.0.2.1:30000/MyVirtualMachine
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
See also @url{https://sheepdog.github.io/sheepdog/}.
|
|
|
9bac43 |
@@ -2932,17 +2932,17 @@ JSON:
|
|
|
9bac43 |
Example
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
URI:
|
|
|
9bac43 |
-qemu-system-x86_64 --drive file=gluster://192.0.2.1/testvol/a.img,
|
|
|
9bac43 |
+qemu-kvm --drive file=gluster://192.0.2.1/testvol/a.img,
|
|
|
9bac43 |
@ file.debug=9,file.logfile=/var/log/qemu-gluster.log
|
|
|
9bac43 |
|
|
|
9bac43 |
JSON:
|
|
|
9bac43 |
-qemu-system-x86_64 'json:@{"driver":"qcow2",
|
|
|
9bac43 |
+qemu-kvm 'json:@{"driver":"qcow2",
|
|
|
9bac43 |
@ "file":@{"driver":"gluster",
|
|
|
9bac43 |
@ "volume":"testvol","path":"a.img",
|
|
|
9bac43 |
@ "debug":9,"logfile":"/var/log/qemu-gluster.log",
|
|
|
9bac43 |
@ "server":[@{"type":"tcp","host":"1.2.3.4","port":24007@},
|
|
|
9bac43 |
@ @{"type":"unix","socket":"/var/run/glusterd.socket"@}]@}@}'
|
|
|
9bac43 |
-qemu-system-x86_64 -drive driver=qcow2,file.driver=gluster,file.volume=testvol,file.path=/path/a.img,
|
|
|
9bac43 |
+qemu-kvm -drive driver=qcow2,file.driver=gluster,file.volume=testvol,file.path=/path/a.img,
|
|
|
9bac43 |
@ file.debug=9,file.logfile=/var/log/qemu-gluster.log,
|
|
|
9bac43 |
@ file.server.0.type=tcp,file.server.0.host=1.2.3.4,file.server.0.port=24007,
|
|
|
9bac43 |
@ file.server.1.type=unix,file.server.1.socket=/var/run/glusterd.socket
|
|
|
9bac43 |
@@ -3002,14 +3002,14 @@ that CURL waits for a response from the remote server to get the size of the
|
|
|
9bac43 |
image to be downloaded. If not set, the default timeout of 5 seconds is used.
|
|
|
9bac43 |
@end table
|
|
|
9bac43 |
|
|
|
9bac43 |
-Note that when passing options to qemu explicitly, @option{driver} is the value
|
|
|
9bac43 |
+Note that when passing options to qemu-kvm explicitly, @option{driver} is the value
|
|
|
9bac43 |
of <protocol>.
|
|
|
9bac43 |
|
|
|
9bac43 |
Example: boot from a remote Fedora 20 live ISO image
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-x86_64 --drive media=cdrom,file=http://dl.fedoraproject.org/pub/fedora/linux/releases/20/Live/x86_64/Fedora-Live-Desktop-x86_64-20-1.iso,readonly
|
|
|
9bac43 |
+qemu-kvm --drive media=cdrom,file=http://dl.fedoraproject.org/pub/fedora/linux/releases/20/Live/x86_64/Fedora-Live-Desktop-x86_64-20-1.iso,readonly
|
|
|
9bac43 |
|
|
|
9bac43 |
-qemu-system-x86_64 --drive media=cdrom,file.driver=http,file.url=http://dl.fedoraproject.org/pub/fedora/linux/releases/20/Live/x86_64/Fedora-Live-Desktop-x86_64-20-1.iso,readonly
|
|
|
9bac43 |
+qemu-kvm --drive media=cdrom,file.driver=http,file.url=http://dl.fedoraproject.org/pub/fedora/linux/releases/20/Live/x86_64/Fedora-Live-Desktop-x86_64-20-1.iso,readonly
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
Example: boot from a remote Fedora 20 cloud image using a local overlay for
|
|
|
9bac43 |
@@ -3017,7 +3017,7 @@ writes, copy-on-read, and a readahead of 64k
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
qemu-img create -f qcow2 -o backing_file='json:@{"file.driver":"http",, "file.url":"https://dl.fedoraproject.org/pub/fedora/linux/releases/20/Images/x86_64/Fedora-x86_64-20-20131211.1-sda.qcow2",, "file.readahead":"64k"@}' /tmp/Fedora-x86_64-20-20131211.1-sda.qcow2
|
|
|
9bac43 |
|
|
|
9bac43 |
-qemu-system-x86_64 -drive file=/tmp/Fedora-x86_64-20-20131211.1-sda.qcow2,copy-on-read=on
|
|
|
9bac43 |
+qemu-kvm -drive file=/tmp/Fedora-x86_64-20-20131211.1-sda.qcow2,copy-on-read=on
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
Example: boot from an image stored on a VMware vSphere server with a self-signed
|
|
|
9bac43 |
@@ -3026,7 +3026,7 @@ of 10 seconds.
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
qemu-img create -f qcow2 -o backing_file='json:@{"file.driver":"https",, "file.url":"https://user:password@@vsphere.example.com/folder/test/test-flat.vmdk?dcPath=Datacenter&dsName=datastore1",, "file.sslverify":"off",, "file.readahead":"64k",, "file.timeout":10@}' /tmp/test.qcow2
|
|
|
9bac43 |
|
|
|
9bac43 |
-qemu-system-x86_64 -drive file=/tmp/test.qcow2
|
|
|
9bac43 |
+qemu-kvm -drive file=/tmp/test.qcow2
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
ETEXI
|
|
|
9bac43 |
|
|
|
9bac43 |
@@ -3090,7 +3090,7 @@ and communicate. Requires the Linux @code{vhci} driver installed. Can
|
|
|
9bac43 |
be used as following:
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu-system-i386 [...OPTIONS...] -bt hci,vlan=5 -bt vhci,vlan=5
|
|
|
9bac43 |
+qemu-kvm [...OPTIONS...] -bt hci,vlan=5 -bt vhci,vlan=5
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
@item -bt device:@var{dev}[,vlan=@var{n}]
|
|
|
9bac43 |
@@ -3136,7 +3136,7 @@ Options to each backend are described below.
|
|
|
9bac43 |
|
|
|
9bac43 |
Use 'help' to print all available TPM backend types.
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-qemu -tpmdev help
|
|
|
9bac43 |
+qemu-kvm -tpmdev help
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
|
|
|
9bac43 |
@item -tpmdev passthrough, id=@var{id}, path=@var{path}, cancel-path=@var{cancel-path}
|
|
|
9bac43 |
@@ -3504,14 +3504,14 @@ ETEXI
|
|
|
9bac43 |
|
|
|
9bac43 |
DEF("realtime", HAS_ARG, QEMU_OPTION_realtime,
|
|
|
9bac43 |
"-realtime [mlock=on|off]\n"
|
|
|
9bac43 |
- " run qemu with realtime features\n"
|
|
|
9bac43 |
+ " run qemu-kvm with realtime features\n"
|
|
|
9bac43 |
" mlock=on|off controls mlock support (default: on)\n",
|
|
|
9bac43 |
QEMU_ARCH_ALL)
|
|
|
9bac43 |
STEXI
|
|
|
9bac43 |
@item -realtime mlock=on|off
|
|
|
9bac43 |
@findex -realtime
|
|
|
9bac43 |
-Run qemu with realtime features.
|
|
|
9bac43 |
-mlocking qemu and guest memory can be enabled via @option{mlock=on}
|
|
|
9bac43 |
+Run qemu-kvm with realtime features.
|
|
|
9bac43 |
+mlocking qemu-kvm and guest memory can be enabled via @option{mlock=on}
|
|
|
9bac43 |
(enabled by default).
|
|
|
9bac43 |
ETEXI
|
|
|
9bac43 |
|
|
|
9bac43 |
@@ -3525,7 +3525,7 @@ connections will likely be TCP-based, but also UDP, pseudo TTY, or even
|
|
|
9bac43 |
stdio are reasonable use case. The latter is allowing to start QEMU from
|
|
|
9bac43 |
within gdb and establish the connection via a pipe:
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
-(gdb) target remote | exec qemu-system-i386 -gdb stdio ...
|
|
|
9bac43 |
+(gdb) target remote | exec qemu-kvm -gdb stdio ...
|
|
|
9bac43 |
@end example
|
|
|
9bac43 |
ETEXI
|
|
|
9bac43 |
|
|
|
9bac43 |
@@ -4340,7 +4340,7 @@ which specify the queue number of cryptodev backend, the default of
|
|
|
9bac43 |
|
|
|
9bac43 |
@example
|
|
|
9bac43 |
|
|
|
9bac43 |
- # qemu-system-x86_64 \
|
|
|
9bac43 |
+ # qemu-kvm \
|
|
|
9bac43 |
[...] \
|
|
|
9bac43 |
-object cryptodev-backend-builtin,id=cryptodev0 \
|
|
|
9bac43 |
-device virtio-crypto-pci,id=crypto0,cryptodev=cryptodev0 \
|
|
|
9bac43 |
--
|
|
|
9bac43 |
1.8.3.1
|
|
|
9bac43 |
|