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

The method of using KVM+Qemu to build Virtual Machine under Ubuntu

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly explains "how to build a virtual machine with KVM+Qemu under Ubuntu". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to build a virtual machine with KVM+Qemu under Ubuntu".

1. Check whether cpu is supported, and then output vmx. When running in the virtual machine, remember to put the IntelVT technology on the option box.

Grep vmx / proc/cpuinfo

2. Install kvm and qemu

Apt-get install kvm qemu libvirt-bin virtinst virt-manager virt-viewer

3. Check whether kvm is installed successfully

Virsh-c qemu:///system list

4. Create a virtual disk with the qemu-img command

Qemu-img create-f qcow2 ubuntu.img 10G

5. Install the system

Qemu-system-x86_64-hda / opt/kvm/ubuntu1204.img-cdrom / opt/kvm/ubuntu-12.04-server-amd64.iso-boot d-m 1024

6. When you start a virtual machine, you can download ubuntu and do it to img, so you don't have to reinstall it yourself. In other words, ubuntu has made a lot of efforts in cloud computing.

Qemu-system-x86_64 ubuntu.img-m 1024 so far, I believe you have a deeper understanding of "the method of building a virtual machine with KVM+Qemu under Ubuntu". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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