hns - 日記自動生成システム - Version 2.19.9

先月 2015年10月 来月
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2015年10月05日(月) 旧暦 [n年日記] [更新:"2015/10/12 07:39:48"]

#1 [xen] 久振りの xen

  • NetBSD/amd64 7.99.20 が入っている機械を xen にしようとした
  • しかし DOM0 kernel を 7.99.20 などから持って来ると panic する
  • そこで 7.0 の DOM0 を使って boot
  • pkgsrc から次の二つを入れておく
    xentools42
    xenkernels42
    
  • /boot.cfg にそれなりの設定をする
    menu=Xen 7.0:load /netbsd-7.0-XEN3_DOM0.gz console=pc;multiboot /xen.gz dom0_mem=8192M
    
  • /etc/brconfig.bridge0 を設定
     h97@makoto 22:42:00/151005(~)% cat /etc/ifconfig.bridge0 
     create
     !brconfig $int add wm0 stp wm0 up
    
  • /usr/pkg/etc/xen/disk-h にそれなりの設定
    kernel = "/export/NETBSD6/usr/INSTALL/kernel/netbsd-INSTALL_XEN3_DOMU.gz"
    #kernel = "/netbsd-XEN3_DOMU"
    memory = 1024
    name = "disk-h"
    #vcpus = 1
    disk = [ 'phy:/dev/wd0h,0x03,w']
    vif = [ 'bridge=bridge0' ]
    #root = "/dev/wd0d"
    root = "xbd0"
    
  • sudo xm create -c disk-h をすると、何だか止ってしまう
    Using config file "/usr/pkg/etc/xen/disk-h".
    Started domain disk-h (id=2)
    Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
        2006, 2007, 2008, 2009, 2010, 2011, 2012
        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 6.1_STABLE (INSTALL_XEN3_DOMU)
    total memory = 65536 KB
    avail memory = 49876 KB
    mainbus0 (root)
    hypervisor0 at mainbus0: Xen version 4.2.5
    vcpu0 at hypervisor0: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz, id 0x306c3
    xenbus0 at hypervisor0: Xen Virtual Bus Interface
    xencons0 at hypervisor0: Xen Virtual Console Driver
    xbd0 at xenbus0 id 3: Xen Virtual Block Device Interface
    xbd1 at xenbus0 id 4: Xen Virtual Block Device Interface
    xennet0 at xenbus0 id 0: Xen Virtual Network Interface
    xennet0: MAC address 00:16:3e:5d:37:77
    balloon0 at xenbus0 id 0: Xen Balloon driver
    balloon0: current reservation: 65536 KiB
    xennet0: using RX copy mode
    balloon0: current reservation: 16384 pages => target: 16384 pages
    
  • /var/log/messages を見ると
    xenstored: Checking store ...
    xenstored: Checking store complete.
    /netbsd: balloon0 at xenbus0 id 0: Xen Balloon driver
    /netbsd: balloon0: current reservation: 8388608 KiB
    /netbsd: balloon0: current reservation: 2097152 pages => target: 2097152 pages
    root: /etc/rc: WARNING: $xenwatchdog is not set properly - see rc.conf(5).
    /netbsd: xbdback backend/vbd/1/3: can't VOP_OPEN device 0x7: 6
    xenbackendd[697]: Failed to read /local/domain/0/backend/vbd/1/3/state (No such file or directory)
    xenbackendd[697]: Failed to read /local/domain/0/backend/vbd/1/3/state (No such file or directory)
    /netbsd: xbdback backend/vbd/2/3: can't VOP_OPEN device 0x7: 6
    /netbsd: xvif2i0: Ethernet address 00:16:3e:5e:37:77
    /netbsd: xbd backend: attach device vnd0d (size 6166) for domain 2
    /netbsd: xbd backend domain 2 handle 0x3 (3) using event channel 15, protocol x86_64-abi
    /netbsd: xbd backend domain 2 handle 0x4 (4) using event channel 16, protocol x86_64-abi
    
    Control ] で抜ける。
  • h97@makoto 22:41:06/151005(~)% sudo xm list
    Password:
    Name                                        ID   Mem VCPUs      State   Time(s)
    Domain-0                                     0  8192     1     r-----      6.5
    disk-h                                       2    64     1     -b----      1.1
    
(xentools4*, xenkernel4*) は xm でなく xl を使うようになったような。
という訳で、僕は時代遅れ。要出直。



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)