Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

There might be an easy answer to this. I have exhausted my search on google for a solution. Here's my problem.

I need to get Windows working on a KVM vps with virtualizor CP. As I get into windows installation in VNC, there's the mandatory driver installation requirement, as HDD is in virtio. There seems to be 2 solutions: 1. Mount the virtio iso (http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/) in the CD drive by unmounting Windows ISO and proceed with driver installation. 2. Create a secondary CD drive and mount the virtio iso there.

Well, 1st step never seems to work. If I unload the Windows iso and load the virtio iso, it never reflects back in the VNC.

Second step I have yet to be successfull. I try to create a second IDE CD ROM drive via virt-manager but the virtio (virtio-win-0.1-30.iso) iso is never listed in there, whereas i specially placed it in /var/lib/libvirt/images folder.

Any suggestions on where I screwed up?

share|improve this question

1 Answer 1

The normal way to do this installation is:

  1. Create the VM with a virtualized IDE disk, not a virtio disk.

    Before running the installation, choose to customize the hardware, and attach a second virtual hard drive which does use virtio.

    enter image description here

    This hard drive need only be a temporary drive; it could be a tiny 1GB blank something or other.

    enter image description here

  2. Install Windows. (I presume you need no help with this.)

  3. Attach the ISO image containing the virtio drivers.

    enter image description here

  4. You'll be notified by popup of hardware for which drivers failed to install. Click on it, or enter Device Manager yourself.

    enter image description here

  5. Right click on SCSI Controller, and choose Update Device Driver. Choose to Browse my computer for driver software.

    enter image description here

  6. Click Browse, then navigate to the \win7\amd64 folder on the virtual CD, and then click OK. Click Next.

    enter image description here

  7. The Red Hat VirtIO SCSI controller driver will be detected. Install it.

    enter image description here

  8. Shut down the VM.

  9. Detach the second virtual hard drive. Optionally, delete it. It was temporary, after all.

    enter image description here

  10. Select the first virtual IDE hard drive, expand Advanced options, change the Disk bus to Virtio, then click Apply.

    enter image description here

  11. Start the VM.

    enter image description here

If something goes wrong here, run Startup Repair using these instructions.

And at this point, you can run sysprep /generalize and use the result as a VM template.

share|improve this answer
    
Thanks for the tip!!! But how to get the second virtio hdd working? creating via virt-manager crashes the whole vm. Maybe because it isn't creating the disk in the LVM. –  Swifty Nov 28 '12 at 4:29
    
Strange, maybe you've found a bug in virt-manager. Just add an existing disk, or a blank file, or something. –  Michael Hampton Nov 28 '12 at 4:44
    
Tried with different methods. virt-manager, virsh edit... The vm always get's destroyed. I have no clue why. Even the logs gives no answers :( –  Swifty Nov 28 '12 at 8:31
    
@Swifty I just ran through this with a fresh install and took a bunch of screenshots. Hope it helps you. –  Michael Hampton Nov 28 '12 at 18:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.