Creating a ubuntu14.04 KVM virtual machine

Source: Internet
Author: User
Pondering the day, finally convenient hand-generated KVM virtual machine, share:
1. Create the Qcow2 file:
~]# qemu-img create-f qcow2 testnode1.qcow2 30G
Formatting ' testnode1.qcow2 ', Fmt=qcow2 size=32212254720 encryption=off cluster_size=65536

2, start a KVM virtual machine with Virt-image
~]#virt-install--name=testnode1--ram 3072--vcpus=2--disk Path=/root/kvm/testnode1.qcow2,device=disk, format=qcow2,bus=virtio,cache=none,size=30--os-type=linux--graphics vnc,listen=0.0.0.0,port=5931,--network Bridge=br0--network bridge=br1--force--cdrom/iso/ubuntu-14.04.1-server-amd64.iso--autostart


3, note that the port of VNC is 31

~] #virsh Vncdisplay bynode1:31

4, open on the VNC viewer, you can install ubuntu14.04 KVM virtual machine interactively, hope this article is helpful;

Creating a ubuntu14.04 KVM virtual machine

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.