1

I am working on virtualizing a windows 7 image using kvm on Ubuntu 12.10 64 bit. Here are the specs for my machine:

CPU: Intel i7-2860WM ,8G RAM

I am using an image created with WinImage of a Windows 7 Ultimate 64bit machine.

I am able to create a virtual machine and run it successfully using the "virt-manager" tool. In order for the image to run correctly I must specify the disk bus type as SATA, otherwise when the virtual machine tries to boot I receive a BSOD with an error code of 0x0000007B which pertains to errors initializing the hard disk.

I would like to be able to create/start this virtual machine from the cmd line using kvm instead of using the virt-manager utility. However when I try the following:

sudo kvm -hda Win7.vhd

The machine boots and immediately goes to a BSOD with an error code of 0x0000007B. I need a way from the command line to specify the virtual machine to use a SATA bus. Or so I need to create a virtual SATA bus and have it boot from the Win7.vhd image? Basically I need to be able to specify SATA as the bus option from the command line, but I have not had any luck with this. Any and all thoughts are appreciated!

Bubo
  • 233

2 Answers2

0

got the same problem as you (very similar), inspired by this source would be:

sudo kvm -M q35 -m 2G -hda Win7.vhd

and going a little bit offtopic, in my case, it was a real HD that I inserted it in my linux through a SATA-usb converter and that got detected as /dev/sdc, so this worked for me:

sudo kvm -M q35 -m 2G -hda /dev/sdc
0

Really old question though,

Install VirtIO SCSI Driver mentiond in Using virtio-win drivers with Win7 SP1 x64 (I use 173-4), then use SCSI when adding new disk in virt-manager.

The -hda option still not working though, behavior changed in qemu version evolvement, making it incompatible with older OS, or maybe IDE controller implementation changed.

Tested on qemu 8.2.2

Aoba K
  • 1