LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices



Reply
 
Search this Thread
Old 05-28-2013, 09:41 PM   #1
minty33
Member
 
Registered: Aug 2012
Location: earth
Distribution: Mint Xfce, Korora Gnome3, Ubuntu Server NoGui,
Posts: 136

Rep: Reputation: 1
Question VBoxManage clonevm ?'s


i have seen the viruualbox manual for clonevm here http://www.virtualbox.org/manual/ch0...manage-clonevm

unfortunately i can't really find any samples that meet my needs and the method i tried fails. i am trying to clone a vm called "student1" to a new vm called "student2", but also give the clone a unique uuid and register it all in one command. here is what i tried that gives me an error(no other info just "error", and shows the help screen).

VBoxManage clonevm student1 --name student2 --uuid --register

**it says the default behavior of --uuid is to assigne a new uuid so i gave it no arguments(also tried the word default).

also i really need 30 clones. is it possible, once i find out how to do the above, to pass multiple arguments to --name to do this all at once, and give them each unique uuid's. example:

VBoxManage clonevm student1 --name student2 student3 student4 --uuid --register

my intention is to have 30 vm's each for a different student who can ssh in to their own vm. i know after the cloning i will need to change the NAT port forwarding rules for each clone. example.

VBoxManage modifyvm student2 --natpf1 "guestssh,tcp,,60002,,22"
VBoxManage modifyvm student2 --natpf1 "guestssh,tcp,,60003,,22"
etc...

**can they all still listen on port 3389 for vrde. i am not going to remote in using rdp so i figure that doesn't really matter. is that a correct assumption

lastly there is no dhcp on the host or host gateway so when i set up the oiginal vm that will be cloned to create the others should the default gateway be the host or the host's default gateway. the reason i ask is if i give the host as the default gateway for a vm using NAT i was hoping vbox will use dhcp to give them all unique ip's so i don't have to edit /etc/networking/interfaces in all 30 vm's

i know this was alot of questions for one thread but they are all closely related and pertain to getting this one task done. i hope that is ok.

Last edited by minty33; 05-28-2013 at 09:43 PM.
 
Old 07-01-2013, 09:50 PM   #2
minty33
Member
 
Registered: Aug 2012
Location: earth
Distribution: Mint Xfce, Korora Gnome3, Ubuntu Server NoGui,
Posts: 136

Original Poster
Rep: Reputation: 1
i was reviewing my threads and this should be marked solved so i will do so. the answer is to leave out the --uuid flag
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Cannot create VirtualBox hd image - VBoxManage: error: Failed to create hard disk Vanyel Linux - Software 1 01-10-2013 10:06 AM
[SOLVED] VirtualBox VBoxManage clonevdi works to local drive but not external jraz Linux - Virtualization and Cloud 5 02-24-2011 05:17 AM
Oracle vmbox no VBoxManage on host windows 7 sehgalnamit Linux - Virtualization and Cloud 1 02-18-2011 08:58 PM
can't find vboxmanage for VirtualBox ahurd Linux - Newbie 4 07-22-2010 11:42 PM
LXer: Tech Tip: Port Forwarding in Virtualbox with VBoxManage LXer Syndicated Linux News 0 09-11-2009 12:20 AM


All times are GMT -5. The time now is 04:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration