惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
博客园 - Franky
GbyAI
GbyAI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
爱范儿
爱范儿
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
博客园_首页
MongoDB | Blog
MongoDB | Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recent Announcements
Recent Announcements
Scott Helme
Scott Helme
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
C
CERT Recently Published Vulnerability Notes
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Jina AI
Jina AI
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
L
LangChain Blog
L
LINUX DO - 最新话题
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
H
Hacker News: Front Page
MyScale Blog
MyScale Blog
P
Palo Alto Networks Blog
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
AI
AI
T
Troy Hunt's Blog
Microsoft Azure Blog
Microsoft Azure Blog
阮一峰的网络日志
阮一峰的网络日志
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
罗磊的独立博客
S
Secure Thoughts
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
人人都是产品经理
人人都是产品经理
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Apple Machine Learning Research
Apple Machine Learning Research
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
S
Security @ Cisco Blogs
Cloudbric
Cloudbric
E
Exploit-DB.com RSS Feed
Attack and Defense Labs
Attack and Defense Labs

博客园 - 南桥一梦

Windows Hyper-v 开启嵌套虚拟化的方法 MySQL命令记录 Windows Server 2019 安装Windows Docker和.NET Framework 4.8镜像 Windows Docker 固定容器IP地址 透明网络驱动程序 MySQL优化 右键菜单怎样添加“在此处打开命令提示符”选项 MemSQL与MySQL不兼容问题总结 Ubuntu Server 18.04 修改网路配置 How to Install MemSQL Metro UI 菜单(Winform) Windows Server 2008 系统设置集合 Ubuntu 12.04和MySQL5.5安装 MySQL 参数设置 VS中如何自定义新建文件模板(添加自定义版权信息) Microsoft Windows Server 2008 R2 CHS 官方最新正版下载 解决WebClient或HttpWebRequest首次连接缓慢问题 Ubuntu MySQL Master-Master InnoDb Utf-8 配置文件 Ubuntu MySQL热备份安装 HOWTO:为 Hyper-V 配置外部网络
在Hyper-V中安装和配置Ubuntu Server 11.04 10.10
南桥一梦 · 2012-03-24 · via 博客园 - 南桥一梦

背景

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:
http://releases.ubuntu.com/11.04/ubuntu-11.04-server-amd64.iso
http://releases.ubuntu.com/10.10/ubuntu-10.10-server-amd64.iso

安装过程

1. 在Hyper-V中为安装Ubuntu Server建立VM,1-4个CPU,内存512MB以上,网卡,设置从已下载的Ubuntu安装ISO启动。

如果无法出现初始化虚拟机的提示,请打上Windows Server 2008 R2 SP1的补丁(windows6.1-KB976932-X64.exe)。下载地址:http://www.microsoft.com/downloads/zh-cn/details.aspx?displaylang=zh-cn&FamilyID=c3202ce6-4056-4059-8a1b-3a9b77cdfdda

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
7.添加DNS,vi /etc/resolv.conf(可能要新建),添加以下内容:
nameserver 192.168.83.2
8.重新启动网络:
/etc/init.d/networking restart

我们一起看看怎么样在Ubuntu 12.04 LTS Server版中配置自己的DNS服务器吧!

首先我们需要创建一个文件/etc/resolvconf/resolv.conf.d/tail:

#vim /etc/resolvconf/resolv.conf.d/tail

然后我们在这个文件里写入自己要添加的DNS服务器,格式与以前的/etc/resolv.conf文件一致:

nameserver 8.8.8.8
nameserver 8.8.4.4

然后输入wq保存退出。接下来我们重启下resolvconf程序,让配置生效:

#/etc/init.d/resolvconf restart

再去看看/etc/resolv.conf文件,自己添加的DNS服务器果然乖乖的写进去了!至此问题完美解决!

在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