ubuntu备份笔记

ls -sh
du -h --max-depth=1 /root/opt/
qemu-img create hdaxp.img -f qcow 9G
kvm -no-acpi -m 768 -cdrom windowxp.iso -hda hdaxp.img -boot d
kvm -m 768 -hda hdaxp.img

windows
WQ6Y9-R966G-TGFPP-2GHDH-9TGVT

"共享存储.jpeg"还那么改一下查看

apt-get install open-iscsi
apt-get install tgt
apt-get install lvm2
参考http://libvirt.org/
dd if=/dev/zero of=./fed count=0 bs=1M seek=3000
virsh create winxp.xml


iscis tgtd
[root@s122205 test]# yum install scsi-target-utils
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package scsi-target-utils.x86_64 0:0.0-5.20080917snap.el5 set to be updated
--> Processing Dependency: perl(Config::General) for package: scsi-target-utils
--> Running transaction check
---> Package perl-Config-General.noarch 0:2.40-1.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================
 Package               Arch     Version                    Repository            Size
======================================================================================
Installing:
 scsi-target-utils     x86_64   0.0-5.20080917snap.el5     dvd-clusterstorage   114 k
Installing for dependencies:
 perl-Config-General   noarch   2.40-1.el5                 dvd-clusterstorage    69 k

Transaction Summary
======================================================================================
Install      2 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 182 k
Is this ok [y/N]: y
Downloading Packages:
--------------------------------------------------------------------------------------
Total                                                 105 MB/s | 182 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : perl-Config-General                                            1/2 
  Installing     : scsi-target-utils                                              2/2 

Installed:
  scsi-target-utils.x86_64 0:0.0-5.20080917snap.el5                                   

Dependency Installed:
  perl-Config-General.noarch 0:2.40-1.el5                                             

Complete!
[root@s122205 test]# tgtd
[root@s122205 test]#





猜你喜欢

转载自haoningabc.iteye.com/blog/976046