Hi Stewart,<div><br></div><div>For each VM register the image (with driver and path) and make it persistent. Then create a template with your settings (CPU, MAC, etc.) and instantiate the VMs. That should do the trick.<br clear="all">
<br>--<br>André Monteiro<br><br><br>
<br><br><div class="gmail_quote">On Sat, Dec 1, 2012 at 12:45 AM, Stuart Longland <span dir="ltr"><<a href="mailto:stuartl@vrt.com.au" target="_blank">stuartl@vrt.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
Sorry if this has been asked already, I did look but didn't see anything.<br>
<br>
The situation is thus; in a hurry I needed to get a couple of virtual<br>
machines going, we didn't have anything installed at the time beyond<br>
plain QEMU/KVM, so I just used that, creating the following shell script<br>
snippet:<br>
<br>
> exec kvm \<br>
> -uuid 2247a584-e95d-47f1-8756-9088c25b87eb \<br>
> -drive file=/path/to/hda.qcow2,if=virtio,media=disk \<br>
> -rtc base=localtime \<br>
> -vnc :0 \<br>
> -daemonize \<br>
> -usb \<br>
> -usbdevice tablet \<br>
> -m 512 \<br>
> -net nic,macaddr=52:54:00:12:34:59 \<br>
> -net tap \<br>
> "$@"<br>
<br>
The above VM runs Windows Server 2008R2 64-bit.<br>
<br>
In fact, I've got a few VMs like this. In the case of Linux VMs (using<br>
serial console), the main difference is the use of -nographic in place<br>
of -daemon and using `screen -dmS` to daemonise the KVM process instead.<br>
<br>
How does one go about importing such a VM into OpenNebula? I tried by<br>
copying across the disk image and creating a 64-bit host. Despite being<br>
careful to ensure things were identical, I always got a STOP error;<br>
error 0x0000005d.<br>
<br>
Is there a known working procedure for importing such VMs?<br>
<br>
Regards,<br>
<span class="HOEnZb"><font color="#888888">--<br>
## -,-''''-. ###### Stuart Longland, Software Engineer<br>
##. : ## : ## 38b Douglas Street -+*WE HAVE*+-<br>
## # ## -'` .#' Milton, QLD, 4034 --+*MOVED*+--<br>
'#' *' '-. *' <a href="http://www.vrt.com.au" target="_blank">http://www.vrt.com.au</a><br>
S Y S T E M S T: 07 3535 9619 F: 07 3535 9699<br>
_______________________________________________<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" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</font></span></blockquote></div><br></div>