亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 9357 | 回復(fù): 8
打印 上一主題 下一主題

[FreeBSD] 我用Microsoft Hyper-V安裝了FreeBSD9.0 [復(fù)制鏈接]

論壇徽章:
1
雙子座
日期:2013-11-14 17:43:24
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2012-07-11 15:13 |只看該作者 |倒序瀏覽
本帖最后由 star_in_sky 于 2012-07-11 15:15 編輯

虛擬機(jī)真是個好東西 部門內(nèi)部有一臺HP Server(1U),上面安裝了Win2008,配置了Microsoft Hyper-V;安裝了兩臺Win2003的虛擬機(jī),作為部門內(nèi)部的開發(fā)測試平臺(WEB+DB)。

嘻嘻,我偷偷的在Hyper-V中又安裝了FreeBSD9.0,作為一個學(xué)習(xí)平臺。Microsoft的虛擬機(jī)非常不錯,F(xiàn)reeBSD已經(jīng)順利的運行起來了。
現(xiàn)在發(fā)現(xiàn)有三個問題
1)因為驅(qū)動的原因,F(xiàn)reeBSD只能用Hyper-V的老式虛擬的網(wǎng)卡,導(dǎo)致遠(yuǎn)程登錄速度比較慢。好消息是,Microsoft很快就會在Hyper-V中增加對FreeBSD的支持。
2)開機(jī)不能夠自動用dhclient抓取IP地址;必須手動的運行dhclient命令才行。
3)我不能通過GDM遠(yuǎn)程登錄FreeBSD的圖形終端;后來改用KDM就可以。

下面是兩個截圖

論壇徽章:
13
15-16賽季CBA聯(lián)賽之同曦
日期:2016-01-28 19:52:032015亞冠之北京國安
日期:2015-10-07 14:28:19NBA常規(guī)賽紀(jì)念章
日期:2015-05-04 22:32:03處女座
日期:2015-01-15 19:45:44卯兔
日期:2014-10-28 16:17:14白羊座
日期:2014-05-24 15:10:46寅虎
日期:2014-05-10 09:50:35白羊座
日期:2014-03-12 20:52:17午馬
日期:2014-03-01 08:37:27射手座
日期:2014-02-19 19:26:54子鼠
日期:2013-11-30 09:03:56獅子座
日期:2013-09-08 08:37:52
2 [報告]
發(fā)表于 2012-07-11 15:24 |只看該作者
感謝分享 贊! ^_^

論壇徽章:
0
3 [報告]
發(fā)表于 2012-07-11 17:10 |只看該作者
不錯哈。。。。。。頂你一下。

論壇徽章:
0
4 [報告]
發(fā)表于 2012-07-11 17:49 |只看該作者
要想開機(jī)自動dhclient,就在/etc/rc.conf添加
  1. background_dhclient="YES"
復(fù)制代碼

論壇徽章:
1
雙子座
日期:2013-11-14 17:43:24
5 [報告]
發(fā)表于 2012-07-12 10:29 |只看該作者
回復(fù) 4# oily1314


    謝謝樓上的各位。

不過這樣的方法也無法自動抓取IP地址,原因還是因為Hyper-V的網(wǎng)卡對于FreeBSD來說不太兼容。

有個老外和我遇見的問題一樣。
http://cncc.bingj.com/cache.aspx ... h-CN&w=8e4166db,1f5409a7

FreeBSD under Hyper-V
OK.  I'm playing with FreeBSD 8.0 under Hyper-V R2.  I looked at FreeBSD 7.0 under Hyper-V R1 about this time last year and without a kernel patch, it had issues shutting down (and starting, and running...).  Well, the shutdown bug and the starting bug and all others seem to have been addressed fully aside from one slight networking issue.  So here's the lowdown on this one remaining issue...

As there's no synthetic network adapter driver for the "good" NIC in Hyper-V for FreeBSD (nor OpenBSD nor Linux), then you need to use the "bad" NIC - the Legacy Network Adapter.  The issue with this is that it is slow - only 100 Mbps.  Under FreeBSD it is detected as a "de" NIC - the first one being "de0".

You can either configure this during the initial setup of FreeBSD using sysinstall, or by manually editing the /etc/rc.conf file and adding ifconfig_de0="DHCP" to that file.

There seems to be an issue with the way Microsoft built this adapter as under FreeBSD it doesn't properly obtain a DHCP-assigned address no matter where the DHCP server is - on a Windows box, a *nix box or a firewall/router/modem device.  Real, physical "de" NICs work fine.  At least there's a workaround that allows the DHCP-assigned address to work - you need to stop, start and re-acquire the DHCP-assigned address by running:

ifconfig de0 down
ifconfig de0 up
dhclient de0

Now, you can run this manually every time after you reboot the box, however that means that the box is offline until you log into it using Hyper-V Manager.  A better way to handle this is to create an /etc/rc.local file, add these commands to it, then chmod 755 /etc/rc.local to make it an executable file for root.

Obviously, once this has been done, a portsnap fetch then portsnap extract is a good idea.  (Or whatever way you want to keep your FreeBSD ports up to date.)  And then installing any updated portss that are available using ports, portmanager or portupgrade or whatever method floats your boat.

Regards,

The Outspoken Wookie

論壇徽章:
0
6 [報告]
發(fā)表于 2014-05-20 10:24 |只看該作者
樓主所說的前面兩個問題我昨天安裝freebsd 10.0時都遇到了。
在hyper-v中,默認(rèn)使用“網(wǎng)絡(luò)適配器”,在freebsd中運行ifconfig根本就看不到網(wǎng)卡;使用“舊版網(wǎng)絡(luò)適配器”才可以識別到網(wǎng)卡(de0);
但是在安裝過程中不能自動獲取到IP地址,啟動后也是不能獲取到,當(dāng)時ping 127.0.0.1,判斷網(wǎng)卡工作正常,只是沒有獲取IP。
今天早晨搜索到這篇文件,得到印證,嘗試用dhclient命令,可以順利獲取到IP。
準(zhǔn)備按照老外的方法,以在啟動時可以自動獲取IP地址。

論壇徽章:
0
7 [報告]
發(fā)表于 2014-05-20 10:53 |只看該作者
剛剛試過了,把下面三條命令做成一個文件/ect/rc.loca
ifconfig de0 down
ifconfig de0 up
dhclient de0
再執(zhí)行下面的命令,即可讓系統(tǒng)在啟動時獲取到IP地址,確實有效。
chmod 755 /etc/rc.local

論壇徽章:
20
CU大;照
日期:2013-04-17 11:48:26羊年新春福章
日期:2015-03-10 22:39:202015年中國系統(tǒng)架構(gòu)師大會
日期:2015-06-29 16:11:282015亞冠之平陽省
日期:2015-07-31 09:19:042015七夕節(jié)徽章
日期:2015-08-21 11:06:17IT運維版塊每日發(fā)帖之星
日期:2015-09-30 06:20:002015亞冠之柏太陽神
日期:2015-10-19 20:29:5915-16賽季CBA聯(lián)賽之天津
日期:2016-11-29 14:03:4315-16賽季CBA聯(lián)賽之北控
日期:2016-12-24 20:51:492015年辭舊歲徽章
日期:2015-03-03 16:54:15雙魚座
日期:2015-01-12 20:58:532014年中國系統(tǒng)架構(gòu)師大會
日期:2014-10-14 15:59:00
8 [報告]
發(fā)表于 2014-05-31 07:32 |只看該作者
還可以這么玩,學(xué)習(xí)了

論壇徽章:
154
2022北京冬奧會紀(jì)念版徽章
日期:2015-08-07 17:10:5720周年集字徽章-年
日期:2022-10-26 16:44:2015-16賽季CBA聯(lián)賽之深圳
日期:2022-11-02 14:02:4515-16賽季CBA聯(lián)賽之八一
日期:2022-11-28 12:07:4820周年集字徽章-20	
日期:2023-07-19 08:49:4515-16賽季CBA聯(lián)賽之八一
日期:2023-11-04 19:23:5115-16賽季CBA聯(lián)賽之廣夏
日期:2023-12-13 18:09:34
9 [報告]
發(fā)表于 2014-05-31 11:26 |只看該作者
linux才是未來,
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP