[one-users] Migrating a QEMU VM to OpenNebula 3.8.1

André Monteiro andre.monteir at gmail.com
Sat Dec 1 02:11:52 PST 2012


Hi Stewart,

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.

--
André Monteiro




On Sat, Dec 1, 2012 at 12:45 AM, Stuart Longland <stuartl at vrt.com.au> wrote:

> Hi all,
>
> Sorry if this has been asked already, I did look but didn't see anything.
>
> The situation is thus; in a hurry I needed to get a couple of virtual
> machines going, we didn't have anything installed at the time beyond
> plain QEMU/KVM, so I just used that, creating the following shell script
> snippet:
>
> > exec kvm \
> >         -uuid 2247a584-e95d-47f1-8756-9088c25b87eb \
> >         -drive file=/path/to/hda.qcow2,if=virtio,media=disk \
> >         -rtc base=localtime \
> >         -vnc :0 \
> >         -daemonize \
> >         -usb \
> >         -usbdevice tablet \
> >         -m 512 \
> >         -net nic,macaddr=52:54:00:12:34:59 \
> >         -net tap \
> >         "$@"
>
> The above VM runs Windows Server 2008R2 64-bit.
>
> In fact, I've got a few VMs like this.  In the case of Linux VMs (using
> serial console), the main difference is the use of -nographic in place
> of -daemon and using `screen -dmS` to daemonise the KVM process instead.
>
> How does one go about importing such a VM into OpenNebula?  I tried by
> copying across the disk image and creating a 64-bit host.  Despite being
> careful to ensure things were identical, I always got a STOP error;
> error 0x0000005d.
>
> Is there a known working procedure for importing such VMs?
>
> Regards,
> --
> ##   -,-''''-. ###### Stuart Longland, Software Engineer
> ##.  :  ##   :   ##   38b Douglas Street   -+*WE HAVE*+-
>  ## #  ## -'`   .#'   Milton, QLD, 4034    --+*MOVED*+--
>  '#'  *'   '-.  *'    http://www.vrt.com.au
>      S Y S T E M S    T: 07 3535 9619    F: 07 3535 9699
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20121201/b79ca38a/attachment.htm>


More information about the Users mailing list