Search

Chapter 4. Administration tasks

download PDF
This chapter covers additional administration tasks for guests using the para-virtualized Windows® drivers.

4.1. Hot plugging para-virtualized disks

The para-virtualized drivers allow disk hot plugging for Windows fully virtualized guests. To hot plug para-virtualized disks use the virsh command modifying <domain>, <disk image file> and <device node>:
# virsh attach-disk --driver tap --subdriver aio <domain> <disk image file> <device node>
Using virsh to attach a new, hot plugged disk, labeled /var/lib/xen/images/wxp32-2.img, with the alias /dev/xvdb to the guest named wxp32:
# virsh attach-disk --driver tap --subdriver aio wxp32 /var/lib/xen/images/wxp32-2.img /dev/xvdb
To detach a disk dynamically, use virsh with the detach-disk option:
virsh detach-disk <domain> <device node>
This example detaches a disk, /dev/xvdb, from a guest named wxp32:
# virsh detach-disk wxp32 /dev/xvdb
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.