Increasing size of a virtualmachine using only the command line

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












There are countless guides and SO questions related to this question, but as far as I can find, they all use a GUI for at least some part of the answer.



I have an Ubuntu 14.4 server, to which I only have SSH access. I use this Ubuntu 14.04 as host to run a Ubuntu 12.04 guest. As such, I only use the command line for both the guest and host.



The guest is running out of disk space, and as such I whish to increase the current 200gb to 400gb.



VBoxManage modifyhd /data_nfs/VM/Ubuntu.vdi --resize 400000


Increasing the vdi size is easy, but for the next steps, I can only find instructions on how to do it using a GUI, like in this question. How can I do this from the command line?







share|improve this question




















  • See askubuntu.com/a/119458/799387. There will be no safeguards like there are in gparted, so don't mess up.
    – dsstorefile1
    May 9 at 10:28














up vote
1
down vote

favorite












There are countless guides and SO questions related to this question, but as far as I can find, they all use a GUI for at least some part of the answer.



I have an Ubuntu 14.4 server, to which I only have SSH access. I use this Ubuntu 14.04 as host to run a Ubuntu 12.04 guest. As such, I only use the command line for both the guest and host.



The guest is running out of disk space, and as such I whish to increase the current 200gb to 400gb.



VBoxManage modifyhd /data_nfs/VM/Ubuntu.vdi --resize 400000


Increasing the vdi size is easy, but for the next steps, I can only find instructions on how to do it using a GUI, like in this question. How can I do this from the command line?







share|improve this question




















  • See askubuntu.com/a/119458/799387. There will be no safeguards like there are in gparted, so don't mess up.
    – dsstorefile1
    May 9 at 10:28












up vote
1
down vote

favorite









up vote
1
down vote

favorite











There are countless guides and SO questions related to this question, but as far as I can find, they all use a GUI for at least some part of the answer.



I have an Ubuntu 14.4 server, to which I only have SSH access. I use this Ubuntu 14.04 as host to run a Ubuntu 12.04 guest. As such, I only use the command line for both the guest and host.



The guest is running out of disk space, and as such I whish to increase the current 200gb to 400gb.



VBoxManage modifyhd /data_nfs/VM/Ubuntu.vdi --resize 400000


Increasing the vdi size is easy, but for the next steps, I can only find instructions on how to do it using a GUI, like in this question. How can I do this from the command line?







share|improve this question












There are countless guides and SO questions related to this question, but as far as I can find, they all use a GUI for at least some part of the answer.



I have an Ubuntu 14.4 server, to which I only have SSH access. I use this Ubuntu 14.04 as host to run a Ubuntu 12.04 guest. As such, I only use the command line for both the guest and host.



The guest is running out of disk space, and as such I whish to increase the current 200gb to 400gb.



VBoxManage modifyhd /data_nfs/VM/Ubuntu.vdi --resize 400000


Increasing the vdi size is easy, but for the next steps, I can only find instructions on how to do it using a GUI, like in this question. How can I do this from the command line?









share|improve this question











share|improve this question




share|improve this question










asked May 9 at 9:19









Mitchell van Zuylen

1354




1354











  • See askubuntu.com/a/119458/799387. There will be no safeguards like there are in gparted, so don't mess up.
    – dsstorefile1
    May 9 at 10:28
















  • See askubuntu.com/a/119458/799387. There will be no safeguards like there are in gparted, so don't mess up.
    – dsstorefile1
    May 9 at 10:28















See askubuntu.com/a/119458/799387. There will be no safeguards like there are in gparted, so don't mess up.
– dsstorefile1
May 9 at 10:28




See askubuntu.com/a/119458/799387. There will be no safeguards like there are in gparted, so don't mess up.
– dsstorefile1
May 9 at 10:28















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1033949%2fincreasing-size-of-a-virtualmachine-using-only-the-command-line%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1033949%2fincreasing-size-of-a-virtualmachine-using-only-the-command-line%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Which professions warranted travel in Medieval times?

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error