CONVERT Qemu .img to VirtualBox vdi

Discussions about using Windows guests in VirtualBox.
Post Reply
drvi
Posts: 26
Joined: 25. Aug 2008, 08:19

CONVERT Qemu .img to VirtualBox vdi

Post 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
chungy
Volunteer
Posts: 132
Joined: 26. Jan 2008, 10:27

Post 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.
drvi
Posts: 26
Joined: 25. Aug 2008, 08:19

Post 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?
chungy
Volunteer
Posts: 132
Joined: 26. Jan 2008, 10:27

Post 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...
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
drvi
Posts: 26
Joined: 25. Aug 2008, 08:19

Post by drvi »

finally, called the microsoft call centre and got it activated :D
drvi
Posts: 26
Joined: 25. Aug 2008, 08:19

Post by drvi »

1 final question:
unrelated

but i keep getting logs in my home directory, how do i stop this?
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post 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.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
drvi
Posts: 26
Joined: 25. Aug 2008, 08:19

Post 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 :?
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post 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.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
drvi
Posts: 26
Joined: 25. Aug 2008, 08:19

Post 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]
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post by TerryE »

"Any day now". I think that the guys want to make 100% certain that there are no boo-boo's this time.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
drvi
Posts: 26
Joined: 25. Aug 2008, 08:19

Post by drvi »

thanx for all the help guys
Post Reply