2016/12/23

MS logic

... as in "most stoopid"!

So, here is the situation :

Client was just delivered with an Hyper-V cluster for his web services; once he tries to setup Apache & Co on his CentOS instances, figures that 50GB originally requested is not enough, wants to change it to 120GB...

So, virtual machines running linux with LVM partition, should be easy right? We might even be able to do it live, no need to shutdown the instance... let's check it out!

I found this little procedure, quite straight-forward, about manipulating LVM partition in a virtual environment :

https://www.rootusers.com/how-to-increase-the-size-of-a-linux-lvm-by-expanding-the-virtual-machine-disk/

But then I found out that you can only do so if the virtual disk was attached to a SCSI controller; I had a problem here, because the VM was already configured, installed and running via a IDE controller in Hyper-V. Oh well, the client didn't have any issue with us stopping the VMs in the beginning, we could address this issue later.

  • VHDX - the ability to expand and shrink virtual hard disks is exclusive to virtual hard disks that are using the .vhdx file format. Online resizing is supported for VHDX disk types, including fixed, differencing, and dynamic disks. Virtual hard disks that use the .vhd file format are not supported for resizing operations.
  • SCSI controller - the ability to expand or shrink the capacity of a virtual hard disk is exclusive to .vhdx files that are attached to a SCSI controller. VHDX files that are attached to an IDE controller are not supported.
[ https://technet.microsoft.com/en-us/library/dn282286(v=ws.11).aspx ]

So I followed the procedure and expended the VHDX file from 50GB to 128 (I always prefer to do things at the power of 2 in the binary realm).

This morning I decided to do a test run on an Hyper-V cluster we use for testing; created a VM, change from IDE controller to SCSI, installed CentOS without a fuss. Then, when I tried to boot the VM by itself :



WTS?

Again, a little search and I find the answer :

https://blogs.msdn.microsoft.com/virtual_pc_guy/2009/12/01/why-hyper-v-cannot-boot-off-of-scsi-disks-and-why-you-should-not-care/

Sorry Ben, but I do care : the TechNet link states that "Starting in Windows Server® 2012 R2, Hyper-V delivers the ability to expand or shrink the size of a virtual hard disk while the virtual machine is still running." but a VM on Hyper-V cannot boot off of a SCSI disks?

As we say in French, Je ne sais plus sur quel pied danser...

2016/12/08

Don't make a sound...

[ code ]

procyon:~ ionreflex$ brew search sshpass
We won't add sshpass because it makes it too easy for novice SSH users to
ruin SSH's security.

[ / code ]

Can't argue with that...

2015/04/23

... KILL!

nul@wormhole:~$ ssh root@supernova
VMcrap vCrapper Server Appliance
Password: yeah... right!
Password change requested. Choose a new password.
Old Password:  yeah... right!
New password: C0rr3ctH0rs3B4tt3r7St4pl3
BAD PASSWORD: is too simple

... WTF? X_x

2015/04/22

[expletive/deleted]

nul@wormhole:~$ apt-get install htop
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
nul@wormhole:~$ fuck
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  htop
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 65.3 kB of archives.
After this operation, 203 kB of additional disk space will be used.
Get:1 http://ca.archive.ubuntu.com/ubuntu/ utopic/universe htop amd64 1.0.3-1 [65.3 kB]
Fetched 65.3 kB in 0s (536 kB/s)
Selecting previously unselected package htop.
(Reading database ... 201749 files and directories currently installed.)
Preparing to unpack .../htop_1.0.3-1_amd64.deb ...
Unpacking htop (1.0.3-1) ...
Processing triggers for man-db (2.7.0.2-2) ...
Processing triggers for mime-support (3.55ubuntu1.1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu2) ...
Processing triggers for bamfdaemon (0.5.1+14.10.20140925-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
nul@wormhole:~$ cat .bashrc |grep fuck
alias fuck='sudo $(history -p \!\!)'

2012/05/28

Tire la chevillette, la bobinette cherra...

... first you need to find the warlock, because only thee knows the warped holes of the void, from where you gain access to the gates of Nockmaar.

2010/02/05

Count Zero

QWHAT ?

How come that, in order to reset the network error counts given by the netstat tool, you have to reboot ?

I'm talking about a firewall here! Talk about an interrupt...

2009/08/06

Lord of the Ping / Pause / Play

Just found out that you could actually pause a "ping" command on Windoze (XP Pro and Vista64 Biz) : hit CTRL-S once to stop it, another time to restart it...

Kinda useless, but looked like undocumented! Well, was, as in not anymore! :o)