retspen / webvirtmgr

WebVirtMgr panel for manage virtual machine
http://retspen.github.io
2.05k stars 537 forks source link

Additional CD-ROM #485

Open aafanasyev opened 9 years ago

aafanasyev commented 9 years ago

Hi everyone,

During windows installation on KVM-QEMU via webvirtmgr I faced virtio driver problem. Virtio drivers are not provided by default installation of windows. To install virtio drivers during windows installation an extra CD-ROM to load a virtio driver image is required. Sources: http://serverfault.com/questions/373372/how-to-connect-a-cdrom-device-to-a-kvm-qemu-domain-using-command-line-tools https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Para-virtualized_Windows_Drivers_Guide/appe-Para-virtualized_Windows_Drivers_Guide-Using_virsh_to_mount_a_CD_ROM_image_on_an_inactive_domain.html http://www.cberendt.net/2013/11/nexentastor-with-libvirt-and-kvm/ https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization_Host_Configuration_and_Guest_Installation_Guide/sect-Virtualization_Host_Configuration_and_Guest_Installation_Guide-Windows_Installations-Installing_Windows_XP_as_a_fully_virtualized_guest.html https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization_Host_Configuration_and_Guest_Installation_Guide/form-Virtualization_Host_Configuration_and_Guest_Installation_Guide-Para_virtualized_drivers-Installing_with_a_virtualized_floppy_disk.html http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/

To solve this problem I edit default xml settings file of the instance. The default xml code for CD-ROM looks like this:

 <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/var/www/webvirtmgr/images/iso/en_windows_8_1_x64_dvd_2707217.iso'/>
      <target dev='hda' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='1' target='0' unit='1'/>
    </disk>

However, I duplicated, made some changes and used following code:

 <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/var/www/webvirtmgr/images/iso/en_windows_8_1_x64_dvd_2707217.iso'/>
      <target dev='hda' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='1' target='0' unit='0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/var/www/webvirtmgr/images/iso/virtio-win-0.1-94.iso'/>
      <target dev='hdb' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='1' target='0' unit='1'/>
    </disk>

This provide second CD-ROM.

It would be nice if such feature will be implemented by default or can be done by a single click of button in instance>settings>media>[Add CD-ROM]. May someone please implement such future?

Thank you.

SaprykinOleg commented 9 years ago

Спасибо за пример конфига

ganthore commented 8 years ago

+1

Brandonv101 commented 6 years ago

I had to modify it a bit for it to work for me. Here's what I changed `

<disk type='file' device='cdrom'>
  <driver name='qemu' type='raw'/>
  <source file='/volumeUSB1/usbshare/VirtualBoxVMs/ISOs/virtio-win-0.1.141.iso'/>
  <target dev='hdb' bus='ide'/>
  <readonly/>
  <alias name='ide0-1-1'/>
  <address type='drive' controller='0' bus='1' target='0' unit='1'/>
</disk>`