Chinaunix首页 | 论坛 | 博客
  • 博客访问: 123719
  • 博文数量: 23
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 345
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-13 15:50
文章分类

全部博文(23)

文章存档

2010年(6)

2009年(12)

2008年(5)

我的朋友

分类: LINUX

2010-11-14 13:02:27

    在之前的一篇文件已经介绍了怎样安装KVM,但是以Gentoo为例来说的。本文以上一篇为基础,强调在Ubuntu上安装需要注意的问题。
    区别一:所需的安装包   

qemu-kvm
bridge-utils
uml-utilities

  
    区别二:网络配置文件

#/etc/network/interfaces

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 yourusername


auto tap1

iface tap1 inet manual up

ifconfig $IFACE 0.0.0.0 up

down ifconfig $IFACE down

tunctl_user yourusername


auto br0 iface br0 inet dhcp

bridge_ports eth0 tap0

bridge_stp off

bridge_fd 0 bridge_maxwait 0

#如果是表态,用以下方式

#iface br0 inet static

#address 192.168.1.2

#netmask 255.255.255.0

#gateway 192.168.1.1


Troubleshooting

Warning: could not open /dev/net/tun: no virtual network emulation

通过

ls -l /dev/net/tun


发现有这个设备

crw-rw---- 1 root uml-net 10, 200 2010-10-24 19:44 /dev/net/tun

但除了root外没有的权限,所以只要加上写的权限就可以了

chmod o+rw /dev/net/tun


阅读(581) | 评论(2) | 转发(0) |
0

上一篇:启动时ext4分区挂载错误

下一篇:没有了

给主人留下些什么吧!~~

chinaunix网友2010-11-15 19:43:28

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com

chinaunix网友2010-11-15 19:43:28

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com