Skip to main content

Posts

Virtualbox : Shrink VM disk

So you've finally succeeded running a windows virtual machine (VM) on your desktop. You play around the vm; copying files, installing & deleting applications and so on. After a while, you found out that your vm is using let say 20gb out of 100gb (which you set during creating the vm) disk but your local machine (host) report that you have used up 50gb. So how can you claim back that extra 30gb in your host ?

Why I Can't Move/Import VM in XenServer.

Ok this is what i found out, the metadata export/import via ' Backup, Restore and Update ' menu in xsconsole OR using ' xe vm-export filename=xxx metadata=true vm= ' will export all vm's metadata eventhough you've specify the vm in the latter, the former is ok because it is backup & restore tool. Problem happens when you want to restore the metadata or import to another xenserver. If you follow the method from 'Backup and Restore' in the reference guide, it should be ok if you're using pool because all pools are using shared storage; and if you don't use pool, your xenserver store all the VMs in the shared storage ONLY, means the Local SR is not use at all. This way, you wont face any problem. But, what if you have a mix of local & shared storage use. 

Ping in interval on Windows with commandline

How do you ping in interval in Windows ? This is how you do it. Just type this in Start => Run cmd /c "for /L %i in (1,0,2) do @ping 1.2.3.4 > nul & sleep 10" This would ping an address in interval of 10 seconds without echo the results but if you do then use this next command cmd /c "for /L %i in (1,0,2) do @ping 1.2.3.4 & sleep 10 " Notice the '>nul' is exclude. Happy trying and now you don't need all those fancy utilities.

XenServer 5.6 SP2

XenServer 5.6 SP2 just released. New features since 5.6 FP1 are : §    IntelliCache . Using XenServer with IntelliCache makes hosted Virtual Desktop Infrastructure deployments more cost-effective by enabling you to use a combination of shared storage and local storage. The load on the storage array is reduced and performance is enhanced. See the XenServer Service Pack 2 Installation Guide for more information on this feature. §    WorkLoad Balancing Installation Improvements . Choice of English or Japanese language available on installation screens. §    Local Storage Spans All Physical Volumnes . When EXT local storage is used (e.g. when the   Use thin provisioning   is selected in the host installer), on a host containing multiple physical disks, the local Storage Repository (SR) now spans all the disks in a single LVM volume group. §    Reset-on-boot VM behaviour . Disks with the   on-boot   option set to   re...

Nokia Holiday

This is my entry for Nokia N8 Holday Competition Firstly, Ovi Maps . Preload all the places you want to go and you’ll never lost no matter where you are. Then if wifi or phone signal is around, ‘Check In’ will be my travel log for my friends and family through many popular social networks. Ovi Maps can also help you with weather forecast, where to grab lunch or having romantic dinner and suggest a good nice place to sleep. What makes a good holiday if you can’t capture all those sweet moments ? With N8’s 12mp and 720p HD quality video, those scenes won’t miss by the Carl Zeiss lense and compliments it with Nokia Panorama to capture those beautiful long sunny beaches or to show how long is Qingdao Haiwan Bridge in China . Lastly, going for holiday doesn’t mean leaving everything behind. What if you forget to ask your neighbour to look over your house or maybe your boss wants to congratulate you for winning a project for the company ? That’s when Skype comes in wit...

Nokia N8 and Proxy

Ok, seems that i found how to do it. It does take a while but it should be no prob for other symbian users unlike me (first timer). Here's how. Step 1 Goto Connectivity Menu Menu Button - Settings - Connectivity Step 2 Add new Access Point (continue from above) Settings - Destinations

SQL using partition and connect by clause.

select id, max(ltrim(sys_connect_by_path(gred,' , '),' , ')) as mygred from (select b.KJ19SIJIL||b.KJ19KOD as id, b.KJ19GRED as gred, row_number() over(partition by b.KJ19SIJIL||b.KJ19KOD order by b.KJ19GRED) as myrow from kj19setara b) start with myrow = 1 connect by prior myrow = myrow -1 and prior id = id group by id order by 1;