Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
9d4fb82e
Q
qemu
项目概览
openeuler
/
qemu
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
9d4fb82e
编写于
4月 26, 2004
作者:
B
bellard
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
git-svn-id:
svn://svn.savannah.nongnu.org/qemu/trunk@767
c046a42c-6fe2-441c-8c8c-71466251a162
上级
9fafc9ea
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
49 addition
and
1 deletion
+49
-1
qemu-doc.texi
qemu-doc.texi
+49
-1
未找到文件。
qemu-doc.texi
浏览文件 @
9d4fb82e
...
...
@@ -548,7 +548,55 @@ Since holes are used, the displayed size of the COW disk image is not
the real one. To know it, use the @code
{
ls -ls
}
command.
@end enumerate
@section Direct Linux Boot and Network emulation
@section Network emulation
QEMU simulates up to 6 networks cards (NE2000 boards). Each card can
be connected to a specific host network interface.
@subsection Using tun/tap network interface
This is the standard way to emulate network. QEMU adds a virtual
network device on your host (called @code
{
tun0
}
), and you can then
configure it as if it was a real ethernet card.
As an example, you can download the @file
{
linux-test-xxx.tar.gz
}
archive and copy the script @file
{
qemu-ifup
}
in @file
{
/etc
}
and
configure properly @code
{
sudo
}
so that the command @code
{
ifconfig
}
contained in @file
{
qemu-ifup
}
can be executed as root. You must verify
that your host kernel supports the TUN/TAP network interfaces: the
device @file
{
/dev/net/tun
}
must be present.
See @ref
{
direct
_
linux
_
boot
}
to have an example of network use with a
Linux distribution.
@subsection Using the user mode network stack
This is @emph
{
experimental
}
(version 0.5.4). You must configure qemu
with @code
{
--enable-slirp
}
. Then by using the option
@option
{
-user-net
}
or if you have no tun/tap init script, QEMU uses a
completely user mode network stack (you don't need root priviledge to
use the virtual network). The virtual network configuration is the
following:
@example
QEMU Virtual Machine <------> Firewall/DHCP server <-----> Internet
(10.0.2.x) | (10.0.2.2)
|
----> DNS
(10.0.2.3)
@end example
The QEMU VM behaves as if it was behind a firewall which blocks all
incoming connections. You can use a DHCP client to automatically
configure the network in the QEMU VM.
In order to check that the user mode network is working, you can ping
the address 10.0.2.2 and verify that you got an address in the range
10.0.2.x from the QEMU virtual DHCP server.
@node direct
_
linux
_
boot
@section Direct Linux Boot
This section explains how to launch a Linux kernel inside QEMU without
having to make a full bootable image. It is very useful for fast Linux
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录