Post in evidenza

Recovery - Access, Excel, Word, Office and Photo recovery tools and other blog procedures

During these years I had necessity to recover various files (.doc, mdb, .xls, photos...)  I utilized various free tools (here is an exampl...

Hyper-V - Installare Integration Component su una macchina linux

Supponiamo di avere una macchina virtuale linux (nel nostro caso Centos 5.5 oppure Clearos 5.2) e dobbiamo installare gli Integration Component per Hyper-V

Prima di tutto scarichiamo l'Iso di nostro interesse dai seguenti link.

Poi installiamo i compilatori C/C++

yum install gcc gcc-c++ autoconf automake
yum groupinstall "Development Tools" 
Al seguente link si scarica la versione 3.1
http://www.microsoft.com/download/en/details.aspx?id=26837  
Per le distribuzioni:
  • Red Hat Enterprise Linux 6.0 and 6.1 x86 and x64 (Up to 4 vCPU)
  • CentOS 6.0 x86 and x64 (Up to 4 vCPU) 
Una nota, se si sta usando SLES 10 SP3 / 11, or RHEL 5.2 / 5.3 / 5.4 / 5.5 è necessario usare le IC 2.1 precedenti:


Per l'installazione, dal manuale:

# mkdir /mnt/cdrom

# mount /dev/cdrom /mnt/cdrom

Copy Linux Integration Services to the virtual machine. For example:

# mkdir /opt/linux_ic_v21_rtm

# cp –R /mnt/cdrom/* /opt/linux_ic_v21_rtm

As the root user, run the following command to compile and install the synthetic drivers. A reboot is required after installation.

# cd /opt/linux_ic_v21_rtm/

# make

# make install

# reboot  


<------------>


Dal seguente forum di ClearOs:

http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,40/func,view/id,6152/



Linux Integration Services v2.1 for Windows Server 2008 Hyper-V R2 has been released by Microsoft.

www.microsoft.com/downloads/details.aspx...22-9b4c-f4b5b9b64551

The installation steps differ slightly from the Release Candidate v2.1 driver (see prior post).

The v2.1 RTM steps are:

yum groupinstall "Development Tools"
yum update
mkdir -p /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
cp -rp /mnt/cdrom /opt/linux_ic_v21_rtm
umount /mnt/cdrom
cd /opt/linux_ic_v21_rtm
make
make install

If your installation worked correctly you will see messages that look like this:

[root@clearos52 linux_ic_v21_rtm]# make
Building all modules...
make -C /lib/modules/2.6.18-194.8.1.v5/build SUBDIRS=/opt/linux_ic_v21_rtm/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-194.8.1.v5-i686'
CC [M] /opt/linux_ic_v21_rtm/src/BlkVsc.o
CC [M] /opt/linux_ic_v21_rtm/src/osd.o
CC [M] /opt/linux_ic_v21_rtm/src/blkvsc_drv.o
CC [M] /opt/linux_ic_v21_rtm/src/RndisFilter.o
CC [M] /opt/linux_ic_v21_rtm/src/NetVsc.o
CC [M] /opt/linux_ic_v21_rtm/src/netvsc_drv.o
CC [M] /opt/linux_ic_v21_rtm/src/StorVsc.o
CC [M] /opt/linux_ic_v21_rtm/src/storvsc_drv.o
CC [M] /opt/linux_ic_v21_rtm/src/Sources.o
CC [M] /opt/linux_ic_v21_rtm/src/vmbus_drv.o
/opt/linux_ic_v21_rtm/src/vmbus_drv.c: In function âshutdown_linux_systemâ:
/opt/linux_ic_v21_rtm/src/vmbus_drv.c:335: warning: ISO C90 forbids mixed declarations and code
LD [M] /opt/linux_ic_v21_rtm/src/vmbus.o
LD [M] /opt/linux_ic_v21_rtm/src/netvsc.o
LD [M] /opt/linux_ic_v21_rtm/src/storvsc.o
LD [M] /opt/linux_ic_v21_rtm/src/blkvsc.o
CC [M] /opt/linux_ic_v21_rtm/src/hv_timesource.o
Building modules, stage 2.
MODPOST
CC /opt/linux_ic_v21_rtm/src/blkvsc.mod.o
LD [M] /opt/linux_ic_v21_rtm/src/blkvsc.ko
CC /opt/linux_ic_v21_rtm/src/hv_timesource.mod.o
LD [M] /opt/linux_ic_v21_rtm/src/hv_timesource.ko
CC /opt/linux_ic_v21_rtm/src/netvsc.mod.o
LD [M] /opt/linux_ic_v21_rtm/src/netvsc.ko
CC /opt/linux_ic_v21_rtm/src/storvsc.mod.o
LD [M] /opt/linux_ic_v21_rtm/src/storvsc.ko
CC /opt/linux_ic_v21_rtm/src/vmbus.mod.o
LD [M] /opt/linux_ic_v21_rtm/src/vmbus.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-194.8.1.v5-i686'
done.
Your system supports the timesource driver, including driver in the build


[root@clearos52 linux_ic_v21_rtm]# make install
Building all modules...
make -C /lib/modules/2.6.18-194.8.1.v5/build SUBDIRS=/opt/linux_ic_v21_rtm/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-194.8.1.v5-i686'
Building modules, stage 2.
MODPOST
make[1]: Leaving directory `/usr/src/kernels/2.6.18-194.8.1.v5-i686'
done.
Your system supports the timesource driver, including driver in the build
install -d -m0755 /lib/modules/2.6.18-194.8.1.v5/kernel/drivers/vmbus
install -m0755 /opt/linux_ic_v21_rtm/src/Module*.symvers /lib/modules/2.6.18-194.8.1.v5/kernel/drivers/vmbus
Installing vmbus driver...done.
Installing netvsc driver...done.
Installing storvsc driver...done.
Installing blkvsc driver...done.
Installing hv_timesource driver...done.
Updating module dependencies. This may take a while...depmod
done.
Installing various udev rules and scripts...install -d -m0755 /etc/vmbus
install -m0755 ./scripts/vmbus.uevent /etc/vmbus
install -m0755 ./scripts/netvsc.uevent /etc/vmbus
install -m0644 ./scripts/20-vmbus.rules /etc/udev/rules.d
install -m0644 ./scripts/20-netvsc.rules /etc/udev/rules.d
udevcontrol reload_rules
done.
Updating initrd image...
chmod 755 ./scripts/updateinitrd.pl
./scripts/updateinitrd.pl vmbus netvsc storvsc blkvsc hv_timesource
Backing up /boot/initrd-2.6.18-194.8.1.v5.img to /boot/initrd-2.6.18-194.8.1.v5.img.backup0
Done. Updated /boot/initrd-2.6.18-194.8.1.v5.img
Updating grub conf file...
chmod 755 ./scripts/updategrub.pl
./scripts/updategrub.pl
Done.
Installing vmbus startup script...
install -m0755 ./scripts/vmbus /etc/init.d
chkconfig --add vmbus
/etc/init.d/vmbus start
[root@clearos52 linux_ic_v21_rtm]# [ OK ]

This command will verify the Microsoft driver was installed:

[root@clearos52 linux_ic_v21_rtm]# lsmod | grep vsc

storvsc 32548 0
vmbus 52168 1 storvsc
scsi_mod 141908 8 storvsc,ib_iser,iscsi_tcp,libiscsi2,scsi_transport_iscsi2,scsi_dh,libata,sd_mod

At this point you reboot the ClearOS VM:

shutdown –h now

and once it is back up then continue editing the files mentioned in the prior post (about the Release Candidate v2.1 driver). After editing is complete then one more reboot and everything should be working correctly.
 
 

720check