My Blog

VirtualBox error NS_ERROR_INVALID_ARG (0X80070057) when adding an existing virtual machine

If you've ever encountered the following error when adding an existing VM to your host:

 

Failed to open virtual machine located in *********.vbox.
Callee RC: NS_ERROR_INVALID_ARG (0X80070057)

 

or from the commandline  VBoxManage registervm VirtualMachineNameSample.vbox

VBoxManage: error: Code NS_ERROR_INVALID_ARG (0x80070057) - Invalid argument value (extended info not available)
VBoxManage: error: Context: "OpenMachine(Bstr(szVMFileAbs).raw(), Bstr(strPassword).raw(), machine.asOutParam())" at line 153 of file VBoxManageMisc.cpp

One thing that you can check is see if there's a non-existing file. In my case, the solution is to edit the .vbox file manually (which is in XML format) and remove the following line:

      <DVDImages>
        <Image uuid="{a82fec76-40db-4b60-9054-4fd156c8982a}" location="/usr/share/virtualbox/VBoxGuestAdditions.iso"/>
      </DVDImages>

 

Some people say that it could also because of insufficient disk space. In my case, there was plenty of space, but this file no longer exists since it's from a different machine.

Read More

Tik Tok algorithm is interesting

I don't know how Tik Tok does it and honestly I don't know how its algorithm works. It can't be algorithm though.

I just went to get a quick bite outside and got myself a $2.99 Jamaican beef patty. I paid with cash, didn't use my credit card. By the way, I also didn't bring my cellphone with me since it was just a very short distance, just a short walk. I had no electronics with me at all. Somehow, when I opened Tik Tok on my wifi-only tablet with no cellular connectivity, which I left at home, a few minutes later it displayed a video about a Jamaican beef patty. It's really strange... can't be a coincidence.

Read More

How to upgrade Gitlab safely with zero downtime

GitLab is a complex piece of software. If you are planning on upgrading your self-hosted GitLab machine to a new major version, you need to follow this documentation: https://docs.gitlab.com/ee/update/

Also, use the Upgrade Path Toolbox from here: https://gitlab-com.gitlab.io/support/toolbox/upgrade-path/?edition=ce to ensure that the upgrade is smooth and safe.

For instance, if you currently have gitlab-ce version 15.11.10-ce.0 and want to upgrade to version 16.10.1, you have to perform the following upgrade one-by-one:

  • apt-get install gitlab-ce=15.11.13-ce.0
  • apt-get install gitlab-ce=16.0.8-ce.0
  • apt-get install gitlab-ce=16.1.6-ce.0
  • apt-get install gitlab-ce=16.2.9-ce.0
  • apt-get install gitlab-ce=16.3.7-ce.0
  • apt-get install gitlab-ce=16.4.5-ce.0
  • apt-get install gitlab-ce=16.5.8-ce.0
  • apt-get install gitlab-ce=16.6.7-ce.0
  • apt-get install gitlab-ce=16.7.7-ce.0
  • apt-get install gitlab-ce=16.8.5-ce.0
  • apt-get install gitlab-ce=16.9.3-ce.0
  • apt-get install gitlab-ce=16.10.1-ce.0

See - https://gitlab-com.gitlab.io/support/toolbox/upgrade-path/?current=15.11.10&edition=ce&downtime=true

 

Read More

How to reduce Proxmox VE guest machine backup size

To reduce a guest machine before you perform a backup, first set the discard flag on the guest machine (while turned off), then do a TRIM inside the machine.

Run this command inside the guest machine (assuming it's running Linux): fstrim -a -v

What it does is it emulates SSD TRIM facility, which blanks out free space, since deleting a file only removes a file but doesn't mark the space as free.

Read More

Proxmox and CSF - LAN vmbr2 not working

If somehow you have Proxmox & CSF for blocking outside traffic vmbr0 (WAN), and have a vmbr2 LAN interface, check your ETH_DEVICE abd ETH_DEVICE_SKIP settings in /etc/csf/csf.conf and add vmbr2 in ETH_DEVICE_SKIP so it won't block internal LAN traffic.

Read More

Scam text message from +1 (604) 339-2192

Today I got a scam text message from +1 (604) 339-2192, telling me to deposit email money transfer at et-lnterac-xxx (see screenshot). Notice how the scammer changed the letter I to lowercase l (L). I am not sure if the number is spoofed or not, or if the cellphone is compromised and used as a bot. Basically the scam message claims that CRA (Canada Revenue Agency) has sent me $297.00 and that I should deposit the money.

Text message from +1 (604) 339-2192

Then I checked the whois data, but it seems to be fake.

whois data

The address is in Toronto but the originating number is from Richmond, BC.

I'm usually too lazy to check it because I already know it's a scam. But this time I checked it because I'm bored, and when I checked the address, it goes to this site. Now, the only time somebody can create a subdomain record on a CPanel-based server is when they have access to the CPanel itself, so even if the application (e.g. Wordpress or any other script hosted there) is compromised, unless the person has the username & password for CPanel, they won't be able to create a subdomain record. Another possibility is if the scammer has compromised the whole server and got himself a root account. Who knows.

Then I proceeded to check the index files. Ahh, I can see now what the scammer has uploaded because he forgot to disable index in .htaccess.

More scam

Then I tried clicking the INTERAC e-Transfer_fichiers folder as I was just curious to see what's there.

Interac scam

Very interesting. Then I clicked td, rbc2, bmo, sco. Here's what came up - a fishing page trying to get users to post their credentials for TD, Royal Bank of Canada, Bank of Montreal, and ScotiaBank.

Here's the Scotia one (check out the URL in the address bar):

Scotia Bank scam

Here's the TD scam (check out the URL in the address bar):

TD Scam

There you go.

If I go to the main domain, apparently the site is from India (country code +91):

Hope this can help some people. Be careful and stay safe.

 

Read More

Disable free SSL from CPanel

Recently, CPanel has been providing domain validated SSL certificate for free. However, it is quite intrusive that it replaced my own Wildcard certificate with theirs. To disable it, login as root and type these two commands:

root@servername [~]# touch /var/cpanel/ssl/disable_auto_hostname_certificate

root@servername [~]# touch /var/cpanel/ssl/disable_service_certificate_management

 

 

Read More

Windows 2012 Server RC Evaluation ISO direct link

I've been wanting to download the latest version of Windows 2012 but for some reasons I keep getting errors so if anyone is experiencing the same thing here's the direct download link.

Read More

Scam from TextWon.com/Ziinga (claiming to be BestBuy) sent by (917) 690-6874

This morning I received a scam spam message from (917) 690-6874. Becareful because this is not a legitimate text from BestBuy.ca. It tries to fool the receiver by adding "BestBuy.ca" subdomain.

The page then redirects to Ziinga.com. Read the following about fraud by Ziinga

http://www.scambook.com/company/reports/59339/Ziinga.com

http://www.consumeractiongroup.co.uk/forum/showthread.php?332397-ziinga.com-Help-Needed

The WHOIS information for ziinga.com:

Domain: ziinga.com
Registrar: Eurodns S.A.

Registrant:
Company: Flamingo Intervest Ltd.
Name: Nikdar Masih
Address: OMC Chambers, Road Town
City: Tortola
Country: VIRGIN ISLANDS, BRITISH
Postal Code: P.O. Box 3152
TextWon.com SCAM claiming from BestBuy.ca


Administrative Contact:
Company: Flamingo Intervest Ltd.
Name: Nikdar Masih
Address: OMC Chambers, Road Town
City: Tortola
Country: VIRGIN ISLANDS, BRITISH
Postal Code: P.O. Box 3152
Phone: +35625572557
Fax:
Email: nodomainnames@gmail.com

Technical Contact:
Company: Flamingo Intervest Ltd.
Name: Nikdar Masih
Address: OMC Chambers, Road Town
City: Tortola
Country: VIRGIN ISLANDS, BRITISH
Postal Code: P.O. Box 3152
Phone: +35625572557
Fax:
Email: nodomainnames@gmail.com

Original Creation Date: 2009-09-30
Expiration Date: 2015-09-29

Status:
clientTransferProhibited

Nameserver Information:
Nameserver: ns1.mydyndns.org
Nameserver: ns2.mydyndns.org
Nameserver: ns3.mydyndns.org
Nameserver: ns4.mydyndns.org
Nameserver: ns5.mydyndns.org

59QMY8Y3PY9G
Read More

Oracle VM Server on Lenovo W520 with i7-2860QM and 32GB RAM, 1.5TB RAID

I've been curious about Oracle VM Server and wanted to try it for my own home lab. I've had the VMWare ESXi 5, OpenVZ, as well as Xen but not the Xen-based Oracle VM Server.

So I downloaded Oracle VM Server 3.0.3 (and a few weeks later upgraded to v3.1.1) and the initial experience was quite pleasant and the whole thing was easy to install. I've also installed the Oracle VM Manager 3.1.1 and the v3.1.1 in general is night and day compared to 3.0.3 (no silly "refresh" thingy).
You'll have to use Oracle 11g database and also if you use the Express version you can't convert it to the full version.

A couple of high-level observations:
  • I'm using Lenovo W520 with i7-2860QM and 32GB RAM as well as Seagate XT Momentus 750GB x 2 (Intel soft-Raid). Everything went smoothly, unlike the newest Ubuntu 12.04 distribution who failed at everything and was just in general buggy.
  • I could not find an option to do a snapshot from the GUI like I did in VSphere. There is a "Clone" option though. I haven't tested this on a live Oracle database
  • If I want to export the virtual machine .img files is done with qemu. Nothing in the GUI.

So, what's the benefit of using Oracle VM Server compared to VMWare?
  • Well, it's XEN-based and it's free
  • There's a bunch pre-built Oracle templates such as Oracle Enterprise Linux, PeopleSoft, 11g, etc. With VMWare
  • The overall licensing is cheaper for Oracle Database. There is a price difference if you use Oracle database server and your virtual machine uses VMWare.

A few screenshots for your viewing pleasure:
Oracle VM Server 3 Installation



Oracle_vm_server_303_w520_install_4


Oracle_vm_server_303_w520_install_3


Oracle_vm_server_303_w520_install_2

Oracle_11g_express_for_oracle_vm_manager




Oracle_11g_configure


Oracle VM Manager 3

Oracle VM Manager 3
Read More

Latest

VirtualBox error NS_ERROR_INVALID_ARG (0X80070057) when adding an existing virtual machine

1.Oct.2024
If you've ever encountered the following error when adding an existing VM to your host:   ...

Tik Tok algorithm is interesting

17.Apr.2024
I don't know how Tik Tok does it and honestly I don't know how its algorithm works. It can't be alg...

How to upgrade Gitlab safely with zero downtime

30.Mar.2024
GitLab is a complex piece of software. If you are planning on upgrading your self-hosted GitLab mac...

How to reduce Proxmox VE guest machine backup size

30.Mar.2024
To reduce a guest machine before you perform a backup, first set the discard flag on the guest mach...

Proxmox and CSF - LAN vmbr2 not working

29.Mar.2024
If somehow you have Proxmox & CSF for blocking outside traffic vmbr0 (WAN), and have a vmbr2 LA...