Question
How to install the Virtio disk driver on an existing Windows virtual machine within SolusVM 2?
Answer
1. Connect to the CR via SSH
2. Download an ISO with Virttio drivers to /var/lib/libvirt/images/ directory (https://github.com/virtio-win/virtio-win-pkg-scripts/blob/master/README.md)
3. Open the VM's config file:
# virsh edit UUID
the already existing block the one below:
CONFIG_TEXT: <disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<source file='/var/lib/libvirt/images/virtio-win.iso'/>
<target dev='hdc' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
</disk>
/var/lib/libvirt/images/virtio-win.iso - is a path where you downloaded the file. It can be different if you stored the iso in a different directory.
5. Restart the VM and continue the OS installation through VNC.
# virsh destroy UUID
# virsh start UUID
6. Create a dummy disk image in raw format:
# cd /var/lib/libvirt/images/
# qemu-img create -f raw dummy 100M
7. Attach the created image to VPS:
# virsh attach-disk kvmID /var/lib/libvirt/images/dummy hdb --cache none --targetbus virtio
8. Install virtio dirver inside the VPS
- Access the VPS via VNC
-
Open Command Prompt and execute the following command to open Device Manager:
C:\> devmgmt.msc
- Expand Other devices, right clicked on unidentified device and selected Update Driver Software to access the driver update wizard.
- Click Browse my computer for driver software
- Click Browse, select CD-ROM drive and click Next
- Repeat steps 8-10 for all the unidentified devices
- Reboot the server
Comments
Please sign in to leave a comment.