-
Notifications
You must be signed in to change notification settings - Fork 0
/
virtualization
91 lines (61 loc) · 1.73 KB
/
virtualization
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
virtualization:::
checking proceess support::
egrep "(vmx/svm)" /proc/cpuinfo
what is virtualization:::
Bare metal installation:native installation
hypervisor::
os running on virtual machine guest
os running into hypervisor is callled host
virtualization type::
full virtualization
para virtualization
fulll virtalizaton::
hardware virtual machine
hypervisor create emulated devices(virual motherboard,ram etc)
quick emulateor(QEMU)+kernal based virutal machine(KVM)
PARA virtualizaton:::
guest os must be modified to be aware it's virtualization
guest can comm. directly with h/w
Xen hypervisor...
Hypervisors::
Xen,Proxmox,ESX
RUN ON bare machine
KVM
part of linux kernal
libvirt and virtual machine manager tools (tools)
create a virtual machine:::
QEMU from command line genrally for creating virtualizatoin.
install qemu qemu-kvm
ls /usr/bin/qemu* (process architecures)
man qemu-system(manual pages)
genrate disk image file
Distk image formt
Raw::::
a file that represent a disk
ALL SPACE TAKEN at creation :thick provisioned
QEMU copy on wirte (QCOW2)
copy on write::
qemu-img create -f(format) qcow2 my-image.qcow2 60G
qemu-system-x86 -cdrom pathofiso image destinantion locaiton -m 2G -enable-kvm
installation ubuntu(04)
qemu-system-x86_64 my_image.qcow2 -m 2G -enable-kvm
lshw(hardware info)
free -h
df -h
modify a QEMU VM
set memory,chamge h/w ,add disk
Libvirt(tools) ::provide standard interface to mng VM
sudo apt-get install virt-manager
virt-install
control virtual machine with virsh::::
virsh(tools)
SPICE(protocol)
VNC
snapshot and cloneing of virtual machine:
cloning to machine
snapashot of machine
explorer containers with LXC::
Linux container(LXC)
install lxc1
lxc provide container for different distro
ip -a