当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 转贴:在Hyper-v上安装ubuntu
帖子发表于 : 2010-12-30 10:13 

注册: 2006-07-06 18:25
帖子: 308
送出感谢: 2
接收感谢: 1
http://blogs.msdn.com/b/virtual_pc_guy/ ... per-v.aspx
图片
Now that the Hyper-V integration services are included in the official Linux builds – I wanted to try out a Linux distribution that is not officially supported by Microsoft and see what was involved in getting it all working. With the recent release of Ubuntu 10.10 I thought I would try out their server version. After downloading the bits from http://www.ubuntu.com/server I created a quad-processor virtual machine with a non-legacy network adapter.
Installation was fairly straight forward:

However – Ubuntu does not have the Hyper-V enlightened network drivers enabled by default – so the installation complains about not being able to find any network adapters:

But I just ignored that and moved along with the install:

I chose the default packages for setting up a LAMP server:

The install finished and I was dropped at the login prompt:

A cool thing to note was that at this stage I could already shut down the virtual machine by using the shutdown button on the Virtual Machine Connection window, so part of the integration services are already running. You can also see that all four virtual processors are there and working:

Getting the Hyper-V drivers up and running at this point in time is actually relatively simple. The first thing you need to do is to edit /etc/initramfs-tools/modules and add the following lines to the end of it:
hv_vmbus
hv_storvsc
hv_blkvsc
hv_netvsc
Once you have made these changes you will need to run “update-initramfs –u” and reboot. You will now have the Hyper-V drivers for storage and networking loaded:

You can confirm that these drivers are loaded by running “lsmod” after the reboot:

The final thing you need to do is to configure networking (because that step was skipped during installation). The first thing to do is to run “ifconfig –a” to find out what name your network adapter has been given. In my case it was “eth0” – but this is not always the name it will get. Once you know the name you will need to edit /etc/network/interfaces and add the following to the end of the file:
For DHCP (what I did):
Auto eth0
iface eth0 inet dhcp
For a Static IP address:
Auto eth0
iface eth0 inet static
address [insert your IP address]
netmask [insert your netmask]
Gateway [insert your gateway address]

Like this:

One more reboot and running “ifconfig” should confirm that everything is working:

And in my case I could also confirm that the website was accessible from my parent partition as well:

So there you have it. Ubuntu Server 10.10 running under Hyper-V with full integration services using nothing other than what is included on the Ubuntu install media.
Cheers,
Ben


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 转贴:在Hyper-v上安装ubuntu
帖子发表于 : 2010-12-30 10:43 

注册: 2006-07-06 18:25
帖子: 308
送出感谢: 2
接收感谢: 1
在windows 2008 r2 hyper-v 下安装ubuntu 10.10 i386 测试通过。


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 转贴:在Hyper-v上安装ubuntu
帖子发表于 : 2010-12-30 10:59 

注册: 2006-07-06 18:25
帖子: 308
送出感谢: 2
接收感谢: 1
10.10 i386 works well.


附件:
01.jpg
01.jpg [ 214.95 KiB | 被浏览 650 次 ]

页首
 用户资料  
 
4 楼 
 文章标题 : Re: 转贴:在Hyper-v上安装ubuntu
帖子发表于 : 2010-12-30 16:46 

注册: 2006-07-06 18:25
帖子: 308
送出感谢: 2
接收感谢: 1
其实,如果从光盘安装,非live-cd方式上安装,则会自动安装hv_vmbus服务。


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译