在Hyper-V中安装和配置Ubuntu Server 11.04 10.10
本帖最后由 wuyvzhang 于 2016-8-2 17:26 编辑 <br /><br /> 背景Ubuntu Linux已经发布了11.04版本,目前能够在Windows Hyper-V中高效运行的Ubuntu已经有2个release了(11.04和10.10)。由于Ubuntu Server的内核中已经编译了Hype-V IC的模块,因此只需要在经过简单的配置,使kernel在启动时加载Hyper-V IC module就可以高效运行了。
下载安装介质
Ubuntu Linux的11.04和10.10,只有Server版中才包括Hyper-V IC的模块,因此需要下载Ubuntu Server版的安装ISO:
安装过程
1. 在Hyper-V中为安装Ubuntu Server建立VM,1-4个CPU,内存512MB以上,网卡,设置从已下载的Ubuntu安装ISO启动。
2. 安装正常步骤安装Ubuntu Server
3. 安装结束后在编辑Ubuntu Server中的文件/etc/initramfs-tools/modules,在文件末尾添加配置行:
hv_vmbus
hv_storvsc
hv_blkvsc
hv_netvsc
4. 运行update-initramfs,并reboot系统
# update-initramfs –u
# reboot
5. Ubunut再次启动后已经是Hyper-V IC生效(enable)了,可以使用lsmod命令进行验证:
# lsmod | grep hv_vmbus
hv_vmbus 50431 4 hv_utils,hv_netvsc,hv_blkvsc,hv_storvsc
6.设置IP、网关、掩码等。vi /etc/network/interfaces,添加以下内容:
使用静态IP:
iface eth0 inet static
address 192.168.83.200
netmask 255.255.255.0
gateway 192.168.83.2
auto eth0
使用DHCP:
auto eth0
iface eth0 inet dhcp
nameserver 192.168.83.2
8.重新启动网络:
/etc/init.d/networking restart
我们一起看看怎么样在Ubuntu 12.04 LTS Server版中配置自己的DNS服务器吧!
nameserver 8.8.8.8
nameserver 8.8.4.4
然后输入wq保存退出。接下来我们重启下resolvconf程序,让配置生效:
#/etc/init.d/resolvconf restart
在12.04 也可以采用更简单的方法:
auto eth0
iface eth0 inet static
address 192.168.1.2
gateway 192.168.1.1
network 192.168.1.0
broadcast 192.168.1.255
dns-nameservers 8.8.8.8 8.8.4.4
www.138582.com SO娱乐城:真_人.足球.彩票齐全| 开户送10元.首存送58元.手机可投バ注任何游戏顶级信用バ提现即时到账SO.CC
页:
[1]