[vmschedule]2011-11-14

0 views
Skip to first unread message

孙建刚

unread,
Nov 13, 2011, 7:37:20 PM11/13/11
to xiyoucloud
昨天:将所使用的shell命令全部改为正确的输出,如下:
create_vm.sh:
#!/bin/bash
## update time 2011-7-26
## VcpuCount,MemSize,DiskSize,IpAddr,MacAddr,VncPass,VncPort,VmUser,VmUserPass,VmI
## argument 2 64 64 "192.168.3.120" "11:22:33:44:55:66" 123456 5901 jiangang 123456 1
echo "SUCC"

destroy_vm.sh:
#!/bin/bash
# argument:vmid
# This script is used for shutdown a VM
echo "SUCC"

get_node_resource.sh:
#!/bin/bash
# you should extrace these info form your system
#echo "no...@127.0.0.1 192.168.11.129 2 1000 1000 500 500"
#hostname=`hostname`
#echo "$hostname $ip $tmem $fmem $cpu $thd $fhd"
echo "no...@127.0.0.1 192.168.11.129 2 1000 1000 500 500"

start_vm.sh:
#!/bin/bash
#vm name
##Vm_id,VcpuCount,MemSize,DiskSize,Ipaddr,VncPort,VncPass,Passwd
echo "SUCC"

stop_vm.sh:
#!/bin/bash
#argument: vmid
echo "SUCC"
然后对之前进行vncport修改之后的程序进行调试

今天:把对这个的调试通过,之后将正确的shell加进来。

主要收获:关于erlang中文件的读取,内容如下:
Reply all
Reply to author
Forward
0 new messages