This method doesn't need to shutdown the server to extend the virtual Drive.
Step 1:
Step 2:
Step 3:
Step 4:
Step 5:
Step 6:
Step 7:
Step 8:
Step 9:
1.
|
Add
Additional Space to the Virtual Hard Drive
- Once connected, select your Virtual Machine from the Hosts & Clusters or VMs & Templates view. - Click "Edit Settings" - Select your Virtual Disk, and increase the Provisioned Space. - Click OK
- Using the vSphere Client, connect to vCenter server or
your host.
|
|
2.
|
Extend
the Volume
- Open a Command Prompt - Use the following commands from the Microsoft KB 325590 DISKPART>list volume (You'll see the volumes - note the vol number you want to expand) (Or whatever volume number you're expanding) (will extend to full amount of space available)
- Access your Server (either Open Console from the vSphere
Client or RDP)
c:\diskpart.exe
DISKPART>select volume 1
DISKPART>extend
DISKPART>exit
|
write_enable=YESpasv_max_port=41000 pasv_min_port=40000 port_enable=YES pasv_enable=YES
Add an FTP user (see instruction here)
Start the FTP server. service vsftpd start
example:ssh -i keypar_file.pem ubuntu@ec2-1.1.1.1.compute-1.amazonaws.com
vi /etc/ssh/sshd_configchange the PasswordAuthentication value as yesPasswordAuthentication yes:wq
save and exit
In Debian or Ubuntu instance:/etc/init.d/ssh restartIn CentOS or Red Hat instance:/etc/init.d/sshd restart
ssh ubuntu@ec2-1.1.1.1.compute-1.amazonaws.com