First, the syntax of the virt-install command changed in RHEL 6, and I was still using the RHEL 5 command. Rather than complaining, RHEL 6 would guess what it thought I meant. Here's the wrong command:
virt-install -n server -r 512 -w bridge=virbr0 \The -f/-s options says to create an image file the is 10GB.
-f /var/lib/libvirt/images/server.img -s 10
Here's what was implemented:
virt-install -n server -r 512 -w bridge=virbr0 \Rather than complaining that the -f/-s options were deprecated, it invoked the new syntax and assumed I wanted an IDE drive, which on RHEL 6, is named as if it were an SCSI device. We can force the paravirt driver by using the correct command:
-disk path=/var/lib/libvirt/images/server.img,\
bus=ide,size=10
virt-install -n server -r 512 -w bridge=virbr0 \Second, the GUI does not allow a VM's disk type to be selected from the install wizard-- it always defaults to the paravirt driver. To force a specific driver, on the last screen of the wizard, check the box for "Customize configuration before install".
-disk path=/var/lib/libvirt/images/server.img,\
bus=virtio,size=10
This will open a new window listing the VM's hardware. Select "Add Hardware", select "storage", and configure a second disk the same size as the first. At this point, there is a pull down menu that will specify the driver. Once the second disk is in place, remove the first. Removing the first disk before the adding the replacement disk can cause problems.
Hint: Once you've modified the hardware, there is not "Apply" option. Just close the window and the VM will launch.
No comments:
Post a Comment