[libvirt-users] redistribute virtual machines from vps hosting to end users

Hi. I need to get ability to download backups of kvm virtual machines (raw images) to end users. Virtualbox users can import ovs images, that i can create, but in case of linux and virt-manager - how users can import images and simply run it? I think about newbie linux users, that can install virt-manager under ubuntu via graphical package manager and do some easy steps... Can you share me info how can i do needed things ?=)Or may be some admins/users already solve this kind of "problems"... -- Vasiliy Tolstov, e-mail: v.tolstov@selfip.ru jabber: vase@selfip.ru

On Wed, Jan 28, 2015 at 02:32:12AM +0400, Vasiliy Tolstov wrote:
Hi. I need to get ability to download backups of kvm virtual machines (raw images) to end users. Virtualbox users can import ovs images, that i can create, but in case of linux and virt-manager - how users can import images and simply run it? I think about newbie linux users, that can install virt-manager under ubuntu via graphical package manager and do some easy steps...
Can you share me info how can i do needed things ?=)Or may be some admins/users already solve this kind of "problems"...
I don't have immediate steps with `virt-manager` as I don't use it much in my workflow. But if you have users who're comfortable with CLI, you can import disk images into libvirt (and which will also be accessible via `virt-manager`) tribvially: $ virt-install --name f21vm --ram 2048 \ --diskpath=/export/f21vm.qcow2,format=qcow2,cache=writeback \ --nographics --os-variant fedora21 --import (The above has the option '--nographics' because, it's just a small, server image, but still - when the image is imported into libvirt, it should be accessible via virt-manager, albiet a headless server.) -- /kashyap

2015-01-28 12:47 GMT+03:00 Kashyap Chamarthy <kchamart@redhat.com>:
I don't have immediate steps with `virt-manager` as I don't use it much in my workflow. But if you have users who're comfortable with CLI, you can import disk images into libvirt (and which will also be accessible via `virt-manager`) tribvially:
$ virt-install --name f21vm --ram 2048 \ --diskpath=/export/f21vm.qcow2,format=qcow2,cache=writeback \ --nographics --os-variant fedora21 --import
(The above has the option '--nographics' because, it's just a small, server image, but still - when the image is imported into libvirt, it should be accessible via virt-manager, albiet a headless server.)
I can provide single line command for end users... In case of virt-install can i provide xml for domain while import ? For example i can generate xml with minimal memory/devices needs to be present.. -- Vasiliy Tolstov, e-mail: v.tolstov@selfip.ru jabber: vase@selfip.ru

On Wed, Jan 28, 2015 at 01:57:28PM +0400, Vasiliy Tolstov wrote:
2015-01-28 12:47 GMT+03:00 Kashyap Chamarthy <kchamart@redhat.com>:
I don't have immediate steps with `virt-manager` as I don't use it much in my workflow. But if you have users who're comfortable with CLI, you can import disk images into libvirt (and which will also be accessible via `virt-manager`) tribvially:
$ virt-install --name f21vm --ram 2048 \ --diskpath=/export/f21vm.qcow2,format=qcow2,cache=writeback \ --nographics --os-variant fedora21 --import
(The above has the option '--nographics' because, it's just a small, server image, but still - when the image is imported into libvirt, it should be accessible via virt-manager, albiet a headless server.)
I can provide single line command for end users... In case of virt-install can i provide xml for domain while import ?
I don't think `virt-install` itself can import an XML (although, it can print a XML via the '--print-xml' option, look up the man page for this). If the users have the disk images in the right place, you can provide the guest XML, and the users can define it using: $ sudo virsh define uservm.xml
For example i can generate xml with minimal memory/devices needs to be present..
-- /kashyap

2015-01-28 14:09 GMT+03:00 Kashyap Chamarthy <kchamart@redhat.com>:
I don't think `virt-install` itself can import an XML (although, it can print a XML via the '--print-xml' option, look up the man page for this). If the users have the disk images in the right place, you can provide the guest XML, and the users can define it using:
$ sudo virsh define uservm.xml
Nice. Thanks =). -- Vasiliy Tolstov, e-mail: v.tolstov@selfip.ru jabber: vase@selfip.ru

On 01/27/2015 03:32 PM, Vasiliy Tolstov wrote:
Hi. I need to get ability to download backups of kvm virtual machines (raw images) to end users. Virtualbox users can import ovs images, that i can create, but in case of linux and virt-manager - how users can import images and simply run it?
Look at virt-builder, part of libguestfs: http://libguestfs.org/virt-builder.1.html -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

2015-01-28 19:48 GMT+03:00 Eric Blake <eblake@redhat.com>:
Look at virt-builder, part of libguestfs:
Thanks -- Vasiliy Tolstov, e-mail: v.tolstov@selfip.ru jabber: vase@selfip.ru
participants (3)
-
Eric Blake
-
Kashyap Chamarthy
-
Vasiliy Tolstov