본문 바로가기
  • AI (Artificial Intelligence)
Legacy Skills/VM

Installing KVM Guests With virt-install On Ubuntu 11.04 Server - Page 3

by 로샤스 2014. 4. 21.

Instead of creating a virtual machine from the command line (as shown in chapter 4), you can as well create it from the Ubuntu desktop using virt-manager (of course, the virtual machine will be created on the Ubuntu 11.04 KVM host - in case you ask yourself if virt-manager is able to create virtual machines on remote systems).

To do this, click on the following button:

The New VM dialogue comes up. Fill in a name for the VM (e.g. vm11), select Local install media (ISO image or CDROM), and click on Forward:

Click to enlarge

Next select Linux in the OS type drop-down menu and Red Hat Enterprise Linux 5.4 or later in the Version drop-down menu, then check Use ISO image and click on the Browse... button:

Click to enlarge

Select the CentOS-5.6-x86_64-bin-DVD.iso image that you created in chapter 4 and click on Choose Volume:

Click to enlarge

Now click on Forward:

Click to enlarge

Assign memory and the number of CPUs to the virtual machine and click on Forward:

Click to enlarge

Now we come to the storage. Check Enable storage for this virtual machine, select Create a disk image on the computer's hard drive, specify the size of the hard drive (e.g. 12GB), and check Allocate entire disk now. Then click on Forward:

Click to enlarge

Now we come to the last step of the New VM dialogue. Go to the Advanced options section. Select Specify shared device name; the Bridge namefield will then appear where you fill in the name of your bridge (if you have used the Virtualization With KVM On Ubuntu 11.04 guide to set up the KVM host, this is br0). Click on Finish afterwards:

Click to enlarge

The disk image for the VM is now being created.

Afterwards, the VM will start. If you use a remote KVM host, type in the root password of the KVM host:

Click to enlarge

You should now be connected to the graphical console of the guest and see the CentOS installer:

Click to enlarge

Now install CentOS as you would normally do on a physical system.

 

7 Cloning Guests

Ubuntu 11.04 KVM Host:

The python-virtinst package comes with a second tool, virt-clone, that lets you clone guests. To clone vm10 and name the clone vm12 with the disk image /var/lib/libvirt/images/vm12.img, you simply run (make sure that vm10 is stopped!)

sudo virt-clone --connect qemu:///system -o vm10 -n vm12 -f /var/lib/libvirt/images/vm12.img

Afterwards, you can start vm12 with virt-manager or like this...

sudo virsh --connect qemu:///system

start vm12

quit

... and connect to it using virt-manager.

 

 

 

 

 

 

 

 

 

 

출처 : http://www.howtoforge.com/installing-kvm-guests-with-virt-install-on-ubuntu-11.04-server-p3

 

 

 

 

 

 

 

'Legacy Skills > VM' 카테고리의 다른 글

VSS 란?  (0) 2014.04.22
Installing a CentOS KVM Guest OS from the Command-line (virt-install)  (0) 2014.04.21
chapter 2. QEMU 구조 및 관련 하이퍼 바이져  (0) 2014.04.21
KVM on CentOS 설치  (1) 2014.04.18
CentOS6에 KVM 설치하기  (0) 2014.04.18

댓글