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

全部博文(15)

文章存档

2010年(3)

2009年(7)

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


阅读(454) | 评论(0) | 转发(0) |
0

上一篇:IT业的调查公司(动态更新)

下一篇:没有了

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