Re: [Users] Destktop VM to Server VM ?

2013-01-06 Thread Omer Frenkel


- Original Message -
 From: Michael Pasternak mpast...@redhat.com
 To: Itamar Heim ih...@redhat.com, Omer Frenkel ofren...@redhat.com
 Cc: Hideo Goto morpheus@gmail.com, users@ovirt.org
 Sent: Sunday, January 6, 2013 9:41:11 AM
 Subject: Re: [Users] Destktop VM to Server VM ?
 
 On 01/03/2013 09:59 PM, Itamar Heim wrote:
  On 01/03/2013 05:32 PM, Hideo Goto wrote:
  First of all, a Happy new year to every subscriber of the list.
 
  My first concern of the year about ovirt:
 
  Is it possible to change the type of an existing VM from desktop
  to
  server by any possible means?
  In my case, the VM was imported from KVM to Ovirt 3.0 environment
  using virt-v2v. I have just found out that the VM was recognized
  as
  desktop while expected as server .
 
  Thanks in advance for any advise.
  
  I'm pretty sure the REST API/SDK/CLI would allow this as updating
  this field of the VM.
  michael?
 
 it's used to work afair, but now i see this:
 
 [oVirt shell (connected)]# show vm iscsi_desktop | grep type
 type  : desktop
 [oVirt shell (connected)]#
 [oVirt shell (connected)]# update vm iscsi_desktop --type server
 
 error:
 status: 400
 reason: Bad Request
 detail: Failed updating the properties of the VM. This may be caused
 either by:
 1. The values selected are not appropriate for the VM; or
 2. Its values cannot be updated while the VM is in UP state (Please
 shut down the VM in order to modify properties such as CPU or
 cluster).
 
 Omer?

yes looks like this field is not editable after creation,
not sure why,
maybe because server vms usually use cloned images,
and desktops usually use thin provisioned ones,
and after creation there is no way to change that..

 
 --
 
 Michael Pasternak
 RedHat, ENG-Virtualization RD
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Destktop VM to Server VM ?

2013-01-06 Thread Itamar Heim

On 01/06/2013 10:37 AM, Omer Frenkel wrote:



- Original Message -

From: Michael Pasternak mpast...@redhat.com
To: Itamar Heim ih...@redhat.com, Omer Frenkel ofren...@redhat.com
Cc: Hideo Goto morpheus@gmail.com, users@ovirt.org
Sent: Sunday, January 6, 2013 9:41:11 AM
Subject: Re: [Users] Destktop VM to Server VM ?

On 01/03/2013 09:59 PM, Itamar Heim wrote:

On 01/03/2013 05:32 PM, Hideo Goto wrote:

First of all, a Happy new year to every subscriber of the list.

My first concern of the year about ovirt:

Is it possible to change the type of an existing VM from desktop
to
server by any possible means?
In my case, the VM was imported from KVM to Ovirt 3.0 environment
using virt-v2v. I have just found out that the VM was recognized
as
desktop while expected as server .

Thanks in advance for any advise.


I'm pretty sure the REST API/SDK/CLI would allow this as updating
this field of the VM.
michael?


it's used to work afair, but now i see this:

[oVirt shell (connected)]# show vm iscsi_desktop | grep type
type  : desktop
[oVirt shell (connected)]#
[oVirt shell (connected)]# update vm iscsi_desktop --type server

error:
status: 400
reason: Bad Request
detail: Failed updating the properties of the VM. This may be caused
either by:
1. The values selected are not appropriate for the VM; or
2. Its values cannot be updated while the VM is in UP state (Please
shut down the VM in order to modify properties such as CPU or
cluster).

Omer?


yes looks like this field is not editable after creation,
not sure why,
maybe because server vms usually use cloned images,
and desktops usually use thin provisioned ones,
and after creation there is no way to change that..


thin/clone for server/desktop is just a default. it is in no way derived 
from VM type.

(audio device today is).

iirc, there were some discussion on making server/desktop just a set of 
defaults, rather than a type affecting anything post VM creation.

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Destktop VM to Server VM ?

2013-01-05 Thread Hideo Goto
Thanks a lot Itamar.
Everything became clear.
Unfortunately,  We are still using ovirt 3.0, for which I think ovirt-shell
is not available.
So, I will make a small java program.

Best RGDS



2013/1/5 Itamar Heim ih...@redhat.com

 On 01/04/2013 07:04 PM, Hideo Goto wrote:

 Thaks a lot for your suggestion.

 in fact I found the typeparameter which specifies server/desktop,
 checking the output of VMs' parameters by REST (/api/vms).
 Is it this very type paramter to change?


 yes.



 Best RGDS
 Hideo GOTO

 P.S.
 I would be happy if you could recomend me any  tool, if existing,
 which might make it easy to update parameters by REST.


 ovirt-shell is a cli tool which should let you update such a parameter
 with a one liner command.
 you can also use the python or java sdk's for any heavier scripting.



 2013/1/4 Itamar Heim ih...@redhat.com:

 On 01/03/2013 05:32 PM, Hideo Goto wrote:


 First of all, a Happy new year to every subscriber of the list.

 My first concern of the year about ovirt:

 Is it possible to change the type of an existing VM from desktop to
 server by any possible means?
 In my case, the VM was imported from KVM to Ovirt 3.0 environment
 using virt-v2v. I have just found out that the VM was recognized as
 desktop while expected as server .

 Thanks in advance for any advise.



 I'm pretty sure the REST API/SDK/CLI would allow this as updating this
 field
 of the VM.
 michael?




___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Destktop VM to Server VM ?

2013-01-05 Thread Hideo Goto
Thanks DI (FH) Ren? Koch.

It was also what I was looking for.
Next time, I will not fail to check *.ovf file before importing.

Best RGDS.

Hideo GOTO


Date: Fri, 04 Jan 2013 18:14:39 +0100
From: Ren? Koch (ovido) r.k...@ovido.at
To: users@ovirt.org
Subject: Re: [Users] Destktop VM to Server VM ?
Message-ID: 1357319679.2155.113.ca...@pc-ovido02.ovido.at
Content-Type: text/plain; charset=UTF-8

Hi,

You can edit the .ovf file of your vm on the export domain.

Change VmType to:
0 ... Desktop
1 ... Server

Then you can import your server/desktop vm using the engine GUI...


--
Regards,

DI (FH) Ren? Koch
Senior Solution Architect

==
==
ovido gmbh - Das Linux Systemhaus
Br?nner Stra?e 163, A-1210 Wien

Phone:   +43 720 / 530 670
Mobile:  +43 660 / 512 21 31
E-Mail:  r.k...@ovido.at

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Destktop VM to Server VM ?

2013-01-05 Thread Itamar Heim

On 01/05/2013 05:44 PM, Hideo Goto wrote:

Thanks a lot Itamar.
Everything became clear.
Unfortunately,  We are still using ovirt 3.0, for which I think
ovirt-shell is not available.
So, I will make a small java program.


with some luck, the 3.1 CLI may work for you.
worth trying
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Destktop VM to Server VM ?

2013-01-05 Thread Michael Pasternak
On 01/03/2013 09:59 PM, Itamar Heim wrote:
 On 01/03/2013 05:32 PM, Hideo Goto wrote:
 First of all, a Happy new year to every subscriber of the list.

 My first concern of the year about ovirt:

 Is it possible to change the type of an existing VM from desktop to
 server by any possible means?
 In my case, the VM was imported from KVM to Ovirt 3.0 environment
 using virt-v2v. I have just found out that the VM was recognized as
 desktop while expected as server .

 Thanks in advance for any advise.
 
 I'm pretty sure the REST API/SDK/CLI would allow this as updating this field 
 of the VM.
 michael?

it's used to work afair, but now i see this:

[oVirt shell (connected)]# show vm iscsi_desktop | grep type
type  : desktop
[oVirt shell (connected)]#
[oVirt shell (connected)]# update vm iscsi_desktop --type server

error:
status: 400
reason: Bad Request
detail: Failed updating the properties of the VM. This may be caused either by:
1. The values selected are not appropriate for the VM; or
2. Its values cannot be updated while the VM is in UP state (Please shut down 
the VM in order to modify properties such as CPU or cluster).

Omer?

-- 

Michael Pasternak
RedHat, ENG-Virtualization RD
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Destktop VM to Server VM ?

2013-01-04 Thread Hideo Goto
Thaks a lot for your suggestion.

in fact I found the typeparameter which specifies server/desktop,
checking the output of VMs' parameters by REST (/api/vms).
Is it this very type paramter to change?

Best RGDS
Hideo GOTO

P.S.
I would be happy if you could recomend me any  tool, if existing,
which might make it easy to update parameters by REST.

2013/1/4 Itamar Heim ih...@redhat.com:
 On 01/03/2013 05:32 PM, Hideo Goto wrote:

 First of all, a Happy new year to every subscriber of the list.

 My first concern of the year about ovirt:

 Is it possible to change the type of an existing VM from desktop to
 server by any possible means?
 In my case, the VM was imported from KVM to Ovirt 3.0 environment
 using virt-v2v. I have just found out that the VM was recognized as
 desktop while expected as server .

 Thanks in advance for any advise.


 I'm pretty sure the REST API/SDK/CLI would allow this as updating this field
 of the VM.
 michael?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Destktop VM to Server VM ?

2013-01-04 Thread Itamar Heim

On 01/04/2013 07:04 PM, Hideo Goto wrote:

Thaks a lot for your suggestion.

in fact I found the typeparameter which specifies server/desktop,
checking the output of VMs' parameters by REST (/api/vms).
Is it this very type paramter to change?


yes.



Best RGDS
Hideo GOTO

P.S.
I would be happy if you could recomend me any  tool, if existing,
which might make it easy to update parameters by REST.


ovirt-shell is a cli tool which should let you update such a parameter 
with a one liner command.

you can also use the python or java sdk's for any heavier scripting.



2013/1/4 Itamar Heim ih...@redhat.com:

On 01/03/2013 05:32 PM, Hideo Goto wrote:


First of all, a Happy new year to every subscriber of the list.

My first concern of the year about ovirt:

Is it possible to change the type of an existing VM from desktop to
server by any possible means?
In my case, the VM was imported from KVM to Ovirt 3.0 environment
using virt-v2v. I have just found out that the VM was recognized as
desktop while expected as server .

Thanks in advance for any advise.



I'm pretty sure the REST API/SDK/CLI would allow this as updating this field
of the VM.
michael?



___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Destktop VM to Server VM ?

2013-01-04 Thread Koch (ovido)
Hi,

You can edit the .ovf file of your vm on the export domain.

Change VmType to:
0 ... Desktop
1 ... Server

Then you can import your server/desktop vm using the engine GUI...


-- 
Regards,

DI (FH) René Koch
Senior Solution Architect


ovido gmbh - Das Linux Systemhaus
Brünner Straße 163, A-1210 Wien

Phone:   +43 720 / 530 670
Mobile:  +43 660 / 512 21 31
E-Mail:  r.k...@ovido.at



On Sat, 2013-01-05 at 02:04 +0900, Hideo Goto wrote:
 Thaks a lot for your suggestion.
 
 in fact I found the typeparameter which specifies server/desktop,
 checking the output of VMs' parameters by REST (/api/vms).
 Is it this very type paramter to change?
 
 Best RGDS
 Hideo GOTO
 
 P.S.
 I would be happy if you could recomend me any  tool, if existing,
 which might make it easy to update parameters by REST.
 
 2013/1/4 Itamar Heim ih...@redhat.com:
  On 01/03/2013 05:32 PM, Hideo Goto wrote:
 
  First of all, a Happy new year to every subscriber of the list.
 
  My first concern of the year about ovirt:
 
  Is it possible to change the type of an existing VM from desktop to
  server by any possible means?
  In my case, the VM was imported from KVM to Ovirt 3.0 environment
  using virt-v2v. I have just found out that the VM was recognized as
  desktop while expected as server .
 
  Thanks in advance for any advise.
 
 
  I'm pretty sure the REST API/SDK/CLI would allow this as updating this field
  of the VM.
  michael?
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] Destktop VM to Server VM ?

2013-01-03 Thread Hideo Goto
First of all, a Happy new year to every subscriber of the list.

My first concern of the year about ovirt:

Is it possible to change the type of an existing VM from desktop to
server by any possible means?
In my case, the VM was imported from KVM to Ovirt 3.0 environment
using virt-v2v. I have just found out that the VM was recognized as
desktop while expected as server .

Thanks in advance for any advise.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Destktop VM to Server VM ?

2013-01-03 Thread Itamar Heim

On 01/03/2013 05:32 PM, Hideo Goto wrote:

First of all, a Happy new year to every subscriber of the list.

My first concern of the year about ovirt:

Is it possible to change the type of an existing VM from desktop to
server by any possible means?
In my case, the VM was imported from KVM to Ovirt 3.0 environment
using virt-v2v. I have just found out that the VM was recognized as
desktop while expected as server .

Thanks in advance for any advise.


I'm pretty sure the REST API/SDK/CLI would allow this as updating this 
field of the VM.

michael?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users