欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
kvm虛擬化學(xué)習筆記(十)之kvm虛擬機快照備份

kvm虛擬機默認使用raw格式的鏡像格式,性能最好,速度最快,它的缺點(diǎn)就是不支持一些新的功能,如支持鏡像,zlib磁盤(pán)壓縮,AES加密等。
要使用鏡像功能,磁盤(pán)格式必須為qcow2。下面開(kāi)始kvm虛擬機快照備份的過(guò)程。

本文出自:http://koumm.blog.51cto.com

進(jìn)一步的學(xué)習參考:kvm+libvirt虛擬機快照淺析 http://itxx.sinaapp.com/blog/content/130

1. 查看現有磁盤(pán)鏡像格式與轉換

(1) 查看磁盤(pán)格式

# qemu-img info test01.img

raw格式需要轉換成qcow2

(2) 關(guān)閉虛擬機并轉換磁盤(pán)

# virsh shutdown oeltest01

 

(3) 轉換磁盤(pán)格式

# qemu-img convert -f raw -O qcow2 test01.img test01.qcow2

-f 源鏡像的格式
-O 目標鏡像的格式

查看轉換后的格式,已經(jīng)轉換成了qcow2, 這里是拷貝一份,并將格式轉成qcow2

# qemu-img info test01.qcow2

2. 修改虛擬機配置文件

修改磁盤(pán)格式,與新qcow2格式的磁盤(pán)。

3. 對虛擬機進(jìn)行快照管理

(1) 對oeltest01虛擬機創(chuàng )建快照

也可以virsh snapshot-create as oeltest01 snap1 創(chuàng )建后個(gè)快照別名。

(2) 查看虛擬機鏡像快照的版本

(3) 查看當前虛擬機鏡像快照的版本

可以看到為當前最新的快照版本。


[root@node1 data]#
[root@node1 data]# virsh snapshot-current oeltest01


01.<domainsnapshot>   
02.<name>1378579737</name>   
03.<state>shutoff</state>   
04.<creationTime>1378579737</creationTime>   
05.<memory snapshot='no'/>   
06.<disks>   
07.<disk name='hda' snapshot='internal'/>   
08.<disk name='hdc' snapshot='no'/>   
09.</disks>   
10.<domain type='kvm'>   
11.<name>oeltest01</name>   
12.<uuid>8f2bb4a7-c7ed-32aa-3676-9fb05923269d</uuid>   
13.<memory unit='KiB'>524288</memory>   
14.<currentMemory unit='KiB'>524288</currentMemory>   
15.<vcpu placement='static'>1</vcpu>   
16.<os>   
17.<type arch='x86_64' machine='rhel6.4.0'>hvm</type>   
18.<boot dev='hd'/>   
19.</os>   
20.<features>   
21.<acpi/>   
22.<apic/>   
23.<pae/>   
24.</features>   
25.<clock offset='localtime'/>   
26.<on_poweroff>destroy</on_poweroff>   
27.<on_reboot>restart</on_reboot>   
28.<on_crash>restart</on_crash>   
29.<devices>   
30.<emulator>/usr/libexec/qemu-kvm</emulator>   
31.<disk type='file' device='disk'>   
32.<driver name='qemu' type='qcow2' cache='none'/>   
33.<source file='/data/test01.qcow2'/>   
34.<target dev='hda' bus='ide'/>   
35.<address type='drive' controller='0' bus='0' target='0' unit='0'/>   
36.</disk>   
37.<disk type='block' device='cdrom'>   
38.<driver name='qemu' type='raw'/>   
39.<target dev='hdc' bus='ide'/>   
40.<readonly/>   
41.<address type='drive' controller='0' bus='1' target='0' unit='0'/>   
42.</disk>   
43.<controller type='ide' index='0'>   
44.<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>   
45.</controller>   
46.<controller type='usb' index='0'/>   
47.<interface type='bridge'>   
48.<mac address='52:54:00:82:39:01'/>   
49.<source bridge='br0'/>   
50.<model type='virtio'/>   
51.<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>   
52.</interface>   
53.<serial type='pty'>   
54.<target port='0'/>   
55.</serial>   
56.<console type='pty'>   
57.<target type='serial' port='0'/>   
58.</console>   
59.<input type='tablet' bus='usb'/>   
60.<input type='mouse' bus='ps2'/>   
61.<graphics type='vnc' port='5910' autoport='no' listen='0.0.0.0'>   
62.<listen type='address' address='0.0.0.0'/>   
63.</graphics>   
64.<video>   
65.<model type='cirrus' vram='9216' heads='1'/>   
66.<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>   
67.</video>   
68.<memballoon model='virtio'>   
69.<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>   
70.</memballoon>   
71.</devices>   
72.</domain>   
73.</domainsnapshot>

[root@node1 data]#

(4) 查看當前虛擬機鏡像文件

又創(chuàng )建了一個(gè),快照的版本也記錄在鏡像文件中了。

快照配置文件在/var/lib/libvirt/qemu/snapshot/虛擬機名稱(chēng)/下

4. 恢復虛擬機快照

(1) 恢復虛擬機快照必須關(guān)閉虛擬機。

確認虛擬機是關(guān)機狀態(tài)

(2) 確認需要恢復的快照時(shí)間,這里恢復到1378579737

(3) 執行恢復,并確認恢復版本

5. 刪除虛擬機快照

(1) 查看虛擬機快照

# qemu-img info test01.qcow2

這里刪除第一個(gè)快照1378579737

(2) 刪除快照

到此kvm虛擬機快照測試完畢。kvm虛擬化學(xué)習筆記進(jìn)行到這里了,感覺(jué)到kvm虛擬化的內容真的很多。水是越來(lái)越深了。


本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
KVM虛擬機快照備份
掛載raw和qcow2格式的KVM硬盤(pán)鏡像
qcow2、raw、vmdk等鏡像格式的比較和基本轉換
個(gè)人KVM 虛擬化學(xué)習筆記
virsh KVM文件管理_virsh 傳文件_weixin
無(wú)圖形界面下創(chuàng )建管理虛擬機
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久