XEN: Howto migrate loopback file based disk images to blktap tap:aio
This document (7000716) is provided subject to the disclaimer at the end of this document.
Environment
Situation
Resolution
- Backup current DomU configuration:
xm list <DomU_ID> -l > /tmp/vm1.conf - Edit disk device section of the configuration file:
vi /tmp/vm1.conf
# Configuration example
(device
(vbd
(unamefile:/xen/vm1/disk0)
(uuid d2cb4a14-ecbd-6034-3d4c-7866bfd4b60e)
(mode w)
(devxvda:disk)
(backend 0)
(bootable 1)
)
)
# Change to
(device
(tap
(uname tap:aio:/xen/vm1/disk0)
(uuid d2cb4a14-ecbd-6034-3d4c-7866bfd4b60e)
(mode w)
(dev xvda:disk)
(backend 0)
(bootable 1)
)
)
- Delete old DomU
xm delete <DomU_ID> - Load new configuration
xm new -F /tmp/vm1.conf - Start new DomU
xm start <DomU_ID>
Additional Information
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7000716
- Creation Date: 20-Jun-2008
- Modified Date:14-Mar-2021
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com