Page 1 of 1

CONVERT Qemu .img to VirtualBox vdi

Posted: 25. Aug 2008, 08:33
by drvi
hi, i'm a noob to linux[ubuntu],
i wanted to use windows for some of my programs, so i tried Qemu, it lacked certain features
SO i tired VirtualBox full edition ,[since its only for my personal use] and i liked its functions.

the only problem now is that Windows xp is not allowing me to activate , saying that my account has been activated too many times! :x

so i was wondering, if i could convert my Qemu.img which has the windows Xp activated for use in Virtual Box, i googled but since i'm a noob was a little skeptical of using the suggestions![also couldnt find any posts here]

>i have omitted the "f-qcow" option while making the .img using qemu[so is this now a raw img or do i have to convert it to the raw img anyway?]
>also i have only used 6GB in qemu rather than 10GB recommended while creating in virtual box
>will the file still be a virtual size after all convertions to vdi or will it occupy a definite 6GB space?
>could anyone tell me which is the best guide to use?

does any1 have any suggestions

Posted: 25. Aug 2008, 13:32
by chungy
Try

Code: Select all

qemu-img convert WindowsXP.img -O raw WindowsXP.raw
then

Code: Select all

VBoxManage convertdd WindowsXP.raw $HOME/.VirtualBox/VDI/WindowsXP.vdi
Obviously replacing filenames where fit. Note, that you might still be required to re-activate Windows XP, as VirtualBox emulates different hardware than QEMU. You should be able to make a phone call to clear it all up anyway.

Posted: 25. Aug 2008, 13:40
by drvi
when i check the file format it says raw,is it going to make any difference?

Code: Select all

image: /home/drvi/windows.img
file format: raw
virtual size: 6.0G (6442450944 bytes)
disk size: 1.5G
so i just need to follow the same methid as u have given above?

SO i would have to make the call to the MS guys anyway?
if so i could just activate my virtual drive copy ,right?

Posted: 25. Aug 2008, 13:57
by chungy
Okay, it's already in raw format, you just need to run the VBoxManage command then, and then register the VDI with VirtualBox and use it in a VM (all this can be done through the GUI).

And yeah, you probably will need to re-activate Windows XP in the VM anyway, but there's a chance you might not need to...

Posted: 25. Aug 2008, 14:01
by Sasquatch
SO i would have to make the call to the MS guys anyway?
That is described when you activate Windows. Use the "Activate by phone" or something like that.

Posted: 25. Aug 2008, 14:18
by drvi
finally, called the microsoft call centre and got it activated :D

Posted: 25. Aug 2008, 15:03
by drvi
1 final question:
unrelated

but i keep getting logs in my home directory, how do i stop this?

Posted: 25. Aug 2008, 15:23
by TerryE
Read the 1.6.4 Announcement in the Using VB forum. It was a boo-boo in the release. The work around is discussed there.

Posted: 25. Aug 2008, 15:30
by drvi
ok i think the question must have been clearer, i read that post
well i'm using UBUNTU as HOST OS
and Windows XP as GUEST OS
i dont know where to change the environmental variables in ubuntu :?

Posted: 25. Aug 2008, 16:10
by TerryE
drvi, if you changed down the announcement it links to a discussion which tells you. I launch VirtualBox from a terminal window so I just have the assign and export in my .bashrc, but if you use the menu then you need to put it in the X startup script or in the launch command itself.

I thought that http://forums.virtualbox.org/viewtopic. ... 1650#31650 explained this pretty well. What is wrong with just doing a google on VBOX_LOG_DEST export site:virtualbox.org as I suggest in my signature if you want to find the topics that discuss this? Sigggggghhhhhhh.

Posted: 25. Aug 2008, 16:39
by drvi
ok , i didnt search site :oops: thinking that the post u mentioned above was a good explanation for everyone BUT ME...
didnt expect googling was better :oops:

but since i'm a noob in linux it seems to be getting over my head, though i have checked this posthttp://forums.virtualbox.org/viewtopic. ... 1180#31180
i probably better do what muts has suggested in the end!!!

by the way when can we expect v1.6.6 [ok,i tried googling site but couldnt find any info]

Posted: 25. Aug 2008, 16:49
by TerryE
"Any day now". I think that the guys want to make 100% certain that there are no boo-boo's this time.

Posted: 25. Aug 2008, 19:34
by drvi
thanx for all the help guys