Kvm、VMware、Virtualbox、Xen、Qemu 等
-
yx_wh
- 帖子: 31
- 注册时间: 2010-02-06 14:55
#241
帖子
由 yx_wh » 2012-01-06 22:43
NMking 写了:我的設定如下:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
auto tap0
iface tap0 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
tunctl_user nmking
auto br0
iface br0 inet ppp
bridge_ports eth0 tap0
連線方式是PPPoE
這樣設定哪裡不對
我只能在kvm裡面上網 在實體機上不了網
试试
代码: 全选
auto eth0
iface eth0 inet loopback
auto tap0
iface tap0 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down
tunctl_user username
auto br0
iface br0 inet dhcp
#static \\当然这里也可以使用DHCP分配
#bridge_ports all tap0
bridge_ports eth0 tap0
另外这里面的一些词,例如loopback都是什么意思?可以在那里查到?
http://man.chinaunix.net/linux/debian/d ... 11s12.html
有一个实例,但是不是完全的讲解。
-
wtry
- 帖子: 923
- 注册时间: 2009-03-18 9:26
#242
帖子
由 wtry » 2012-04-12 19:13
非常好的教程!
多看几遍
其意自县……
-
只是说
- 帖子: 1140
- 注册时间: 2012-03-12 22:44
- 系统: 贱兔
- 来自: 株洲
#244
帖子
由 只是说 » 2012-05-26 12:32
zixuanzht 写了:zixuanzht 写了:/configure --prefix=/usr/local/kvm
这个是什么意思呀? 我到这步就出现 bash: /configure: 没有那个文件或目录
明白了, 因该在 /configure 前面加上一个.
-
inforwave
- 帖子: 4
- 注册时间: 2012-06-27 16:02
#245
帖子
由 inforwave » 2012-06-28 17:44
KVM 有类似 VBOX 的共享目录的功能吗? 我用 -hda 把非启动分区加进去以后,会出现启动失败。
-
deyu260
- 帖子: 69
- 注册时间: 2007-03-30 19:55
- 来自: 上海市
#246
帖子
由 deyu260 » 2012-07-03 18:53
这帖子给我启发很大 多谢lz 希望更新12.04的kvm内容
Intel Pentium M 740
MSI 915GM Speedster-FA4 (MS-9625)
A-Data 1 GB DDR2-800 DDR2
WDC WD5000AADS-00L4B1
磐石400 2.0
-
qq2352663326
- 帖子: 96
- 注册时间: 2012-04-03 19:48
- 系统: ubuntu 12.04
#247
帖子
由 qq2352663326 » 2012-09-20 12:22
虚拟机关掉后,tap0口就没有了,ifconfig也不显示tap0了,只有br0、lo、eth0这三个,这时虚拟机不能联网
想要虚拟机上网,就要重启
苦恼很久了啊
-
冰雪消融
- 帖子: 2
- 注册时间: 2012-11-27 17:17
- 系统: winXP
#248
帖子
由 冰雪消融 » 2012-11-27 17:22
新手进来学习了
-
qcc
- 帖子: 114
- 注册时间: 2013-02-22 9:34
- 系统: ubuntukyin
#249
帖子
由 qcc » 2013-04-08 12:35
怎么让KVM位虚拟主机加载U盘求指教?
-
游戏专业做游戏
- 帖子: 149
- 注册时间: 2009-10-17 10:07
#251
帖子
由 游戏专业做游戏 » 2013-12-19 15:36
在这虚拟机里面看flash视频,资源占用和流畅度会不会比其他虚拟机好?
-
ToonoW
- 帖子: 1
- 注册时间: 2015-07-10 21:03
- 系统: ubuntu 14.04
#252
帖子
由 ToonoW » 2015-07-10 21:13
弱弱问一句,KVM可以装mac OS X 10.10 的虚拟机吗?
-
justforqemu
- 帖子: 2
- 注册时间: 2016-02-18 17:01
- 系统: windows
#254
帖子
由 justforqemu » 2016-02-18 17:26
楼主,我想请问:这种桥接模式可以ping通同一网段的主机么?
我分配宿主机br0的IP为:192.168.19.205,同一网段主机ip为192.168.19.25,qemu虚拟机ip为192.168.19.2
qemu能ping通宿主机br0,无法ping通另一主机。
我的配置如下:
systemctl disable NetworkManager
systemctl stop NetworkManager
modprobe tun
modprobe kvm
tunctl -u root
ifconfig eth0 0.0.0.0 promisc up
ifconfig tap0 0.0.0.0 promisc up
brctl addbr br0
brctl addif br0 tap0
brctl addif br0 eth0
ifconfig br0 up
ifconfig br0 192.168.19.205/24
route add default gw 192.168.19.1
-
justforqemu
- 帖子: 2
- 注册时间: 2016-02-18 17:01
- 系统: windows
#255
帖子
由 justforqemu » 2016-02-19 15:07
楼主,我设置的qemu网络与宿主机br0的IP相互ping通,但是与宿主机同一网段的其他主机的IP却ping不通,请问是为什么。
配置如下:
网络配置脚本:
systemctl disable NetworkManager
systemctl stop NetworkManager
modprobe tun
modprobe kvm
modprobe kvm-intel
tunctl -u root
ifconfig eth0 0.0.0.0 promisc up
ifconfig tap0 0.0.0.0 promisc up
brctl addbr br0
brctl addif br0 tap0
brctl addif br0 eth0
ifconfig br0 up
ifconfig br0 192.168.19.205/24
route add default gw 192.168.19.1
qemu启动脚本:
qemu-system-ppc -M g3beige\
-kernel vmlinux\
-hda rootfs.ext2\
-append “console=ttyS0 root=/dev/hda rw”\
-serial stdio\
-net nic\
-net tap,ifname=tap0,script=no,downscript=no