Many times we need to create a linux virtual machine by command line.
It is very useful for batch vm operation, automation, regression test, integration test…
Here’s the steps to create a functional linux virtual machine (works on windows host && linux host). These steps has been tested on Debian squeeze x64 with kernel version of 2.6.32, and windows server 2003 x64 .
Note for windows users: Make sure you have put virtualbox directory to PATH variable. (Press Win+Break , click “Advanced”-> “Environment Variables”, find the PATH variable, and append virtualbox path to the variable.) 1.Create a virtualbox vm and register the vmvboxmanage createvm -name testvm -register
vboxmanage showvminfo testvmThe showvminfo command shows information about created virtual machine.2.Specifiy network adapter and setting boot order vboxmanage modifyvm “testvm” –memory 768 –vram 64 –acpi on –boot1 dvd –nic1 bridged –bridgeadapter1 eth0
Read more: David Euler on programming, design and linux
QR:
It is very useful for batch vm operation, automation, regression test, integration test…
Here’s the steps to create a functional linux virtual machine (works on windows host && linux host). These steps has been tested on Debian squeeze x64 with kernel version of 2.6.32, and windows server 2003 x64 .
Note for windows users: Make sure you have put virtualbox directory to PATH variable. (Press Win+Break , click “Advanced”-> “Environment Variables”, find the PATH variable, and append virtualbox path to the variable.) 1.Create a virtualbox vm and register the vmvboxmanage createvm -name testvm -register
vboxmanage showvminfo testvmThe showvminfo command shows information about created virtual machine.2.Specifiy network adapter and setting boot order vboxmanage modifyvm “testvm” –memory 768 –vram 64 –acpi on –boot1 dvd –nic1 bridged –bridgeadapter1 eth0
Read more: David Euler on programming, design and linux
QR:
0 comments:
Post a Comment