Travel

Categories

單耳貓貓

在南丫島保護流浪貓團體見到一隻單耳貓貓, 依然很可愛, 希望好快有人收養佢

南丫島一日遊

Install ESXi 4 in USB thumb drive

Pls see this vminfo.nl-guide-create-an-esx-4i-usb-boot-key.pdf

Reference from http://www.vminfo.nl/?p=267

Install esxi 3 on a USB thumbdrive

See this vminfonl-guide-create-an-esx-3i-usb-boot-key

In short :

  1. First get the following tools: 7-Zip(Free), WinImage(Demo)
  2. Download the ESXi ISO
  3. Open the ISO with 7-Zip
  4. Extract “install.tgz”
  5. Open “install.tgz” with 7-Zip
  6. Click on “install.tar”
  7. Browse to “usr\lib\vmware\installer\”
  8. Open “VMware-VMvisor-big-3.5.0_Update_2-103909.i386.dd.bz2″
  9. Extract “VMware-VMvisor-big-3.5.0_Update_2-103909.i386.dd”
  10. Open WinImage and go to Disk, click on “Restore Virtual Harddisk Image on physical drive”
  11. Select a physical drive
  12. Select “VMware-VMvisor-big-3.5.0_Update_2-103909.i386.dd”
  13. And click “yes” to write the DD image to the USB Disk

Reference from : http://www.yellow-bricks.com/2008/07/29/esxi-35-update-2-on-a-usb-memory-key/

Virtual Machine Guest tagging (VGT) (vlan trunk) in vmware server

To run dot1q vlan on the vmware guest under vmware server, you cannot do this with one NIC, you need at least two NICs.
Host OS:

eth0 -> /dev/vmnet0 (for host OS’s management, uplink is vlan trunk)
eth1 -> /dev/vmnet3 (for used by guest OS, uplink is vlan trunk)

eth0.4 -> /dev/vmnet4 (for HOST management vlan)
eth0.5 -> /dev/vmnet5

VM1 Guest OS
eth0 -> (bridge to /dev/vmnet3)
eth0.3 -> 192.168.250.22

VM2 Guest OS
eth0 -> (bridge to /dev/vmnet3)
eth0.82 -> 192.168.82.22

Pls note that we can’t accomplish this task with a single NIC since when vlans are configured on the host OS, eth0 does not forward tagged packets to /dev/vmnet0! All packets are UNtagged.

If you want 802.1q tagged packets in the guest OS don’t config vlans on the NIC which the VM guest will use

Vmware ESX server 3 VLAN

Virtual Switch Tagging (VST)
VST uses 802.1q VLAN trunks and tagged traffic, as we’ve discussed already. The physical switch treats the ESX Server like any other switch, tagging traffic with the appropriate VLAN tags as it moves across the trunk into the ESX Server’s NICs. The ESX Server then uses the VLAN tags to direct the traffic to the appropriate port group. In order to use this configuration, the physical switch ports must be configured as VLAN trunks and ESX Server needs to have a port group defined for each VLAN ID.

External Switch Tagging (EST)
In EST, the physical switch is configured to pass untagged traffic for a single VLAN on each port. In the Cisco IOS world, this means that the physical switch ports would be configured as access ports assigned to a specific VLAN, like so:

  interface GigabitEthernet0/23
    switchport mode access 200

Given that most physical switch ports are already configured this way, this is a pretty typical switch configuration that is widely seen through many organizations. In this mode, ESX Server has a different vSwitch for each VLAN, and each vSwitch has its own individual uplink to a physical NIC (pNIC). Port groups can still be used to control traffic shaping and security policies, but they will not affect the VLAN operation.

Virtual Guest Tagging (VGT)
VGT is a specialized implementation that passes the VLAN tags all the way up to the virtual machine (VM), where the guest operating system (OS) will then handle the VLAN tags. This means that the guest OS must be able to support VLANs and VLAN tags. The physical switch still treats the ESX Server like any other switch, but the ESX Server passes the VLAN information directly to the guest OS instead of processing it and directing traffic to a matching port group. ESX Server requires only a single port group, using a VLAN ID of 4095, in order to use VGT.

When to use VGT, EST or VST VLAN configurations
Each of the different VLAN configurations has its advantages and disadvantages. As with most other things in a VI3 implementation, the “best answer” will depend upon the organization’s business needs. In most cases, VST provides the right balance between complexity and simplicity while providing the greatest level of flexibility.

However, there are cases where EST or VGT are more appropriate. For example, consider the organization whose servers plug into distribution layer switches. These distribution layer switches then connect to a core switch. If the connections between the core switch and the distribution switch are not already configured as VLAN trunks, i.e., are capable of carrying multiple VLANs simultaneously, then using VST is impossible. Each of the distribution switches only carries a single VLAN and is only capable of carrying a single VLAN. In this instance, EST is the only solution available.

Similarly, if a particular VM (virtual machine) needs to be present on multiple VLANs simultaneously, then VGT — instead of multiple vNICs, each assigned to a different port group or VLAN –might make more sense. This kind of situation is less common, but it is a valid scenario nevertheless. Guest OS support for VLAN drivers is required; this seems to be most common in various UNIX and UNIX-like operating systems: Solaris, OpenBSD and certain Linux distributions, for example.

One advantage that VGT has against EST is that both VGT and VST can be used at the same time. VST requires the creation VLAN-specific port groups, each configured with the appropriate VLAN ID. Because the 802.1Q specification only allows for a maximum VLAN ID of 4094, it’s possible to have both VST port groups (with VLAN IDs from 1 to 4094) as well as a VGT port group (with a VLAN ID of 4095) at the same time on the same vSwitch.

http://searchvmware.techtarget.com/tip/0,289483,sid179_gci1283036,00.html

esx3_vlan_wp

Batch Processing Camera RAW images in Photoshop CS

http://mediadesigner.digitalmedianet.com/articles/viewarticle.jsp?id=27784

Moreover, I have found that Canon DPP’s raw to jpeg conversion is a bit worst than photoshop CS’s ACR

ddp_vs_ps

A firmware hack for 400D to enable ISO 3200 and Spot Metering – continue

OK, just rushed back home to try this hack on my Canon 400D. Bingo, it works both on my 2GB and 4GB CF Card!! Just posted the ISO 1600 and ISO3200 for comparison here.

ISO1600_F5_30
↑F5.0, 1/30 ISO16OO
ISO3200_F5_60
↑F5.0, 1/60 ISO3200
ISO3200_denoise
↑ISO3200 after denoise

The noise level of ISO3200 is acceptable. Furthermore, I can also apply more advanced noise reduction filter on PC as well. For my own situation, it is totally usable.

Moreover, the spot metering is also usable. It is totally welcome to have this metering added in my camera!! (It has evaluative, partial and centre weighted average metering only)

Furthermore, if you use the latest AUTOEXEC.BIN, you can also get a new function of zone AF. Just press the change AF point button two times and waiting for a beep sound for confirmation. You can use the direct print button to change the AF zone afterwords similar to those in 7D.

A firmware hack for 400D to enable ISO 3200 and Spot Metering

HOWTO:

1. use a fully charged battery. you need CF card reader and windows. on a mac, use windows under bootcamp/vmware fusion.

2. update to latest firmware (1.1.1) by downloading the latest firmware, copying it into the root of CF, and running “update firmware” in the setup menu.

3. empty your CF, download testfir.fir from http://chdk.setepontos.com/index.php/topic,1618.0.html and copy it into the root of your CF.

4. insert CF, and then run firmware update again using testfir.fir the screen will go blank. wait 5 minutes, turn off, take battery out and back in.

5. insert CF into card reader and perform a quick format.

6. IF Card <= 4GB (fat12/fat16)

download cardtricks: http://chdk.wikia.com/wiki/Cardtricks run it, choose CF drive, tick “cf boot sector” and then click “make bootable.”

ELSE IF card > 4GB (fat32)

use HxD : http://mh-nexus.de/en/downloads.php?product=HxD run as administrator, goto extras -> options -> security -> uncheck “open disk as readonly by default”, then open CF card using the 5th button (cd, floppy and HDD icon) in the toolbar, then carefully write “EOS_DEVELOP” at 0x47 and “BOOTDISK” at 0x5C. save and exit.

7. download autoexec.bin from here: http://depositfiles.com/files/jbygql51l copy it into CF.

8. safely remove CF, insert it into camera, if the blue print led of the camera briefly lights up when the camera is turned on, the hack is successfully loaded.

9. to use additional ISO values, choose one of the 100,200,400,800,1600, and then push the print button to access more ISOs. (80/100/125/160/200/250/320/400/500/640/800/1000/1250/ 1600/2000/2500/3200)

ISO levels 16/32/40/50 can also be enabled if you go to menu and turn “shoot without CF” ON, but not sure if they really work (i see no difference.)

10. to use spot metering, go to metering selection screen, then push the print button. to go back to “evaluative metering”, you have to select other metering modes first, and then back to “evaluative metering”, because the camera thinks you are at “evaluative” although you are at “spot metering”.

11. to view shutter actuation count, which was only viewable by canon themselves, go to menu, push print button, push menu button again twice, (“factory menu” appears), enter factory menu, then push print button to enter “debug mode”. after a beep, go back and set spot metering. and you will see the camera writing something to the CF (CF light). eject CF, insert it into card reader, you will see a file called STDOUT.txt, search the textfile for “Release”. there you see a number and that is the shutter count.

thanks very much thaibv and Foldesa of CHDK for this wonderful hack.

@raingrove:
Thanks for a great guidance.

Let me make some comments.

4. insert CF, and then run firmware update again using testfir.fir the screen will go blank. wait 5 minutes, turn off, take battery out and back in.

The testfir.fir make changes to 400d’s boot flags immediately, so count down from 10 after testfir.fir blank your display screen. No need to wait 5 minutes.

9. ……
ISO levels 16/32/40/50 can also be enabled if you go to menu and turn “shoot without CF” ON, but not sure if they really work (i see no difference.)

I think iso 16/32/40/50 are same as iso 160/132/140/150. Please test and post your comments so i can decide to keep them available or not

10. …. to go back to “evaluative metering”, you have to select other metering modes first, and then back to “evaluative metering”, because the camera thinks you are at “evaluative” although you are at “spot metering”.

11. to view shutter actuation count, which was only viewable by canon themselves, go to menu, push print button, push menu button again twice, (“factory menu” appears), enter factory menu, then push print button to enter “debug mode”. after a beep, go back and set spot metering. and you will see the camera writing something to the CF (CF light). eject CF, insert it into card reader, you will see a file called STDOUT.txt, search the textfile for “Release”. there you see a number and that is the shutter count.

——–FYI————-
Dont have much time so no big Progress.   Realy got stuck finding how to make and display a custom dialog. Not success to understand Canon’s CreateDialogBox function (in firmware). It is very complicated.  I dont know much about VXwork and Camera hardware. Still google for some documents.

http://chdk.setepontos.com/index.php/topic,3290.135.html

http://chdk.setepontos.com/index.php?PHPSESSID=76d9b6d98967f3976b41b5b86ab62d7a&topic=3290.0

The latest autoexec.bin can be gotten from :

http://code.google.com/p/400d/downloads/list

teamviewer

http://www.teamviewer.com/download/index.aspx
Great to setup temporarily remote desktop like connection between two machines. Support Windows & Mac and it require minimal setup.

teamviewer