Bug 509340 - uuid got by command "wmic csproduct" in windows guest does not match the uuid number set in CLI.
Summary: uuid got by command "wmic csproduct" in windows guest does not match the uuid...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kvm
Version: 5.4
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Eduardo Habkost
QA Contact: Lawrence Lim
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-02 10:29 UTC by Miya Chen
Modified: 2014-03-26 00:58 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-07-03 01:24:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Miya Chen 2009-07-02 10:29:29 UTC
Description of problem:
uuid got by command "wmic csproduct" in windows guest does not match the uuid number set in CLI.

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1.start windows xp guest by:
/usr/libexec/qemu-kvm -drive file=winxp-32.qcow2,if=ide -net nic,macaddr=20:20:20:78:69:29 -net tap,script=/mnt/images/qemu-ifup -rtc-td-hack -no-hpet -usbdevice tablet -cpu qemu64,+sse2 -m 2048 -uuid 7af7c031-b321-402c-9c2f-3c359bf43948 -vnc :20
2.Type command "wmic csproduct" in cmd.

  
Actual results:
uuid got in the output of "wmic csproduct" is 31c0f77a-21b3-2c40-9c2f-3c359bf43948

Expected results:
uuid number got by command "wmic csproduct" should be same with the uuid number set in commandline "-uuid".

Additional info:
win28k and win23k have the same problem.

Comment 1 Yaniv Kaul 2009-07-02 11:14:24 UTC
Looks like a simply endianity issue. It's just the way UUIDs are parsed that is different.
If you compare the input:
7af7c031-b321-402c-9c2f-3c359bf43948
and the output in the VM:
31c0f77a-21b3-2c40-9c2f-3c359bf43948

You'll see clearly that it's just changing [0][1][2][3]-[4][5]... with [3][2][1][0]-[5][4]-...

I'd close this bug.

Comment 2 Miya Chen 2009-07-03 01:24:02 UTC
according comment1, close this bug.


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