Xen
  Install
  /boot.cfg
  grub
    pkg_info -D
    menu.lst
    初期設定
    起動画面
  DomU
    xend
    xm create
  DomU NetBSD
  DomU FreeBSD
  hvm
  64/32bit
  problem
  PR

| NetBSD 解説 | sysinst | pkgsrc 各論 | packages | macppc | TsubaiBSD | 絹/software/全文検索
at www.ki.nu

Xen

Last Update: "2008/02/20 22:29:48 makoto"

DomU

Sample configuration
/usr/pkg/share/examples/xen
Configuration directory
/usr/pkg/etc/xen
Wiki
http://wiki.xensource.com/xenwiki/XenNetworking
Vine Linux 3.1 on NetBSD 4.0/Xen3
http://os-museum.com/linux/xen/xen3netbsd4/xen3netbsd4.htm

xend

xend が動くようにしておきます
sudo -s cp -p /usr/pkg/share/examples/rc.d/xend /etc/rc.d echo xend=YES >> /etc/rc.conf /etc/rc.d/xend start

xm create

sudo xm create new_name
を使うと新しい Guest OS を動かすことが出来ます。例えば /usr/pkg/examples/xen/netbsd1 を /usr/pkg/etc/xen/nbsd に写して
sudo xm create nbsd
あるいは
sudo xm create -c nbsd
とします。ただし、添付されている nbsd の中は自分に合せるとともに 二か所変更が必要です。vif -> vif0, disk -> disk0 です。 これで作られたかどうかは次のように確認出来ます。
ttyp2:makoto@genova 11:30:41/080129(...log/xen)> sudo xm list Name ID Mem VCPUs State Time(s) Domain-0 0 64 1 r----- 25.2 nbsd 4 128 1 --p--- 97.7 ttyp2:makoto@genova 11:30:50/080129(...log/xen)>
また console 副指示で 卓をつなげます。以下の例では何も考えずに、通常のカーネルを指 定していますので root device を聞くところまでで止ります。
ttyp0:makoto@genova 11:27:18/080129(~)> sudo xm console nbsd Loaded initial symtab at 0xc04af1d4, strtab at 0xc04e40a8, # entries 12628 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc. All rights reserved. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. NetBSD 4.99.49 (XEN3_DOMU) #0: Mon Jan 21 21:46:09 PST 2008 builds@wb37:/home/builds/ab/HEAD/i386/200801210002Z-obj/ home/builds/ab/HEAD/src/sys/arch/i386/compile/XEN3_DOMU total memory = 128 MB avail memory = 121 MB mainbus0 (root) hypervisor0 at mainbus0 vcpu0 at hypervisor0: (uniprocessor) vcpu0: AMD Athlon 64 or Sempron (686-class), 2200.00 MHz, id 0x40ff2 vcpu0: "AMD Athlon(tm) 64 Processor 3500+" vcpu0: 8 page colors xenbus0 at hypervisor0: Xen Virtual Bus Interface xencons0 at hypervisor0: Xen Virtual Console Driver xencons0: using event channel 2 npx0 at hypervisor0: using exception 16 raidattach: Asked for 8 units Kernelized RAIDframe activated xenbus0: using event channel 1 unknown type console at xenbus0 id 0 not configured Searching for RAID components... boot device: <unknown> root device:
Last Update: Sat, 07 Jun 2014 22:16:17 GMT 1.66 2008/03/08