Dear all :<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>I tried to create a VM.But it failed.</div><div><div><br></div><div>[oneadmin@server one-templates]$ cat <a href="http://small_network.net">small_network.net</a></div>
<div>NAME = "Small network"</div><div>TYPE = FIXED</div><div>BRIDGE = br0</div><div>LEASES = [ IP="XXX.XXX.XXX.XXX"]</div><div>LEASES = [ IP="XXX.XXX.XXX.XXX"]
</div></div><div>LEASES = [ IP="XXX.XXX.XXX.XXX"]
</div><div># IP is publis IP</div></blockquote></blockquote><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><br></div><div>[oneadmin@server one-templates]$ onevnet list</div>
<div> ID USER GROUP NAME TYPE BRIDGE PUB LEASES</div><div> 1 oneadmin oneadmin Small network F br0 No 3</div></div><div><br></div><div>[oneadmin@server one-templates]$ cat ttylinux.one</div>
</blockquote></div></blockquote><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><blockquote style="margin:0 0 0 40px;border:none;padding:0px">NAME = ttylinux</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
CPU = 0.1</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">MEMORY = 512</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><br></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
DISK = [</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"> source = "/srv/cloud/one/one-templates/ttylinux.img",</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
target = "hda",</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"> readonly = "no" ]</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">OS=[</blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"> INITRD=/boot//initramfs-2.6.32-220.el6.x86_64.img,</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"> KERNEL=/boot/vmlinuz-2.6.32-220.el6.x86_64,</blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"> KERNEL_CMD="ro xencons=tty console=tty1",</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"> ROOT=sda1 ]</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
NIC = [ NETWORK_ID = 1]</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">GRAPHICS = [ TYPE = "VNC"]</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">FEATURES=[ acpi="no" ]<br>
<br>[oneadmin@server one-templates]$ onevm list<br> ID USER GROUP NAME STAT CPU MEM HOSTNAME TIME</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div> 15 oneadmin oneadmin ttylinux fail 0 0K 00 00:00:09</div>
</div><div><br></div><div><div>[oneadmin@server one-templates]$ cat ../var/15/vm.log</div><div>Sat Mar 10 22:14:56 2012 [DiM][I]: New VM state is ACTIVE.</div><div>Sat Mar 10 22:14:56 2012 [LCM][I]: New VM state is PROLOG.</div>
<div>Sat Mar 10 22:14:56 2012 [VM][I]: Virtual Machine has no context</div><div>Sat Mar 10 22:14:56 2012 [TM][D]: tm_clone.sh: server:/srv/cloud/one/one-templates/ttylinux.img client1:/srv/cloud/one/var//15/images/disk.0</div>
<div>Sat Mar 10 22:14:56 2012 [TM][D]: tm_clone.sh: DST: /srv/cloud/one/var//15/images/disk.0</div><div>Sat Mar 10 22:14:56 2012 [TM][I]: tm_clone.sh: Creating directory /srv/cloud/one/var//15/images</div><div>Sat Mar 10 22:14:56 2012 [TM][I]: tm_clone.sh: Executed "mkdir -p /srv/cloud/one/var//15/images".</div>
<div>Sat Mar 10 22:14:56 2012 [TM][I]: tm_clone.sh: Executed "chmod a+w /srv/cloud/one/var//15/images".</div><div>Sat Mar 10 22:14:56 2012 [TM][I]: tm_clone.sh: Cloning /srv/cloud/one/one-templates/ttylinux.img</div>
<div>Sat Mar 10 22:14:56 2012 [TM][I]: tm_clone.sh: Executed "cp -r /srv/cloud/one/one-templates/ttylinux.img /srv/cloud/one/var//15/images/disk.0".</div><div>Sat Mar 10 22:14:56 2012 [TM][I]: tm_clone.sh: Executed "chmod a+rw /srv/cloud/one/var//15/images/disk.0".</div>
<div>Sat Mar 10 22:14:56 2012 [TM][I]: ExitCode: 0</div><div>Sat Mar 10 22:14:56 2012 [LCM][I]: New VM state is BOOT</div><div>Sat Mar 10 22:14:56 2012 [VMM][I]: Generating deployment file: /srv/cloud/one/var/15/deployment.0</div>
<div>Sat Mar 10 22:15:00 2012 [VMM][I]: Command execution fail: 'if [ -x "/var/tmp/one/vmm/xen/deploy" ]; then /var/tmp/one/vmm/xen/deploy /srv/cloud/one/var//15/images/deployment.0 client1 15 client1; else exit 42; fi'</div>
<div>Sat Mar 10 22:15:00 2012 [VMM][I]: Error: Device 768 (tap) could not be connected. /srv/cloud/one/var//15/images/disk.0 does not exist</div><div>Sat Mar 10 22:15:00 2012 [VMM][E]: Unable</div><div>Sat Mar 10 22:15:00 2012 [VMM][I]: ExitCode: 1</div>
<div>Sat Mar 10 22:15:00 2012 [VMM][E]: Error deploying virtual machine: Unable</div><div>Sat Mar 10 22:15:01 2012 [DiM][I]: New VM state is FAILED</div></div><div><br></div><div>please help me :(</div></blockquote><div>
<br></div></blockquote><br><div class="gmail_quote">張德勤 <span dir="ltr"><<a href="mailto:cinmex91047@gmail.com">cinmex91047@gmail.com</a>></span> 於 2012年3月10日下午7:49 寫道:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear all:<div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>I'm confused the sunstone to create a VM on CentOS + ONE + XEN.</div><div>I create a *.img file from this website.</div><div><a href="http://www.howtoforge.com/virtualization-with-xen-on-centos-6.2-x86_64-paravirtualization-and-hardware-virtualization-p2" target="_blank">http://www.howtoforge.com/virtualization-with-xen-on-centos-6.2-x86_64-paravirtualization-and-hardware-virtualization-p2</a>
</div><div>But I only have *.img file without initrd* file...</div><div>How should I create a VM Template??</div><div>My question is in the Boot/OS options field.</div><div>I choose "Kernel" in the Boot method. (Is it right??)</div>
<div>But what should I set in the Kernel field and Inirtd field ??</div><div>I only have a *img file.... no initrd file....</div><div>And what's value should the Root and Kernel commadns be??</div><div>Please help me create a VM Tamplate!!</div>
<div>Please!!</div></blockquote><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br>Regards,<br>
<font color="#888888"><br>
Te - Chin, Chang (張德勤), <a href="tel:%2B886-3-4227151%20%2357968" value="+88634227151" target="_blank">+886-3-4227151 #57968</a><br>
Networklab, Computer Science & Information Engineering,<br>
National Central University, Jhongli, Taiwan, R.O.C</font><br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br>
<font color="#888888"><br>
Te - Chin, Chang (張德勤), +886-3-4227151 #57968<br>
Networklab, Computer Science & Information Engineering,<br>
National Central University, Jhongli, Taiwan, R.O.C</font><br>
</div></div>