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

Migration of VMware virtual machines to openstack platform

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

Share

Shulou(Shulou.com)06/02 Report--

1. Check whether the kernel supports virtio drivers

Grep-I virtio / boot/config-$ (uname-r)

two。 If the kernel does not have a virtio driver, you need to specify a virtio driver.

Cp / boot/initramfs-$ (uname-r). Img / boot/initramfs-$ (uname-r). Img.bak

Mkinitrd-f-- with=virtio_blk-- with=virtio_pci / boot/initramfs-$ (uname-r). Img $(uname-r)

3. Shut down the virtual machine and convert the virtual machine disk file format to raw

Qemu-img convert-f vmdk-O raw vm.vmdk vm.raw

4. Upload virtual machine disk files to glance

Glance image-create-name "vm"-file vm.raw-disk-format raw-container-format bare-progress

5. If the virtual machine fails to start, the disk drive of glance image can be temporarily modified to IDE

Glance image-update-- property hw_disk_bus='ide' $image_id

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