免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1980 | 回复: 4
打印 上一主题 下一主题

[FreeBSD] VPS 子系統 Alpha 測驗版釋出 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-09-02 17:33 |只看该作者 |倒序浏览
本帖最后由 zeissoctopus 于 2012-09-02 17:34 编辑

FreeBSD 最近喜事接二連三。

Klaus P. Ohrhallinger 君宣布釋出 VPS for FreeBSD 虛擬子系統的完整功能 Alpha 測試版。
這個測試版補丁只支援 FreeBSD 9.0-RELEASE

原文出處:freebsd-virtualization mailing list

轉載 Klaus  文章介紹如何架構一個 freebsd vps 測試平台。原文 出處


  1. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  2. *    How to set up a test environment for FreeBSD VPS         *
  3. *                                                             *
  4. *    Klaus P. Ohrhallinger, http://www.7he.at/freebsd/vps/    *
  5. *                                                             *
  6. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

  7. $Id: setup_testenv.txt 120 2012-08-30 11:14:36Z klaus $

  8. * Install FreeBSD 9.0-RELEASE

  9. * Configure your network interfaces (following instructions assume
  10.   you are using ethernet).

  11. * In order to use the live migration feature, ssh and root login
  12.   have to be enabled:

  13. /etc/rc.conf:
  14. sshd_enable=YES

  15. /etc/ssh/sshd_config:
  16. PermitRootLogin yes

  17. * * * * Install VPS from binary package * * * *

  18. Lookup URL for the right package on the website.
  19. For example:
  20. vps-fbsd90-119-i386-dbg.tbz
  21. means: suited for FreeBSD 9.0; VPS revision 119; i386 machine; debug version

  22. The debug versions are much slower than the prod(uction) versions;
  23. but give more output for debugging and diagnostics.

  24. # fetch http://www.7he.at/freebsd/vps/...
  25. # pkg_add vps-fbsd90-*tbz

  26. * * * * --- * * * *

  27. * Reboot
  28. # sync
  29. # shutdown -r now

  30. * Execute setup script (has to be redone after reboot, but you can add it to /etc/rc.local):
  31. # /etc/rc.vpssetup.sh
  32. (Ignore any errors about non-existent sysctls.)

  33. Output of kldstat should like like this:
  34. # kldstat
  35. Id Refs Address            Size     Name
  36. 1   25 0xffffffff80200000 f23488   kernel
  37. 2    1 0xffffffff81212000 f0d      if_vps.ko
  38. 3    1 0xffffffff81213000 1c22     vps_dev.ko
  39. 4    1 0xffffffff81215000 aa5      vps_ddb.ko
  40. 5    1 0xffffffff81216000 1905     vps_libdump.ko
  41. 6    1 0xffffffff81218000 5db9     vps_snapst.ko
  42. 7    1 0xffffffff8121e000 917d     vps_restore.ko
  43. 8    1 0xffffffff81228000 1ab5     vps_suspend.ko
  44. 9    1 0xffffffff8122a000 1ef5     vps_account.ko
  45. 10    1 0xffffffff8122c000 37e8     vpsfs.ko
  46. 11    1 0xffffffff81230000 3f55     sysvmsg.ko
  47. 12    1 0xffffffff81234000 4dcd     sysvsem.ko
  48. 13    1 0xffffffff81239000 3bd9     sysvshm.ko
  49. #

  50. * * * * Creating virtual instances * * * *

  51. * Create the virtual instance's filesystem:

  52. # mkdir /usr/vps/test01
  53. # fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/9.0-RELEASE/base.txz
  54. # tar Jxpf base.txz -C /usr/vps/test01

  55. * Edit /usr/vps/test01/etc/ttys and set all terminals to ''off''.
  56. * Create /usr/vps/test01/etc/rc.conf:
  57. root_rw_mount=NO
  58. hostname="test01.lo"

  59. * Create /usr/vps/test01/etc/rc.local:
  60. ifconfig vps0 inet 192.168.98.100 netmask 255.255.255.255 up
  61. route add default -iface vps0

  62. * Set a root password:
  63. chroot /usr/vps/test01 /usr/bin/passwd

  64. * Create /etc/vps/vps_test01.conf (minimal example):
  65. NAME = 'test01'
  66. FSROOT = '/usr/vps/test01'
  67. INIT = '/sbin/init'
  68. NETIF_0_ADDRESS = '192.168.98.100'

  69. * Start it up:
  70. # vpsctl start test01
  71. # vpsctl list

  72. * To open a shell in 'test01'; do
  73. # vpsctl shell test01

  74. * For more information about the vpsctl command, see
  75. # man vpsctl

  76. * * * * End Of File * * * *
复制代码
更詳細的 VPS 說明,請到 這裡

评分

参与人数 1可用积分 +2 收起 理由
ulovko + 2 欢迎分享 ^_^

查看全部评分

论坛徽章:
13
15-16赛季CBA联赛之同曦
日期:2016-01-28 19:52:032015亚冠之北京国安
日期:2015-10-07 14:28:19NBA常规赛纪念章
日期: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 [报告]
发表于 2012-09-02 17:46 |只看该作者


@lsstarboy @gvim @fender0107401

论坛徽章:
0
3 [报告]
发表于 2012-09-02 22:36 |只看该作者
回复 1# zeissoctopus

果然是个好消息,赞一个
PS: 发现好的贴子,如何给积分啊?

   

论坛徽章:
49
15-16赛季CBA联赛之福建
日期:2016-06-22 16:22:002015年亚洲杯之中国
日期:2015-01-23 16:25:12丑牛
日期:2015-01-20 09:39:23未羊
日期:2015-01-14 23:55:57巳蛇
日期:2015-01-06 18:21:36双鱼座
日期:2015-01-02 22:04:33午马
日期:2014-11-25 09:58:35辰龙
日期:2014-11-18 10:40:07寅虎
日期:2014-11-13 22:47:15申猴
日期:2014-10-22 15:29:50摩羯座
日期:2014-08-27 10:49:43辰龙
日期:2014-08-21 10:47:58
4 [报告]
发表于 2012-09-02 23:00 |只看该作者
axlrose 发表于 2012-09-02 22:36
回复 1# zeissoctopus

果然是个好消息,赞一个


目前只有版主和荣誉版主有这个权限,别的用户暂时没有这个权限

论坛徽章:
0
5 [报告]
发表于 2012-09-03 12:21 |只看该作者
看来发现好贴子想送积分赞一下还是要版主才有搞头呀
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP