Taiwan Hadoop Forum

台灣 Hadoop 技術討論區
現在的時間是 2018-04-24, 18:30

所有顯示的時間為 UTC + 8 小時




發表新文章 回覆主題  [ 19 篇文章 ]  前往頁數 12  下一頁
發表人 內容
 文章主題 : 有關於OpenNebula的啟動vm問題
文章發表於 : 2010-10-14, 17:35 
離線

註冊時間: 2010-10-14, 17:27
文章: 13
請問各位前輩 最近小弟在安裝Opennebula+xen
做到xen跟Opennebula都完成安裝 服務也正常啟動
onehost list裡面也都看得到實體機 可以正常控制
xen的部份也有單獨試驗可以正常開啟vm
但是在使用onevm create的時候 每次加到列表裡面的vm卻都無法正常啟動
狀態都是fail 想請問各位該怎麼解決呢?
底下是$ONE_Location/var/裡面的log訊息 但是看不懂
Thu Oct 14 17:25:01 2010 [DiM][I]: New VM state is ACTIVE.
Thu Oct 14 17:25:01 2010 [LCM][I]: New VM state is PROLOG.
Thu Oct 14 17:25:01 2010 [VM][I]: Virtual Machine has no context
Thu Oct 14 17:25:01 2010 [TM][I]: tm_ln.sh: Creating directory /home/one/var//1/images
Thu Oct 14 17:25:01 2010 [TM][I]: tm_ln.sh: Executed "mkdir -p /home/one/var//1/images".
Thu Oct 14 17:25:01 2010 [TM][I]: tm_ln.sh: Executed "chmod a+w /home/one/var//1/images".
Thu Oct 14 17:25:01 2010 [TM][I]: tm_ln.sh: Link /home/domains/vm.img
Thu Oct 14 17:25:01 2010 [TM][I]: tm_ln.sh: Executed "ln -s /home/domains/vm.img /home/one/var//1/images/disk.0".
Thu Oct 14 17:25:01 2010 [TM][I]: tm_mkswap.sh: Creating directory /home/one/var//1/images
Thu Oct 14 17:25:01 2010 [TM][I]: tm_mkswap.sh: Executed "mkdir -p /home/one/var//1/images".
Thu Oct 14 17:25:01 2010 [TM][I]: tm_mkswap.sh: Executed "chmod a+w /home/one/var//1/images".
Thu Oct 14 17:25:01 2010 [TM][I]: tm_mkswap.sh: Creating 64Mb image in /home/one/var//1/images/disk.1
Thu Oct 14 17:25:01 2010 [TM][I]: tm_mkswap.sh: Executed "dd if=/dev/zero of=/home/one/var//1/images/disk.1 bs=1 count=1 seek=64M".
Thu Oct 14 17:25:01 2010 [TM][I]: tm_mkswap.sh: Initializing swap space
Thu Oct 14 17:25:01 2010 [TM][I]: tm_mkswap.sh: Executed "/sbin/mkswap /home/one/var//1/images/disk.1".
Thu Oct 14 17:25:01 2010 [TM][I]: tm_mkswap.sh: Executed "chmod a+w /home/one/var//1/images/disk.1".
Thu Oct 14 17:25:01 2010 [LCM][I]: New VM state is BOOT
Thu Oct 14 17:25:01 2010 [VMM][I]: Generating deployment file: /home/one/var/1/deployment.0

Thu Oct 14 17:25:02 2010 [VMM][I]: Command execution fail: 'cat > /home/one/var//1/images/deployment.0 && sudo /usr/sbin/xm create /home/one/var//1/images/deployment.0 && sudo /usr/sbin/xm sched-cred -d one-1 -w 256'

猜想應該是這裡的問題 但是看不懂這是什麼意思 為什麼要建立這個目錄放image進去
而且還失敗
Thu Oct 14 17:25:02 2010 [VMM][I]: STDERR follows.
Thu Oct 14 17:25:02 2010 [VMM][I]: bash: /home/one/var//1/images/deployment.0: 沒有此一檔案或目錄
Thu Oct 14 17:25:02 2010 [VMM][I]: ExitCode: 1
Thu Oct 14 17:25:02 2010 [VMM][E]: Error deploying virtual machine
Thu Oct 14 17:25:02 2010 [DiM][I]: New VM state is FAILED
Thu Oct 14 17:25:02 2010 [TM][W]: Ignored: LOG - 1 tm_delete.sh: Deleting /home/one/var//1/images

Thu Oct 14 17:25:02 2010 [TM][W]: Ignored: LOG - 1 tm_delete.sh: Executed "rm -rf /home/one/var//1/images".

Thu Oct 14 17:25:02 2010 [TM][W]: Ignored: TRANSFER SUCCESS 1 -


回頂端
 個人資料 E-mail  
 
 文章主題 : Re: 有關於OpenNebula的啟動vm問題
文章發表於 : 2010-10-14, 18:00 
離線

註冊時間: 2010-10-14, 17:27
文章: 13
補上one部份的設定檔

NAME = vm01
CPU = 1
MEMORY = 128
OS = [ kernel = /boot/vmlinuz-2.6.18-194.17.1.el5xen,
initrd = /boot/initrd-2.6.18-194.17.1.el5xen.img ,
root = hda2]
DISK = [ source = /home/domains/vm.img,
clone = no,
target = hda2,
readonly = no]
DISK = [ type = swap,
size = 256,
target = "hda1",
readonly = "no" ]
NIC=[IP="192.168.0.184", MAC="00:E0:18:75:C2:D5"]


回頂端
 個人資料 E-mail  
 
 文章主題 : Re: 有關於OpenNebula的啟動vm問題
文章發表於 : 2010-10-15, 13:37 
離線

註冊時間: 2009-11-09, 19:52
文章: 2897
可以請問一下您 /home/one 的讀寫權限設定以及執行身份是否有寫入 /home/one/var 的權限呢?

- Jazz


回頂端
 個人資料 E-mail  
 
 文章主題 : Re: 有關於OpenNebula的啟動vm問題
文章發表於 : 2010-10-15, 14:24 
離線

註冊時間: 2010-10-14, 17:27
文章: 13
我有把/home底下以及其自己全部資料設成777了@@


回頂端
 個人資料 E-mail  
 
 文章主題 : Re: 有關於OpenNebula的啟動vm問題
文章發表於 : 2010-10-15, 14:41 
離線

註冊時間: 2010-07-05, 14:31
文章: 11
您好:
請問一下您的使用者身分是? 您的 one version ? 您的 one_auth 授權檔有加入欲控制的使用者嗎?
Thanks


回頂端
 個人資料 E-mail  
 
 文章主題 : Re: 有關於OpenNebula的啟動vm問題
文章發表於 : 2010-10-15, 14:46 
離線

註冊時間: 2010-10-14, 17:27
文章: 13
rider 寫:
您好:
請問一下您的使用者身分是? 您的 one version ? 您的 one_auth 授權檔有加入欲控制的使用者嗎?
Thanks

1.使用者身份是root
2.version是1.4
3.有

感謝您的回應


回頂端
 個人資料 E-mail  
 
 文章主題 : Re: 有關於OpenNebula的啟動vm問題
文章發表於 : 2010-10-15, 17:31 
離線

註冊時間: 2010-10-14, 17:27
文章: 13
順道一題 我如果直接在終端機模式下執行藍色部份的指令
會得到沒有此一路徑或檔案Orz
是不是表示應該是[VMM][I]: Generating deployment file: /home/one/var/33/deployment.0
這一步驟沒做正確就跳到下一步驟所以沒辦法建立嗎?
我Vmm的部份是選則xen


回頂端
 個人資料 E-mail  
 
 文章主題 : Re: 有關於OpenNebula的啟動vm問題
文章發表於 : 2010-10-21, 11:09 
離線

註冊時間: 2010-07-05, 14:31
文章: 11
您好:

這位大大的問題很特殊我是沒有遇到過這類的問題.
可能原因推測如下
(1) ONE 的安裝與設定檔配置有問題
(2) 還有加進 ONEHOST pool 的hosts有無正常連結起來? 您在 create vm 有指定 deploy 到哪台實體機器嗎?
正常情況下我的 ONE vm.log 會如下所示:

Wed Oct 20 02:05:27 2010 [LCM][I]: New VM state is PROLOG.
Wed Oct 20 02:05:27 2010 [VM][I]: Virtual Machine has no context
Wed Oct 20 02:05:27 2010 [TM][I]: tm_ln.sh: Creating directory /home/one/var//97/images
Wed Oct 20 02:05:27 2010 [TM][I]: tm_ln.sh: Executed "mkdir -p /home/one/var//97/images".
Wed Oct 20 02:05:27 2010 [TM][I]: tm_ln.sh: Executed "chmod a+w /home/one/var//97/images".
Wed Oct 20 02:05:27 2010 [TM][I]: tm_ln.sh: Link /var/lib/libvirt/images/xp.img
Wed Oct 20 02:05:27 2010 [TM][I]: tm_ln.sh: Executed "ln -s /var/lib/libvirt/images/xp.img /home/one/var//97/images/disk.0".
Wed Oct 20 02:05:27 2010 [LCM][I]: New VM state is BOOT
Wed Oct 20 02:05:27 2010 [VMM][I]: Generating deployment file: /home/one/var/97/deployment.0
Wed Oct 20 02:05:27 2010 [LCM][I]: New VM state is RUNNING
Wed Oct 20 02:05:57 2010 [VMM][D]: Monitor Information:
CPU : -1
Memory: 1048576
Net_TX: -1
Net_RX: -1

不知道這位大大是否方便把 ONE的設定檔: /home/one/etc/oned.conf 分享一下讓我們看看設定檔是否有問題.
以及 onehost list ---> show 一下各節點的狀態.
Thanks


回頂端
 個人資料 E-mail  
 
 文章主題 : Re: 有關於OpenNebula的啟動vm問題
文章發表於 : 2010-10-21, 16:57 
離線

註冊時間: 2010-10-14, 17:27
文章: 13
感謝樓上大大的回覆 問題在小弟昨天重灌整個OS之後 重新安裝就可以了
設定也都跟之前一樣 所以還是不知道問題出在哪裡= =a

但是現在遇到的問題是vm可以啟動了 但是他開到一半都會當掉 卡在
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.31.14-0.2-xen (geeko@buildhost) (gcc version 4.4.1 [gcc-4_4-branch revision 150839] (SUSE Linux) ) #1 SMP 2010-10-07 19:06:53 +0200
[ 0.000000] Command line: root=/dev/sda2
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] Xen-provided physical RAM map:
[ 0.000000] Xen: 0000000000000000 - 0000000020800000 (usable)
[ 0.000000] last_pfn = 0x20800 max_arch_pfn = 0x80000000
[ 0.000000] init_memory_mapping: 0000000000000000-0000000020800000
[ 0.000000] RAMDISK: 008e3000 - 01717000
[ 0.000000] ACPI in unprivileged domain disabled
[ 0.000000] (3 early reservations) ==> bootmem [0000000000 - 0020000000]
[ 0.000000] #0 [00008e3000 - 000182b000] Xen provided ==> [00008e3000 - 000182b000]
[ 0.000000] #1 [0000002000 - 00008c2e9c] TEXT DATA BSS ==> [0000002000 - 00008c2e9c]
[ 0.000000] #2 [000182b000 - 0001931000] PGTABLE ==> [000182b000 - 0001931000]
[ 0.000000] Zone PFN ranges:
[ 0.000000] DMA 0x00000000 -> 0x00001000
[ 0.000000] DMA32 0x00001000 -> 0x00100000
[ 0.000000] Normal 0x00100000 -> 0x00100000
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] early_node_map[2] active PFN ranges
[ 0.000000] 0: 0x00000000 -> 0x00020000
[ 0.000000] 0: 0x00020800 -> 0x00020800
[ 0.000000] NR_CPUS:32 nr_cpumask_bits:32 nr_cpu_ids:1 nr_node_ids:1
[ 0.000000] PERCPU: Allocated 11 4k pages, static data 44192 bytes
[ 0.000000] Swapping MFNs for PFN 791 and 1722 (MFN 11be6c and 105edb)
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129252
[ 0.000000] Kernel command line: root=/dev/sda2
[ 0.000000] PID hash table entries: 2048 (order: 11, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[ 0.000000] Initializing CPU#0
[ 0.000000] Software IO TLB disabled
[ 0.000000] Memory: 489864k/532480k available (4569k kernel code, 8192k absent, 33844k reserved, 3137k data, 372k init)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:6464 nr_irqs:2392
[ 0.000000] Xen reported: 2666.760 MHz processor.
[ 0.004000] Console: colour dummy device 80x25
[ 0.004000] console [tty0] enabled
[ 0.004000] console [xvc-1] enabled
[ 1.064040] Calibrating delay using timer specific routine.. 5335.97 BogoMIPS (lpj=10671940)
[ 1.064090] Security Framework initialized
[ 1.064104] AppArmor: AppArmor initialized
[ 1.064117] Mount-cache hash table entries: 256
[ 1.064191] Initializing cgroup subsys ns
[ 1.064198] Initializing cgroup subsys cpuacct
[ 1.064202] Initializing cgroup subsys memory
[ 1.064208] Initializing cgroup subsys devices
[ 1.064211] Initializing cgroup subsys freezer
[ 1.064215] Initializing cgroup subsys net_cls
[ 1.064240] CPU: L1 I cache: 32K, L1 D cache: 32K
[ 1.064244] CPU: L2 cache: 256K
[ 1.064246] CPU: L3 cache: 8192K
[ 1.064255] SMP alternatives: switching to UP code
[ 1.079239] Freeing SMP alternatives: 28k freed
[ 1.079379] Brought up 1 CPUs
[ 1.079475] devtmpfs: initialized
[ 1.079687] regulator: core version 0.5
[ 1.099597] Time: 165:165:165 Date: 165/165/65
[ 1.099669] NET: Registered protocol family 16
[ 1.100361] Brought up 1 CPUs
[ 1.100785] PCI: Fatal: No config space access function found
[ 1.100790] PCI: setting up Xen PCI frontend stub
[ 1.101188] bio: create slab <bio-0> at 0
[ 1.101261] ACPI: Interpreter disabled.
[ 1.101422] suspend: event channel 9
[ 1.101573] xen_mem: Initialising balloon driver.
[ 1.104383] SCSI subsystem initialized
[ 1.104487] usbcore: registered new interface driver usbfs
[ 1.104502] usbcore: registered new interface driver hub
[ 1.104520] usbcore: registered new device driver usb
[ 1.104557] PCI: System does not support PCI
[ 1.104561] PCI: System does not support PCI
[ 1.105137] AppArmor: AppArmor Filesystem Enabled
[ 1.105144] pnp: PnP ACPI: disabled
[ 1.105269] NET: Registered protocol family 2
[ 1.105332] IP route cache hash table entries: 16384 (order: 5, 131072 bytes)
[ 1.105461] TCP established hash table entries: 65536 (order: 8, 1048576 bytes)
[ 1.105461] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[ 1.105461] TCP: Hash tables configured (established 65536 bind 65536)
[ 1.105461] TCP reno registered
[ 1.105461] NET: Registered protocol family 1
[ 1.105461] Unpacking initramfs...
[ 1.113984] Freeing initrd memory: 14544k freed
[ 1.116228] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 1.116362] audit: initializing netlink socket (disabled)
[ 1.116377] type=2000 audit(1287650823.054:1): initialized
[ 1.122455] VFS: Disk quotas dquot_6.5.2
[ 1.122481] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 1.122543] msgmni has been set to 263
[ 1.122610] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 1.122616] io scheduler noop registered
[ 1.122619] io scheduler anticipatory registered
[ 1.122622] io scheduler deadline registered
[ 1.122630] io scheduler cfq registered (default)
[ 1.122689] pci-stub: invalid id string ""
[ 1.123448] Non-volatile memory driver v1.3
[ 1.123499] Xen virtual console successfully installed as xvc0
[ 1.123518] Event-channel device installed.
[ 1.123576] Fixed MDIO Bus: probed
[ 1.123600] PNP: No PS/2 controller found. Probing ports directly.
[ 1.124414] i8042.c: No controller found.
[ 1.124446] mice: PS/2 mouse device common for all mice
[ 1.124514] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[ 1.124763] TCP cubic registered
[ 1.124819] registered taskstats version 1
[ 1.124839] PCI IO multiplexer device installed.
[ 1.124850] Magic number: 1:252:3141
[ 1.124859] XENBUS: Device with no driver: device/vbd/2051
[ 1.124863] XENBUS: Device with no driver: device/vbd/2049
[ 1.124866] XENBUS: Device with no driver: device/vif/0
[ 1.124869] XENBUS: Device with no driver: device/console/0
[ 1.124873] /usr/src/packages/BUILD/kernel-xen-2.6.31.14/linux-2.6.31/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 1.124965] Freeing unused kernel memory: 372k freed
[ 1.125063] Write protecting the kernel read-only data: 7352k
[ 1.174429] netfront: Initialising virtual ethernet driver.
[ 1.282268] register_blkdev: cannot get major 8 for sd
[ 1.282274] vbd vbd-2051: 19 xlvbd_add at /local/domain/0/backend/tap/9/2051
[ 1.282886] register_blkdev: cannot get major 8 for sd
[ 1.282893] vbd vbd-2051: 19 xlvbd_add at /local/domain/0/backend/tap/9/2051
[ 1.283177] register_blkdev: cannot get major 8 for sd
[ 1.283182] vbd vbd-2049: 19 xlvbd_add at /local/domain/0/backend/tap/9/2049
[ 1.284302] register_blkdev: cannot get major 8 for sd
[ 1.284307] vbd vbd-2049: 19 xlvbd_add at /local/domain/0/backend/tap/9/2049
[ 1.380140] XENBUS: Device not ready: device/vbd/2051
[ 1.380154] XENBUS: Device not ready: device/vbd/2049
[ 1.385677] udev: starting version 146

到這邊就停住了 看起來像是udev讀硬體狀態的時候出錯 但是他也沒有中斷
就一直卡在這邊 完全不動 不知道是為什麼 用同一個img檔案直接從xen開就沒問題
猜想應該是templete設定有問題 可以請各位幫忙看看嗎?
以下為one設定檔:

CPU = 2
MEMORY = 512
OS = [ kernel = "/boot/vmlinuz-2.6.31.14-0.2-xen",
initrd = "/boot/initrd-2.6.31.14-0.2-xen",
root = "sda2"]
DISK = [ source = "/home/domains/xen.img",
clone = "no",
target = "sda3",
readonly = "no"]
DISK = [ type = swap,
size = 128,
target = "sda1",
readonly = "no" ]

NIC = [ mac="00:ff:72:17:20:27"]


回頂端
 個人資料 E-mail  
 
 文章主題 : Re: 有關於OpenNebula的啟動vm問題
文章發表於 : 2010-10-21, 16:58 
離線

註冊時間: 2010-10-14, 17:27
文章: 13
以及oned.conf

#*******************************************************************************
# OpenNebula Configuration file
#*******************************************************************************

#*******************************************************************************
# Daemon configuration attributes
#-------------------------------------------------------------------------------
# HOST_MONITORING_INTERVAL: Time in seconds between host monitorization
#
# VM_POLLING_INTERVAL: Time in seconds between virtual machine monitorization
#
# VM_DIR: Remote path to store the VM images, it should be shared between all
# the cluster nodes to perform live migrations. This variable is the default
# for all the hosts in the cluster.
#
# PORT: Port where oned will listen for xmlrpc calls.
#
# DEBUG_LEVEL: 0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG
#*******************************************************************************

HOST_MONITORING_INTERVAL = 5

VM_POLLING_INTERVAL = 10

#VM_DIR=/home/domains/

PORT=2633

DEBUG_LEVEL=3

#*******************************************************************************
# Physical Networks configuration
#*******************************************************************************
# NETWORK_SIZE: Here you can define the default size for the virtual networks
#
# MAC_PREFIX: Default MAC prefix to be used to create the auto-generated MAC
# addresses is defined here (this can be overrided by the Virtual Network
# template)
#*******************************************************************************

NETWORK_SIZE = 254

MAC_PREFIX = "00:03"

#*******************************************************************************
# Information Driver Configuration
#*******************************************************************************
# You can add more information managers with different configurations but make
# sure it has different names.
#
# name : name for this information manager
#
# executable: path of the information driver executable, can be an
# absolute path or relative to $ONE_LOCATION/lib/mads (or
# /usr/lib/one/mads/ if OpenNebula was installed in /)
#
# arguments : for the driver executable, usually a probe configuration file,
# can be an absolute path or relative to $ONE_LOCATION/etc (or
# /etc/one/ if OpenNebula was installed in /)
#*******************************************************************************

IM_MAD = [
name = "im_xen",
executable = "one_im_ssh",
arguments = "im_xen/im_xen.conf" ]

#-------------------------------------------------------------------------------
# KVM Information Driver Manager sample configuration
#-------------------------------------------------------------------------------
#IM_MAD = [
# name = "im_kvm",
# executable = "one_im_ssh",
# arguments = "im_kvm/im_kvm.conf" ]
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
# EC2 Information Driver Manager sample configuration
#-------------------------------------------------------------------------------
#IM_MAD = [
# name = "im_ec2",
# executable = "one_im_ec2",
# arguments = "im_ec2/im_ec2.conf" ]
#-------------------------------------------------------------------------------

#*******************************************************************************
# Virtualization Driver Configuration
#*******************************************************************************
# You can add more virtualization managers with different configurations but
# make sure it has different names.
#
# name : name of the virtual machine manager driver
#
# executable: path of the virtualization driver executable, can be an
# absolute path or relative to $ONE_LOCATION/lib/mads (or
# /usr/lib/one/mads/ if OpenNebula was installed in /)
#
# arguments : for the driver executable
#
# default : default values and configuration parameters for the driver, can
# be an absolute path or relative to $ONE_LOCATION/etc (or
# /etc/one/ if OpenNebula was installed in /)
#
# type : driver type, supported drivers: xen, kvm, xml
#*******************************************************************************

VM_MAD = [
name = "vmm_xen",
executable = "one_vmm_xen",
default = "vmm_xen/vmm_xen.conf",
type = "xen" ]

#-------------------------------------------------------------------------------
# KVM Virtualization Driver Manager sample configuration
#-------------------------------------------------------------------------------
#VM_MAD = [
# name = "vmm_kvm",
# executable = "one_vmm_kvm",
# default = "vmm_kvm/vmm_kvm.conf",
# type = "kvm" ]
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
# EC2 Virtualization Driver Manager sample configuration
# arguments: default values for the EC2 driver, can be an absolute path or
# relative to $ONE_LOCATION/etc (or /etc/one/ if OpenNebula was
# installed in /).
#-------------------------------------------------------------------------------
#VM_MAD = [
# name = "vmm_ec2",
# executable = "one_vmm_ec2",
# arguments = "vmm_ec2/vmm_ec2.conf",
# type = "xml" ]
#-------------------------------------------------------------------------------

#*******************************************************************************
# Transfer Manager Driver Configuration
#*******************************************************************************
# You can add more transfer managers with different configurations but make
# sure it has different names.
# name : name for this transfer driver
#
# executable: path of the transfer driver executable, can be an
# absolute path or relative to $ONE_LOCATION/lib/mads (or
# /usr/lib/one/mads/ if OpenNebula was installed in /)
#
# arguments : for the driver executable, usually a commands configuration file
# , can be an absolute path or relative to $ONE_LOCATION/etc (or
# /etc/one/ if OpenNebula was installed in /)
#*******************************************************************************

#TM_MAD = [
# name = "tm_ssh",
# executable = "one_tm",
# arguments = "tm_ssh/tm_ssh.conf" ]

#-------------------------------------------------------------------------------
# NFS Transfer Manager Driver sample configuration
#-------------------------------------------------------------------------------
TM_MAD = [
name = "tm_nfs",
executable = "one_tm",
arguments = "tm_nfs/tm_nfs.conf" ]
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
# Dummy Transfer Manager Driver sample configuration
#-------------------------------------------------------------------------------
#TM_MAD = [
# name = "tm_dummy",
# executable = "one_tm",
# arguments = "tm_dummy/tm_dummy.conf" ]
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
# LVM Transfer Manager Driver sample configuration
#-------------------------------------------------------------------------------
#TM_MAD = [
# name = "tm_lvm",
# executable = "one_tm",
# arguments = "tm_lvm/tm_lvm.conf" ]
#-------------------------------------------------------------------------------

#*******************************************************************************
# Hook Manager Configuration
#*******************************************************************************
# The Driver (HM_MAD), used to execute the Hooks
# executable: path of the hook driver executable, can be an
# absolute path or relative to $ONE_LOCATION/lib/mads (or
# /usr/lib/one/mads/ if OpenNebula was installed in /)
#
# arguments : for the driver executable, can be an absolute path or relative
# to $ONE_LOCATION/etc (or /etc/one/ if OpenNebula was installed
# in /)
#
# Virtual Machine Hooks (VM_HOOK) defined by:
# name : for the hook, useful to track the hook (OPTIONAL)
# on : when the hook should be executed,
# - CREATE, when the VM is created (onevm create)
# - RUNNING, after the VM is successfully booted
# - SHUTDOWN, after the VM is shutdown
# - STOP, after the VM is stopped (including VM image transfers)
# - DONE, after the VM is deleted or shutdown
# command : use absolute path here
# arguments : for the hook. You can access to VM template variables with $
# - $ATTR, the value of an attribute e.g. $NAME or $VMID
# - $ATTR[VAR], the value of a vector e.g. $NIC[MAC]
# - $ATTR[VAR, COND], same of previous but COND select between
# multiple ATTRs e.g. $NIC[MAC, NETWORK="Public"]
# remote : values,
# - YES, The hook is executed in the host where the VM was
# allocated
# - NO, The hook is executed in the OpenNebula server (default)
#-------------------------------------------------------------------------------

HM_MAD = [
executable = "one_hm" ]

#-------------------------------- Hook Examples --------------------------------
#VM_HOOK = [
# name = "dhcp",
# on = "create",
# command = "/bin/echo",
# arguments = "$NAME > /tmp/test.$VMID" ]
#-------------------------------------------------------------------------------
#VM_HOOK = [
# name = "ebtables",
# on = "running",
# command = "/usr/local/one/bin/set_net",
# arguments = '$NIC[MAC, Network = "Private"]',
# remote = "yes" ]
#-------------------------------------------------------------------------------
#VM_HOOK = [
# name = "mail",
# on = "running",
# command = "/usr/local/one/bin/send_mail",
# arguments = "$VMID $NAME",
# remote = "no" ]
#------------------------------------------------------------------------------


回頂端
 個人資料 E-mail  
 
顯示文章 :  排序  
發表新文章 回覆主題  [ 19 篇文章 ]  前往頁數 12  下一頁

所有顯示的時間為 UTC + 8 小時


誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 2 位訪客


不能 在這個版面發表主題
不能 在這個版面回覆主題
不能 在這個版面編輯您的文章
不能 在這個版面刪除您的文章
不能 在這個版面上傳附加檔案

搜尋:
前往 :  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
正體中文語系由 竹貓星球 維護製作