Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Red Hat Enterprise Linux 9 Essentials Book now available.

Purchase a copy of Red Hat Enterprise Linux 9 (RHEL 9) Essentials

Red Hat Enterprise Linux 9 Essentials Print and eBook (PDF) editions contain 34 chapters and 298 pages

Preview Book

Chapter 7. Virtualized block devices

This chapter covers installing and configuring block devices in Red Hat Virtualization guests. The term block devices refers to various forms of storage devices.

7.1. Creating a virtualized floppy disk controller

Floppy disk controllers are required for a number of older operating systems, especially for installing drivers. Presently, physical floppy disk devices cannot be accessed from virtualized guests. However, creating and accessing floppy disk images from virtualized floppy drives is supported. This section covers creating a virtualized floppy device.
An image file of a floppy disk is required. Create floppy disk image files with the dd command. Replace /dev/fd0 with the name of a floppy device and name the disk appropriately.
$ sudo dd if=/dev/fd0 of=~/legacydrivers.img

Para-virtualized drivers note

The para-virtualized drivers can map physical floppy devices to fully virtualized guests. For more information on using para-virtualized drivers read Chapter 12, Introduction to Para-virtualized Drivers .
This example uses a guest system created with virt-manager running a fully virtualized Red Hat Enterprise Linux installation with an image located in /var/lib/xen/images/rhel5FV.img.
  1. Create the XML configuration file for your guest image using the virsh command on a running guest.
    # virsh dumpxml rhel5FV > rhel5FV.xml
    
    This saves the configuration settings as an XML file which can be edited to customize the operations and devices used by the guest. For more information on using the virsh XML configuration files, refer to Chapter 26, Creating custom Red Hat Virtualization scripts .
  2. Create a floppy disk image for the guest.
    $ sudo dd if=/dev/zero of=/var/lib/xen/images/rhel5FV-floppy.img bs=512 count=2880
    
  3. Add the content below, changing where appropriate, to your guest's configuration XML file. This example creates a guest with a floppy device as a file based virtual device.
    <disk type='file' device='floppy'>
    	<source file='/var/lib/xen/images/rhel5FV-floppy.img'/>
    	<target dev='fda'/>
    </disk>
    
  4. Stop the guest.
    # virsh stop rhel5FV
    
  5. Restart the guest using the XML configuration file.
    # virsh create rhel5FV.xml
    
The floppy device is now available in the guest and stored as an image file on the host.

 
 
  Published under the terms of the GNU General Public License Design by Interspire