User Tools

Site Tools


virtualbox

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
virtualbox [2011/06/03 13:02] aorthvirtualbox [2011/06/03 13:03] aorth
Line 5: Line 5:
   * [[http://ubuntuforums.org/showthread.php?t=646613|Tips to optimize Linux guests and hosts]]   * [[http://ubuntuforums.org/showthread.php?t=646613|Tips to optimize Linux guests and hosts]]
  
-====== Optimal settings for Linux guests ======+====== Tips ====== 
 +===== Optimal settings for Linux guests =====
 Guest operating systems are not like host operating systems.  These settings are generally regarded as improving the performance of guest virtual machines. Guest operating systems are not like host operating systems.  These settings are generally regarded as improving the performance of guest virtual machines.
  
Line 15: Line 16:
   * Mount filesystems with ''noatime'' in ///etc/fstab//   * Mount filesystems with ''noatime'' in ///etc/fstab//
  
-====== Networking ====== +===== Networking ===== 
-===== Bridged Networking =====+==== Bridged Networking ====
 If your guest is using bridged networking you MUST use this command to allow other users to use the host's physical network card.  Make sure your virtual machine is shut down and then run this command: If your guest is using bridged networking you MUST use this command to allow other users to use the host's physical network card.  Make sure your virtual machine is shut down and then run this command:
 <code>VBoxManage setextradata MyMachine VBoxInternal/Devices/pcnet/0/LUN#0/Config/RestrictAccess 0</code> <code>VBoxManage setextradata MyMachine VBoxInternal/Devices/pcnet/0/LUN#0/Config/RestrictAccess 0</code>
Line 23: Line 24:
 As of VirtualBox 3.1.2 this is still a [[http://www.virtualbox.org/ticket/2852|known issue]]. As of VirtualBox 3.1.2 this is still a [[http://www.virtualbox.org/ticket/2852|known issue]].
  
-===== Port Forwarding =====+==== Port Forwarding ====
  
 If your guest OS is using NAT for networking and you want to access services like Apache or SSH, you will need to enable port forwarding.  There is no GUI for this in VirtualBox, but you can use ''VBoxManage setextradata'' to make the required changes.  If you want to SSH to your VM, for example: If your guest OS is using NAT for networking and you want to access services like Apache or SSH, you will need to enable port forwarding.  There is no GUI for this in VirtualBox, but you can use ''VBoxManage setextradata'' to make the required changes.  If you want to SSH to your VM, for example:
Line 32: Line 33:
 <code>$ ssh -p 2223 username@172.26.0.200</code> <code>$ ssh -p 2223 username@172.26.0.200</code>
  
-====== Commonly-used commands ====== +===== Commonly-used commands ===== 
-===== List your VMs =====+==== List your VMs ====
 <code>$ VBoxManage list vms</code> <code>$ VBoxManage list vms</code>
-===== List your running VMs =====+==== List your running VMs ====
 <code>$ VBoxManage list runningvms </code> <code>$ VBoxManage list runningvms </code>
  
-====== Updating VirtualBox ======+===== Updating VirtualBox =====
 === Stop any running VMs === === Stop any running VMs ===
 Either shut down or "save state" for any running VMs.  First, find any users who have "headless" VMs: Either shut down or "save state" for any running VMs.  First, find any users who have "headless" VMs: