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 start the first KVM virtual machine

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

Share

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

What this article shares to you is about how to start the first KVM virtual machine, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

How to start the KVM virtual machine using virt-manager.

First start the graphical interface with the command virt-manager

# virt-manager

Click the icon above to create a virtual machine

Name the virtual machine kvm1, and choose where to start the virtual machine. If you are installing a new OS, you can select the first option. If you already have an installed image file, select the last one (as shown above)

Next you need to tell virt-manager the location of the image.

Click "Browser"

I have a cirros-0.3.3-x86_64-disk.img image file in my system. Cirros is a very small linux image, which is very suitable for testing. You can download it from http://download.cirros-cloud.net/ and put it in the / var/lib/libvirt/images/ directory. This is where KVM looks for image files by default.

Allocate CPU and memory to virtual machines

Click "Forward", and then confirm the information, you can start the virtual machine.

Virt-manager will open the console window of the virtual machine kvm1, and you can see the startup situation.

Virt-manager can manage all kinds of virtual machines. The interface is intuitive and friendly, and it is easy to use. At the same time, we can also use the command virsh to manage virtual machines, such as checking virtual machines on host computers.

Root@ubuntu: ~ # virsh list

Id Name State

-

8 kvm1 running

At this point, the first virtual machine has been running, using the default settings.

The above is how to start the first KVM virtual machine, the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

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