<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Hello Marcos,</div><div><br></div><div>You are correct, the problem is that the deployment file is not being copied to that directory. The place where the deployment file is copied to the "images" directory is in VMM Xen driver, specifically in <a href="http://trac.opennebula.org/browser/one/trunk/src/vmm_mad/xen/one_vmm_xen.rb#L55">http://trac.opennebula.org/browser/one/trunk/src/vmm_mad/xen/one_vmm_xen.rb#L55</a></div><div><br></div><div>I have updated the driver to log the copy to the vm log file. If you update your files the copy should appear logged in that file. Anyhow, it is good do have debugging enabled for drivers when errors happen, you have more information when things fail. Edit etc/defaultrc and set ONE_MAD_DEBUG to 1. After you restart oned there will be more log files in var directory, one for each driver. I hope you will get the information needed to make it work. Ask again if there are still problems.</div><div><br></div><div>Concerning the VirtualNetworkingManager, we are still in the process of writing documentation. We will let you know when something is ready.</div><div><br></div><div>Bye</div><div><br></div><div><br></div><div><div>On Nov 19, 2008, at 8:07 AM, Marcos Dias de Assuncao wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> <div><br></div><div>Hi Tino,</div><div><br></div><div>thanks for your e-mail. We have updated OpenNebula on our testbed, but we had a few problems and could not test the case below. </div><div><br></div><div>We have noticed that you have introduced a transfer manager that copies the file system images and the deployment file to the remote hosts. It looks interesting, but we have a problem with that. We are using NFS and noticed that OpenNebula is cloning the images and creating a subdirectory called $ONE_LOCATION/var/vmid/images, where the disk image is placed. Also, I looked at the source code and found that the Xen driver now expects a remote deployment file. However, it seems that OpenNebula is not copying the deployment file to the remote location. I could not find where that is done in the source code. The error we get is the following:</div><div><br></div><div>cat ../OpenNebula/var/2/vm.log</div><div><br></div><div><div>Wed Nov 19 17:14:52 2008 [DiM][I]: New VM state is ACTIVE.</div><div>Wed Nov 19 17:14:52 2008 [LCM][I]: New VM state is PROLOG.</div><div>Wed Nov 19 17:14:52 2008 [TM][I]: tm_clone.sh: gieseking:/home/oneadmin/vm/domains/xen01.localhost/disk.img billabong:/home/oneadmin/OpenNebula/var/2/images/disk.0</div><div>Wed Nov 19 17:14:52 2008 [TM][I]: tm_clone.sh: DST: /home/oneadmin/OpenNebula/var/2/images/disk.0</div><div>Wed Nov 19 17:14:52 2008 [TM][I]: tm_clone.sh: Creating directory /home/oneadmin/OpenNebula/var/2/images</div><div>Wed Nov 19 17:14:52 2008 [TM][I]: tm_clone.sh: Executed "mkdir -p /home/oneadmin/OpenNebula/var/2/images".</div><div>Wed Nov 19 17:14:52 2008 [TM][I]: tm_clone.sh: Executed "chmod a+w /home/oneadmin/OpenNebula/var/2/images".</div><div>Wed Nov 19 17:14:52 2008 [TM][I]: tm_clone.sh: Cloning /home/oneadmin/vm/domains/xen01.localhost/disk.img</div><div>Wed Nov 19 17:16:35 2008 [TM][I]: tm_clone.sh: Executed "cp /home/oneadmin/vm/domains/xen01.localhost/disk.img /home/oneadmin/OpenNebula/var/2/images/disk.0".</div><div>Wed Nov 19 17:16:35 2008 [TM][I]: tm_clone.sh: Executed "chmod a+w /home/oneadmin/OpenNebula/var/2/images/disk.0".</div><div>Wed Nov 19 17:16:36 2008 [LCM][I]: New VM state is BOOT</div><div>Wed Nov 19 17:16:36 2008 [VMM][I]: Generating deployment file: /home/oneadmin/OpenNebula/var/2/deployment.0</div><div>Wed Nov 19 17:16:37 2008 [VMM][E]: Error deploying virtual machine: Unable to open config file: /home/oneadmin/OpenNebula/var/2/images/deployment.0</div><div>Wed Nov 19 17:16:37 2008 [LCM][I]: Fail to boot VM.</div><div>Wed Nov 19 17:16:37 2008 [DiM][I]: New VM state is FAILED</div><div>Wed Nov 19 17:29:04 2008 [DiM][I]: New VM state is DONE.</div><div><br></div><div>The content os the deployment directory is:</div><div>ls ../OpenNebula/var/2 </div><div><div><br></div><div>deployment.0 images transfer.0 vm.log</div><div><br></div><div>And the images subdirectory is:</div><div>ls ../OpenNebula/var/2/images/</div><div><br></div><div>disk.0</div><div><br></div><div>Our deployment file is:</div><div><br></div><div><div>cat xen.template </div><div>NAME = xen01</div><div>CPU = 0.5</div><div>MEMORY = 128</div><div>OS = [kernel="/home/oneadmin/vm/kernels/vmlinuz-2.6.24-21-xen",</div><div> initrd="/home/oneadmin/vm/kernels/initrd.img-2.6.24-21-xen",</div><div> root="hda1" ]</div><div>DISK = [source="/home/oneadmin/vm/domains/xen01.localhost/disk.img",</div><div> target="hda1",</div><div> readonly="no"]</div><div>NIC = [ mac="00:16:3e:01:01:01"] </div><div>GRAPHICS = [type="vnc",listen="127.0.0.1",port="5900"]</div><div><br></div><div><br></div><div>In addition, we have also found that you guys are implementing some features that are useful to us, such as virtual networking. We were wondering whether we could have access to use or design documentation as well as the timeline for the implementation?</div><div><br></div><div>Regards,</div><div><br></div><div>Marcos</div><div><br></div><div><br></div></div></div></div><div><div>On 19/11/2008, at 1:26 AM, Tino Vazquez wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi there,<br> <br> We've opened a ticket to keep track of the bug: <br> <br> <a href="http://trac.opennebula.org/ticket/52">http://trac.opennebula.org/ticket/52</a><br><br> Also, I would like to let you know it has been already fixed in the Trunk of OpenNebula SVN:<br> <br> <a href="http://trac.opennebula.org/changeset/245">http://trac.opennebula.org/changeset/245</a><br> <a href="http://trac.opennebula.org/changeset/246">http://trac.opennebula.org/changeset/246</a><br> <br> Now it should work as Rubén suggested in his last email. You are invited to give it a try and see if it works for you.<br> <br> Best regards,<br> <br> -Tino<br><br><div class="gmail_quote">On Mon, Nov 17, 2008 at 6:32 AM, Marcos Dias de Assuncao <span dir="ltr"><<a href="mailto:marcosd@csse.unimelb.edu.au">marcosd@csse.unimelb.edu.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <br> Hi guys,<br> <br> I am working with Alexandre Di Costanzo, who has sent some messages to the list before.<br> <br> We are using OpenNebula with OpenSuse 11, Ubuntu 8.04 and Xen 3.2. Some of our hosts run OpenSuse whereas others run Ubuntu. We have created Ubuntu paravirtualized images and OpenSuse images to run as guests. We do not have problems scheduling the Ubuntu virtual machines, but we have encountered some issues with OpenSuse. So, we thought that it would be interesting to post something about the problem to the list and check if other people have had the similar problems and get some help.<br> <br> When OpenNebula generates the deployment file (i.e. xen guest description file), it appends 'ro' to the description of the file system to be mounted as root. In this way, if I specify an image to be mapped to hda1, the deployment file will contain something like "root = '/dev/hda1 ro'". We believe this is to force fsck to check the file system at boot time. Ubuntu images are pretty ok with that, but our OpenSuse images do not seem very happy in mounting the file system as read-only during boot.<br> <br> We have performed some tests with some Xen guest description files for OpenSuse and it works only if we specify 'rw' as the boot parameter for 'root=' or nothing, which will assume 'rw' I guess. For example, one description file that works is the following:<br> <br> <br> <br> kernel = '/boot/vmlinuz-2.6.25.18-0.2-xen'<br> ramdisk = '/boot/initrd-2.6.25.18-0.2-xen'<br> #root = '/dev/hda1'<br> root = '/dev/hda1 rw'<br> name="susebox"<br> memory=256<br> vcpus=1<br> on_poweroff="destroy"<br> on_reboot="restart"<br> on_crash="destroy"<br> disk=[ 'tap:aio:/path/to/file/OpenSuse11.img,hda1,w']<br> vif=[ 'mac=00:16:3e:01:01:06' ]<br> extra = '3 console=xvc0'<br> <br> <br> <br> The configuration above works fine, but if we change (root = '/dev/hda1 rw') to (root = '/dev/hda1 ro'), we get OpenSuse complaining about file permissions and finally hangs at the initialisation of HAL daemon. Part of the output is shown below:<br> <br> <br> <br> rm: cannot remove `/success': Read-only file system<br> failed<br> Mounting local file systems...<br> mount: according to mtab, proc is already mounted on /proc<br> <br> mount: according to mtab, sysfs is already mounted on /sys<br> <br> mount: according to mtab, debugfs is already mounted on /sys/kernel/debug<br> <br> mount: according to mtab, udev is already mounted on /dev<br> <br> loop: module loaded<br> mount: according to mtab, devpts is already mounted on /dev/pts<br> <br> nothing was mounted failed<br> mv: cannot move `/var/log/boot.msg' to `/var/log/boot.omsg': Read-only file system<br> Creating /var/log/boot.msg<br> Can't open or create /var/run/klogd.pid. done<br> /etc/init.d/boot.klog: line 39: /var/log/boot.msg: Read-only file system<br> touch: cannot touch `/var/run/utmp': Read-only file system<br> chmod: changing permissions of `/var/run/utmp': Read-only file system<br> chown: changing ownership of `/var/run/utmp': Read-only file system<br> chown: changing ownership of `/tmp': Read-only file system<br> chown: changing ownership of `/tmp/.X11-unix': Read-only file system<br> chown: changing ownership of `/tmp/.ICE-unix': Read-only file system<br> chown: changing ownership of `/var/tmp': Read-only file system<br> chown: changing ownership of `/var/tmp/vi.recover': Read-only file system<br> chown: changing ownership of `/var/run/uscreens': Read-only file system<br> chown: changing ownership of `/var/run/screens': Read-only file system<br> Setting up hostname 'opensuse' done<br> Setting up loopback interface lo<br> lo IP address: <a href="http://127.0.0.1/8" target="_blank">127.0.0.1/8</a><br> IP address: <a href="http://127.0.0.2/8" target="_blank">127.0.0.2/8</a><br> done<br> Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled<br> Configuring serial ports...<br> Configured serial ports done<br> Activating remaining swap-devices in /etc/fstab... done<br> Setting current sysctl status from /etc/sysctl.conf<br> net.ipv4.icmp_echo_ignore_broadcasts = 1<br> net.ipv4.conf.all.rp_filter = 1<br> fs.inotify.max_user_watches = 65536<br> net.ipv4.conf.default.promote_secondaries = 1<br> net.ipv4.conf.all.promote_secondaries = 1<br> done<br> Enabling syn flood protection done<br> Disabling IP forwarding done<br> done<br> System Boot Control: The system has been set up<br> Skipped features: boot.cycle<br> System Boot Control: Running /etc/init.d/boot.local done<br> blogd: no message logging because /var file system is not accessible<br> INIT: Entering runlevel: 3<br> blogd: can not open /var/run/blogd.pid: Read-only file system<br> Boot logging started on /dev/xvc0(/dev/console) at Tue Nov 18 03:22:02 2008<br> Master Resource Control: previous runlevel: N, switching to runlevel: 3<br> Starting D-Bus daemonFailed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": Read-only file system<br> failed<br> Starting ConsoleKit done<br> Loading CPUFreq modules (CPUFreq not supported)<br> Starting HAL daemon<br> <br> <br> If we try to start the same OpenSuse image with an Ubuntu's kernel, it actually boots, but then we have other problems with some modules. I am just wondering if anybody has faced a similar problem?<br> <br> Also, just one last thing. About the NIC option in the VM template. I am just wondering, it might be interesting to add a description to the documentation saying which drivers use the SCRIPT option.<br> <br> Thanks for your support,<br> <br> Marcos<br> <br> <br> Marcos Dias de Assuncao<br> Grid Computing and Distributed Systems (GRIDS) Laboratory<br> Department of Computer Science and Software Engineering<br> The University of Melbourne, Australia<br> Email: <a href="mailto:marcosd@csse.unimelb.edu.au" target="_blank">marcosd@csse.unimelb.edu.au</a><br> <br> -------------<br> "The bankers own the earth. Take it away from them, but leave them the power to create money, and with the flick of the pen they will create enough money to buy it back again.<br> However, take away from them the power to create money, and all the great fortunes like mine will disappear and they ought to disappear, for this would be a happier and better world to live in. But, if you wish to remain the slaves of bankers and pay the cost of your own slavery, let them continue to create money."<br> <br> Sir Josiah Stamp<br> Former Director of The Bank of England<br> <br> _______________________________________________<br> Users mailing list<br> <a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br> </blockquote></div><br><br clear="all"><br>-- <br>Constantino Vázquez, Grid Technology Engineer/Researcher: <a href="http://www.dsa-research.org/doku.php?id=people:tinova">http://www.dsa-research.org/doku.php?id=people:tinova</a><br> DSA Research Group: <a href="http://dsa-research.org">http://dsa-research.org</a><br>Globus GridWay Metascheduler: <a href="http://www.GridWay.org">http://www.GridWay.org</a> <br>OpenNebula Virtual Infrastructure Engine: <a href="http://www.OpenNebula.org">http://www.OpenNebula.org</a><br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Users mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a></div> </blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><span class="Apple-style-span" style="font-size: 12px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="4" style="font: normal normal normal 13px/normal Arial; ">Marcos Dias de Assuncao</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="4" style="font: normal normal normal 13px/normal Arial; ">Grid Computing and Distributed Systems (GRIDS) Laboratory</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="4" style="font: normal normal normal 13px/normal Arial; ">Department of Computer Science and Software Engineering</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="4" style="font: normal normal normal 13px/normal Arial; ">The University of Melbourne, Australia</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="4" style="font: normal normal normal 13px/normal Arial; ">Email: <a href="mailto:marcosd@csse.unimelb.edu.au">marcosd@csse.unimelb.edu.au</a></font></div></span></div><div><br></div><div>-------------</div><div><div><div><div>"The bankers own the earth. Take it away from them, but leave them the power to create money, and with the flick of the pen they will create enough money to buy it back again.</div><div>However, take away from them the power to create money, and all the great fortunes like mine will disappear and they ought to disappear, for this would be a happier and better world to live in. But, if you wish to remain the slaves of bankers and pay the cost of your own slavery, let them continue to create money."</div><div><br></div><div>Sir Josiah Stamp</div><div>Former Director of The Bank of England</div></div></div></div></span></span></span></span></span></span></span></span> </div><br></div>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br><a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>-- <br>Javier Fontan, Grid & Virtualization Technology Engineer/Researcher<br>DSA Research Group: <a href="http://dsa-research.org">http://dsa-research.org</a><br>Globus GridWay Metascheduler: <a href="http://www.GridWay.org">http://www.GridWay.org</a> <br>OpenNebula Virtual Infrastructure Engine: <a href="http://www.OpenNebula.org">http://www.OpenNebula.org</a></div></div></div></span> </div><br></body></html>