RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 696779 - Virt-V2V should set VM type to Desktops in OVF for Desktop VMs
Summary: Virt-V2V should set VM type to Desktops in OVF for Desktop VMs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-v2v
Version: 6.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Matthew Booth
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 773650 773651 773677 773696
TreeView+ depends on / blocked
 
Reported: 2011-04-14 19:55 UTC by Andrew Cathrow
Modified: 2018-11-27 21:40 UTC (History)
14 users (show)

Fixed In Version: virt-v2v-0.8.6-1.el6
Doc Type: Bug Fix
Doc Text:
Cause The customer is converting a guest to run on RHEV. The guest is a Desktop-type workload. Consequence The virt-v2v tool unconditionally marks all converted guests as a Server-type workload. This causes them to be displayed differently in RHEV-M. Fix virt-v2v has a new command line option, --vmtype, which will force the conversion process to mark the newly created RHEV VM as either Desktop or Server. If --vmtype is omitted, virt-v2v guesses the type based on the guest operating system as follows: Windows XP, Vista, 7: Desktop Windows 2003, 2008: Server RHEL ES, AS, Server, 2.1: Server RHEL WS, Desktop, Client: Desktop Fedora: Desktop Linux (except RHEL and Fedora): Server Result The user can choose either Desktop or Server during the conversion process. If they don't choose explicitly, the result will be either Desktop or Server as defined above.
Clone Of:
Environment:
Last Closed: 2012-06-20 12:41:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Legacy) 61257 0 None None None Never
Red Hat Product Errata RHBA-2012:0788 0 normal SHIPPED_LIVE virt-v2v bug fix and enhancement update 2012-06-19 20:34:39 UTC

Description Andrew Cathrow 2011-04-14 19:55:01 UTC
Within the OVF descriptor for RHEV there is a field for 'vmType' this should be set to 0 for Desktop and 1 for servers.

Currently virt-v2v marks all VMs as servers.

virt-v2v needs to inspect the guest and assign the appropriate value to vmType.

At the minimum virt-v2v should identify
Windows XP
Windows Vista
Windows 7
RHEL 5 Client / Workstation
RHEL 6 Client

Comment 2 Matthew Booth 2011-04-18 08:27:42 UTC
How does the UI for this work in RHEV-M? Is the server/desktop determination made strictly based on the OS selected, or can the user select?

Comment 3 Dan Yasny 2011-04-18 08:41:29 UTC
(In reply to comment #2)
> How does the UI for this work in RHEV-M? Is the server/desktop determination
> made strictly based on the OS selected, or can the user select?

there's a button to create a new desktop or server. the OS is selected afterwards.

Comment 4 Matthew Booth 2011-04-18 09:47:03 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > How does the UI for this work in RHEV-M? Is the server/desktop determination
> > made strictly based on the OS selected, or can the user select?
> 
> there's a button to create a new desktop or server. the OS is selected
> afterwards.

In that case I don't think we can base the selection strictly on detected OS. I think a command-line option would make sense here.

What would be a useful default if the user doesn't specify a type? Options I can think of are:

* Server
* Desktop
* Dependent on OS type
* Set per-site in the config file

Comment 6 Gianluca Cecchi 2011-06-15 16:08:35 UTC
I would extend the capability tag options in virt-v2v.conf, adding for example

vmtype=
the type of vm in term of capabilities
with possible values desktop, server, both

vmtypedef=
the default vmtype if not specified inside the virt-v2v command

A rh el 6 could contain
<capability os='linux' distro='rhel' major='6' name='virtio' vmtype='both' vmtypedef='server'/>

For w2k3:
<capability os='windows' major='5' minor='2' arch='i386' vmtype='server'>

For Wxp:
<capability os='windows' major='5' minor='1' arch='i386' vmtype='desktop'>

And then in virt-v2v a "-cap" option fro example

So if 
1) for an xp vm you run
virt-v2v -cap server ....
you will get an error and without the -cap you will get a desktop vm

2) for a w2k3 vm if you run
virt-v2v -cap desktop ...
you will get an error and without the -cap you will get a server vm

3) for a rh el 6 vm if you run
a) virt-v2v -cap desktop ...
you will get a desktop vm

b)  virt-v2v ... (without any -cap option)
you will get a server

AFAIK in VMware View, if it can serve as a reference for desktops, you can deploy only windws xp, windows vista and windows 7 systems. 
You cannot simply create w2k3 based desktop pools...
Probably you can create a w2k3 vm in vsphere, install on it the View client piece with its enhanced rdp protocol and broker related things and then manage it from within View, but to create a pool you probably have to create many w2k3 and group them manually in a pool... not OOTB anyway

just my 2eurocent...

BTW: In my opinion it is a sort of ambiguity that the key "name=virtio" appears for linux in "capability" tag, while for windows in "app" tag (with the "path" sub-tag).
Probably it could be changed to be consistent across archs...

Gianluca

Comment 12 tingting zheng 2012-02-07 09:19:41 UTC
Verified the bug with:
virt-v2v-0.8.6-1.el6.x86_64
libguestfs-1.16.2-1.el6.x86_64
libvirt-0.9.9-2.el6.x86_64
rhevm:ic154.1

Steps:
Run man virt-v2v,you can see parameter --vmtype has been added.
#man virt-v2v
  --vmtype type
           Specify the type of guest which will be created on a RHEV target. Options are desktop or server.

1.Use --vmtype to set vm type as desktop.
# virt-v2v  -ic qemu+ssh://10.66.72.122/system -o rhev -os 10.66.90.115:/vol/v2v_manual/nfs_export -n rhevm kvm-rhel6.1-x86_64 --vmtype desktop
kvm-rhel6.1-x86_64.img: 100% [====================================================================================]D 0h02m12s
virt-v2v: kvm-rhel6.1-x86_64 configured with virtio drivers.
2.After conversion,checked the VmType in ovf file:
<VmType>0</VmType>
3.Import the guest to rhevm,it displays as desktop.

Also use --vmtype to set vm type as server.
1.Use --vmtype to set vm type as server.
# virt-v2v  -ic qemu+ssh://10.66.72.122/system -o rhev -os 10.66.90.115:/vol/v2v_manual/nfs_export -n rhevm kvm-rhel6.1-x86_64-qcow2 --vmtype server
rhel6u1-64b-qcow2: 100% [=========================================================================================]D 0h01m24s
virt-v2v: kvm-rhel6.1-x86_64-qcow2 configured with virtio drivers.
2.After conversion,checked the VmType in ovf file:
<VmType>1</VmType>
3.Import the guest to rhevm,it displays as server.

Comment 13 Matthew Booth 2012-04-10 14:30:52 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause
The customer is converting a guest to run on RHEV. The guest is a Desktop-type workload.

Consequence
The virt-v2v tool unconditionally marks all converted guests as a Server-type workload. This causes them to be displayed differently in RHEV-M.

Fix
virt-v2v has a new command line option, --vmtype, which will force the conversion process to mark the newly created RHEV VM as either Desktop or Server. If --vmtype is omitted, virt-v2v guesses the type based on the guest operating system as follows:

Windows XP, Vista, 7: Desktop
Windows 2003, 2008: Server
RHEL ES, AS, Server, 2.1: Server
RHEL WS, Desktop, Client: Desktop
Fedora: Desktop
Linux (except RHEL and Fedora): Server

Result
The user can choose either Desktop or Server during the conversion process. If they don't choose explicitly, the result will be either Desktop or Server as defined above.

Comment 15 errata-xmlrpc 2012-06-20 12:41:28 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0788.html


Note You need to log in before you can comment on or make changes to this bug.