Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure Ceph rbd to provide block devices for virtual machines

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

Editor to share with you how to configure Ceph rbd to provide block devices for virtual machines. I hope you will get something after reading this article. Let's discuss it together.

# install qemu (high version)

# tar-jxvf qemu2.1.3.tar.bz# cd qemu2.1.3 #. / configure-- enable-rbd # this is important, otherwise qemu will not recognize rbd# make# make install

# install libvirt

# yum install libvirt creates a rbd image

Command: qemu-img create-f raw rbd: {pool-name} / {image-name} {size}

# qemu-img create-f raw rbd:data/foo 1G

# # using libvirt to create a virtual machine

Create a virtual machine profile # vim linux.xml

The editing content is as follows

Myos # virtual machine domain5120005120001hvm/usr/local/bin/qemu-system-x86_64# configuration ceph rbd # mon ip and port# block device name provided for virtual machine # end create virtual machine # virsh define linux.xml / / create virtual machine # virsh start myos / / start virtual machine # virsh vncdisplay 5901 / / View virtual machine through vnc, complete installation of # fdisk-l / / View block device finished reading this article I believe you have a certain understanding of "how to configure Ceph rbd to provide block devices for virtual machines". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report